{ "info": { "author": "Fritz Grimpen", "author_email": "fritz@grimpen.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Operating System :: POSIX", "Programming Language :: Python :: 3.3", "Topic :: Database :: Database Engines/Servers" ], "description": "python-lmdb\n===========\n\nYour (L)MDB bindings for Python, written entirely using ctypes, but only for Python 3 (at the moment). Does not use any CPython native extensions.\n\nUsage\n-----\n\n import lmdb\n lib = lmdb.LibLMDB()\n env = lmdb.Environment(lib, \"data\")\n with env.transaction() as txn:\n txn[b\"key\"] = b\"value\"\n print(txn[b\"key\"])\n del txn[b\"key\"]\n\nWeb API\n-------\n\nI have implemented a simple web REST API with Bottle. It supports simple\ntransactions, setting an item, getting an item, and deleting an item.\n\n $ gunicorn lmdb.web\n\nYou can use the following environment variables to configure the application:\n\n* *LMDB_WEB_LIB*: Path to liblmdb.so\n* *LMDB_WEB_DBPATH*: Path to database directory\n\nIt supports simple REST endpoints:\n\n* `GET /` Server status overview\n* `GET /_simple/` Retrievement of item by key\n* `PUT /_simple/` Set an item with request body\n* `DELETE /_simple/` Delete an item\n* `POST /_trans` Upload transaction and execute it\n* `GET /_dump` Return transaction which inserts data\n\nTransactions are uploaded as JSON with the following form:\n\n {\n \"write\": true, # optional, by default false\n \"steps\": [\n {\"action\": \"set\", \"key\": \"foo\", \"value\": \"bar\"},\n {\"action\": \"delete\", \"key\": \"foo\"},\n ]\n }", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/fritz0705/python-lmdb.git", "keywords": null, "license": "http://opensource.org/licenses/MIT", "maintainer": null, "maintainer_email": null, "name": "python-lmdb", "package_url": "https://pypi.org/project/python-lmdb/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-lmdb/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/fritz0705/python-lmdb.git" }, "release_url": "https://pypi.org/project/python-lmdb/1.0.0b1/", "requires_dist": null, "requires_python": null, "summary": "simple lmdb bindings written using ctypes", "version": "1.0.0b1" }, "last_serial": 867806, "releases": { "1.0.0b1": [ { "comment_text": "", "digests": { "md5": "77b7af42a562ddb15e2b8555fe8a7c0f", "sha256": "150283ff9c6d3837cf5b5e76d1ac66292471f2a9641b3402c15485f29c0dbfb8" }, "downloads": -1, "filename": "python-lmdb-1.0.0b1.tar.gz", "has_sig": false, "md5_digest": "77b7af42a562ddb15e2b8555fe8a7c0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8058, "upload_time": "2013-09-17T13:31:03", "url": "https://files.pythonhosted.org/packages/99/2f/3e88269f265222c50545184387af2400024c184c98150932234711589c7c/python-lmdb-1.0.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77b7af42a562ddb15e2b8555fe8a7c0f", "sha256": "150283ff9c6d3837cf5b5e76d1ac66292471f2a9641b3402c15485f29c0dbfb8" }, "downloads": -1, "filename": "python-lmdb-1.0.0b1.tar.gz", "has_sig": false, "md5_digest": "77b7af42a562ddb15e2b8555fe8a7c0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8058, "upload_time": "2013-09-17T13:31:03", "url": "https://files.pythonhosted.org/packages/99/2f/3e88269f265222c50545184387af2400024c184c98150932234711589c7c/python-lmdb-1.0.0b1.tar.gz" } ] }