{ "info": { "author": "Kris", "author_email": "31852063+krisfris@users.noreply.github.com", "bugtrack_url": null, "classifiers": [], "description": "# pyfongo\n\npyfongo is an in-process library that implements a self-contained, serverless, zero-configuration, mongodb database engine with pymongo's interface.\n\nInspired by pymongo and sqlite.\n\nWritten for Python 3.6.\n\n## When to use\n- unit testing of apps that use mongodb\n- stand-in for mongodb during demos and testing\n- as application file format\n- data analysis using mongodb queries\n- temporary database for reorganizing data\n- in embedded systems\n\n## Examples\n\n >>> import pyfongo\n >>> cx = pyfongo.FongoClient('/path/to/datadir')\n >>> db = cx.test\n >>> db.my_collection.insert_one({'x': 10}).inserted_id\n ObjectId('5aded7ff7aea217b9056e9d0')\n >>> db.my_collection.insert_one({'x': 12}).inserted_id\n ObjectId('5aded8467aea217b9056e9d1')\n >>> db.my_collection.find_one()\n {'x': 10, '_id': ObjectId('5aded7ff7aea217b9056e9d0')}\n >>> for item in db.my_collection.find().sort('x', -1):\n ... print(item['x'])\n ...\n 12\n 10\n\n## Testing\n\nThe same tests are run against both pyfongo and a local mongodb server\nusing pymongo to ensure that pyfongo mimics mongodb/pymongo's behavior correctly.\n\nRun the tests with: `pipenv run pytest -sv`\n\nNote that you will need to run `pipenv install --dev` once before you can\nrun the tests.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/krisfris/pytest-krisfris/tarball/0.1.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/krisfris/pyfongo", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyfongo", "package_url": "https://pypi.org/project/pyfongo/", "platform": "", "project_url": "https://pypi.org/project/pyfongo/", "project_urls": { "Download": "https://github.com/krisfris/pytest-krisfris/tarball/0.1.0", "Homepage": "https://github.com/krisfris/pyfongo" }, "release_url": "https://pypi.org/project/pyfongo/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "Serverless self-contained database with pymongo interface", "version": "0.1.0" }, "last_serial": 3853812, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6c41b1ad3d69e7e46192887602f74914", "sha256": "ff2c5cba2d56e5735816267606c5e1672752a076ad5cbed71dfcd8422c94df11" }, "downloads": -1, "filename": "pyfongo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c41b1ad3d69e7e46192887602f74914", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5087, "upload_time": "2018-05-11T11:22:14", "url": "https://files.pythonhosted.org/packages/7b/40/bf01522621e5497870eb45a89795faf6bc63600c486e72eef6f7e4cc0aab/pyfongo-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6c41b1ad3d69e7e46192887602f74914", "sha256": "ff2c5cba2d56e5735816267606c5e1672752a076ad5cbed71dfcd8422c94df11" }, "downloads": -1, "filename": "pyfongo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c41b1ad3d69e7e46192887602f74914", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5087, "upload_time": "2018-05-11T11:22:14", "url": "https://files.pythonhosted.org/packages/7b/40/bf01522621e5497870eb45a89795faf6bc63600c486e72eef6f7e4cc0aab/pyfongo-0.1.0.tar.gz" } ] }