{ "info": { "author": "Roman Kalyakin ", "author_email": "roman@kalyakin.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Database :: Database Engines/Servers", "Topic :: Software Development :: Testing" ], "description": "Mongo Box\n---------\n\nMongo Box helps starting and stopping sandboxed MongoDB instance\nfrom within a Python process. MongoDB instance is created with a\ntemporary directory to store database file and is configured to\nbe as lightweight as possible. It will choose a free port on localhost, \nso it will not interfere with default MongoDB processes. \nIt is primarily expected to be used in unit tests and for prototyping concepts.\n\nA typical use of a Mongo Box:\n\n```python\nfrom mongobox import MongoBox\n\nbox = MongoBox()\nbox.start()\n\nclient = box.client() # pymongo client \nprint(client.server_info())\n\n# do stuff with Mongo\n\nbox.stop()\ntry:\n client.server_info()\nexcept:\n print('Mongo instance is stopped')\n```\n\nNose 1\n------\n\nMongo Box comes with a Nose plugin which is automatically installed.\nIf used as a plugin, port of the running instance will be exported\nin environment variable `MONGOBOX_PORT`. This name can be overridden\nin settings.\n\nThe plugin exposes several configuration options. To see them, run:\n\n nosetests --help\n\nThe options you are interested in start with `--mongobox-`.\n\nNose 2\n------\n\n`nose2.cfg` should look similar to this:\n\n```ini\n[unittest]\nplugins = mongobox.nose2_plugin\n\n[mongobox]\n# Optionally specify the path to the mongod executable\n# bin =\n# Optionally specify the port to run mongodb on\n# port =\n# Optionally enable mongodb script engine\n# scripting = True\n# Path to database files directory. Creates temporary directory by default\n# dbpath =\n# Optionally store the mongodb log here (default is /dev/null)\n# logpath =\n# Optionally preallocate db files\n# prealloc = True\n# Which environment variable port number will be exported to\nport_envvar = MONGOBOX_PORT\n```\n\nUnit tests\n----------\n\nFor an easy unit tests integration there is a `MongoTestCase` class\ninherited from `unittest.TestCase`. It assumes tests are run from `nosetests`\nwith `--with-mongobox` flag. `MongoTestCases` provides a `pymongo` client\nconnected to the sandboxed mongo instance and a `purge_database` helper\nto clean up the database after every test:\n\n```python\nfrom mongobox.unittest import MongoTestCase\n\nclass MyTest(MongoTestCase):\n def setUp(self):\n deploy_fixtures(self.mongo_client)\n\n def tearDown(self):\n self.purge_database()\n```\n\nInstallation\n------------\n\nGet it from PyPi:\n\n pip install mongobox\n\nGet it from GitHub:\n \n pip install https://github.com/theorm/mongobox.git\n\n\n\nAuthors\n=======\n\n Roman Kalyakin \n\n\nThanks\n------\n\nMongoBox is based on `mongonose` nose plugin by Kapil Thangavelu.\n\nFor a list of contributors see `AUTHORS.md`.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/theorm/mongobox", "keywords": "", "license": "Copyright 2013 Roman Kalyakin\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.", "maintainer": "", "maintainer_email": "", "name": "mongobox", "package_url": "https://pypi.org/project/mongobox/", "platform": "", "project_url": "https://pypi.org/project/mongobox/", "project_urls": { "Homepage": "http://github.com/theorm/mongobox" }, "release_url": "https://pypi.org/project/mongobox/0.1.8/", "requires_dist": null, "requires_python": "", "summary": "Run sandboxed Mongo DB instance from a python application.", "version": "0.1.8" }, "last_serial": 4411222, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dfd9134e1c23666cc7ee6a5a68567628", "sha256": "91cf4c61e245b38625a9dee8422e73f209bcd25f65e9436bbf63aa169921f17f" }, "downloads": -1, "filename": "mongobox-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dfd9134e1c23666cc7ee6a5a68567628", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4878, "upload_time": "2013-02-06T23:34:48", "url": "https://files.pythonhosted.org/packages/d1/b7/e8c92344b0d820f7eaa0e7d0e2ab12c11ae55de861ceeaea751d62b49852/mongobox-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "a546819d8ea62419853b0bab7ada5ec1", "sha256": "69f0e93d8297994078b7681436de1dd9c0b6ebcf2da4ad22de1b7e715c486d7b" }, "downloads": -1, "filename": "mongobox-0.1.1.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "a546819d8ea62419853b0bab7ada5ec1", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 71201, "upload_time": "2013-05-27T01:09:59", "url": "https://files.pythonhosted.org/packages/77/6e/5ae69adc07fc02a93001d4c52ea8f8aee556fd379284093c16e819188b56/mongobox-0.1.1.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "16cb129b7cb7615ac3109094852985c6", "sha256": "90fd92a780ad67aa6504a738f59709a0b3b135aae49ab7de10cebe92ac604c21" }, "downloads": -1, "filename": "mongobox-0.1.1.tar.gz", "has_sig": false, "md5_digest": "16cb129b7cb7615ac3109094852985c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6008, "upload_time": "2013-05-27T01:09:56", "url": "https://files.pythonhosted.org/packages/7e/20/9d9cd14b201e5958c9375134b9645c134db04f52734e8bec3a54317522b2/mongobox-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "e71e6d3fad0c62ae41cae52d027ba336", "sha256": "78517394e002ce595298cff882480bcbdc4d4ef9f55604bed3bb851b0d11cf26" }, "downloads": -1, "filename": "mongobox-0.1.2.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "e71e6d3fad0c62ae41cae52d027ba336", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 71289, "upload_time": "2013-05-28T01:22:54", "url": "https://files.pythonhosted.org/packages/e0/a1/d5062126fc5f61416e704ebfb8af577c90310c38560f4b33bb378e91c3cb/mongobox-0.1.2.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "e6cdf6a95532bb23623e517063509717", "sha256": "d665820d7b380188a09ca4441ef85be84d275bdff2c8b5cda6b27d81bf1db83c" }, "downloads": -1, "filename": "mongobox-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e6cdf6a95532bb23623e517063509717", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6097, "upload_time": "2013-05-28T01:22:51", "url": "https://files.pythonhosted.org/packages/2e/2b/98024f044b9c3238d14a354fedddf785d225d486021799952e7461b72940/mongobox-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "df081d055f11f741572bcf51233c9034", "sha256": "998fc73113bc6752f4fd85dddfe9cdadd85a5573b7a9cc137433e27ddbc53cfe" }, "downloads": -1, "filename": "mongobox-0.1.3.macosx-10.8-intel.exe", "has_sig": false, "md5_digest": "df081d055f11f741572bcf51233c9034", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 71435, "upload_time": "2013-05-30T02:07:18", "url": "https://files.pythonhosted.org/packages/1c/ab/c3f608e5fb248d1e7715a416bb17dcff2219c43d10ec9145c54ba3c856d1/mongobox-0.1.3.macosx-10.8-intel.exe" }, { "comment_text": "", "digests": { "md5": "e658620a190a3f0c6fe5c9f8ccdcd043", "sha256": "c1430dfae447ff073172364a971fd75278d253d6c0018e5338d846d0f61de141" }, "downloads": -1, "filename": "mongobox-0.1.3.tar.gz", "has_sig": false, "md5_digest": "e658620a190a3f0c6fe5c9f8ccdcd043", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6223, "upload_time": "2013-05-30T02:07:15", "url": "https://files.pythonhosted.org/packages/f8/79/703ef1bdfebbdca0b077af457e260ed4b5be136a686ee9fcbb8c37e35c26/mongobox-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "cea8e1fa12c9e82ab60b521b297f9a3f", "sha256": "175e0542cea69111bcedda2ae4427e098705c157fda80b5aa94e7b62b3fd6217" }, "downloads": -1, "filename": "mongobox-0.1.4.tar.gz", "has_sig": false, "md5_digest": "cea8e1fa12c9e82ab60b521b297f9a3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6260, "upload_time": "2014-11-15T03:59:27", "url": "https://files.pythonhosted.org/packages/a8/23/8bb3c73d4b15519d5d87a4e17db36b1847b6b787e8abdc68be614dc9f445/mongobox-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "31d67f3549de6184c5c37d3924201685", "sha256": "b4a5723a7bc209afab0c43ef5c1a206b5c91efd410485d7725876003317b58b3" }, "downloads": -1, "filename": "mongobox-0.1.5.tar.gz", "has_sig": false, "md5_digest": "31d67f3549de6184c5c37d3924201685", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6814, "upload_time": "2015-01-24T02:04:25", "url": "https://files.pythonhosted.org/packages/a1/23/e62294ceb9a5a3fc0242d920eea613731af957ee3d519a6978c07d338811/mongobox-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "c6ca5d560f028e3f7964e96988575afc", "sha256": "a89b6d08182b6cfdecd0403f901b6b12c7d102bec07568f287feb63e6ca1116d" }, "downloads": -1, "filename": "mongobox-0.1.6.tar.gz", "has_sig": false, "md5_digest": "c6ca5d560f028e3f7964e96988575afc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6919, "upload_time": "2015-01-30T19:53:52", "url": "https://files.pythonhosted.org/packages/70/d0/59a5c8956b521735ed86cfbd45421da447cdf549defcdac56b1936ebc3a9/mongobox-0.1.6.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "b116b5890a7f1e4837c0ff1d6e17421d", "sha256": "52e82df1c70cef0204ce2cfa850041a60947aeef3f8d79d718a1469b5a850f37" }, "downloads": -1, "filename": "mongobox-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b116b5890a7f1e4837c0ff1d6e17421d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7686, "upload_time": "2018-10-24T14:00:03", "url": "https://files.pythonhosted.org/packages/e7/4b/4922f5533f1bc1c259aeec34aec4a6273fd11b886cf08915d25a67083910/mongobox-0.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b116b5890a7f1e4837c0ff1d6e17421d", "sha256": "52e82df1c70cef0204ce2cfa850041a60947aeef3f8d79d718a1469b5a850f37" }, "downloads": -1, "filename": "mongobox-0.1.8.tar.gz", "has_sig": false, "md5_digest": "b116b5890a7f1e4837c0ff1d6e17421d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7686, "upload_time": "2018-10-24T14:00:03", "url": "https://files.pythonhosted.org/packages/e7/4b/4922f5533f1bc1c259aeec34aec4a6273fd11b886cf08915d25a67083910/mongobox-0.1.8.tar.gz" } ] }