{ "info": { "author": "Lukasz Balcerzak", "author_email": "lukaszbalcerzak@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Security" ], "description": "=======\ndjmongo\n=======\n\n``djmongo`` is yet another mongodb_ adapter for Django_. This one however, is\nbuild directly on pymongo_, tries to be as small and simple as possible and\nmimics Django_'s ORM (managers/querysets).\n\n``djmongo`` supports Django_ >= 1.3.\n\n\nInstallation\n------------\n\nTo install ``djmongo`` simply run::\n\n pip install djmongo\n\nConfiguration\n-------------\n\n``djmongo`` provides *database engine* so configuration is rather\nstraight-forward::\n\n DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.sqlite3',\n 'NAME': 'database.sqlite',\n 'TEST_NAME': ':memory:',\n },\n\n 'mongodb': {\n 'ENGINE': 'djmongo.backend.mongodb',\n 'NAME': 'testdb',\n }\n }\n\nIn above example we added ``mongodb`` aliased connection to local mongodb\nserver.\n\n\nUsage\n-----\n\nCreate a document::\n\n from djmongo.document import Document\n\n class MyDocument(Document):\n\n class Meta:\n using = 'mongodb'\n\n doc1 = MyDocument.objects.create(data={'foo': 'bar'})\n doc2 = MyDocument.objects.create(data={'foo': 'baz'})\n\n ...\n\n\nTesting\n-------\n\nIn order to properly test an application, one would like to destroy all objects\ninserted during test run between test cases. Normally, Django_ does that using\ntransactions, however we need to destroy objects manually. One can do that at\n*tearDown* method using connection's extra method called\n``clear_all_collections``. Alternatively, one can use subclass of Django_'s\n``django.test.TestCase``: ``djmongo.test.TestCase``.\n\nDevelopment\n-----------\n\nWe use github_ for development of this package (repository, issue tracker).\nWe also use tox_ for package testing against - if one would like to run whole\ntest suite against all supported Django_ versions, simply *clone* repository and\nrun ``tox`` command within it (``pip install tox`` if it's missing).\n\n\n(Un)license\n-----------\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \n\n.. _Django: http://www.djangoproject.org/\n.. _mongodb: http://www.mongodb.org/\n.. _pymongo: https://github.com/mongodb/mongo-python-driver\n.. _tox: http://pypi.python.org/pypi/tox\n.. _github: http://github.com", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/lukaszb/djmongo/downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/lukaszb/djmongo", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "djmongo", "package_url": "https://pypi.org/project/djmongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/djmongo/", "project_urls": { "Download": "http://github.com/lukaszb/djmongo/downloads", "Homepage": "http://github.com/lukaszb/djmongo" }, "release_url": "https://pypi.org/project/djmongo/0.1.7/", "requires_dist": null, "requires_python": null, "summary": "Implementation of per object permissions for Django 1.2 or later.", "version": "0.1.7" }, "last_serial": 751523, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b6c14bc66afef03e8d12974b1e402e33", "sha256": "d43a9b49d5bb3cd396ab9039f1155434d989a66469505f0ccf3897f993c54e83" }, "downloads": -1, "filename": "djmongo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b6c14bc66afef03e8d12974b1e402e33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9834, "upload_time": "2012-04-26T14:36:15", "url": "https://files.pythonhosted.org/packages/22/03/17f0060974f525f30a6f3526ea69b7a3313e7eb3e675424444830c1317bf/djmongo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e6de4d94ca4708d15ef2964abdeb2c6a", "sha256": "84ef300554b53db3b0b383ed5874f161b41116b945cfa232259804731c8687b7" }, "downloads": -1, "filename": "djmongo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e6de4d94ca4708d15ef2964abdeb2c6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10221, "upload_time": "2012-05-24T12:58:45", "url": "https://files.pythonhosted.org/packages/10/79/b373cec619ff4627f4a95c4b2543b778abc2a419cea056a00e6f85f3af9f/djmongo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "dd187b4e5386ca7a6a6881457f2bcaa3", "sha256": "3eb232dbd90566efeaeb9efcbd3e69da56982a6c20ac484280d714090e72d1dc" }, "downloads": -1, "filename": "djmongo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "dd187b4e5386ca7a6a6881457f2bcaa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10303, "upload_time": "2012-05-24T17:31:25", "url": "https://files.pythonhosted.org/packages/56/ff/1e1888055bee30c41b7df9ee84b31c807b13dbb73beb693da89d35ffd2eb/djmongo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "78bf7902b98d643cc4352c1bdf5ca603", "sha256": "aa351d14339029def47b6f18ce71c6f629d3196dc1ba1c1b87e97e8b6132711a" }, "downloads": -1, "filename": "djmongo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "78bf7902b98d643cc4352c1bdf5ca603", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10350, "upload_time": "2012-05-25T16:28:39", "url": "https://files.pythonhosted.org/packages/2b/da/d355ce59d7b96d118768dad5724894bcc7048ad8694a4dbf95476a1cfd09/djmongo-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5e02ad0adc6e0a9691b7ca59540e6697", "sha256": "06f84674b06417417511b65d289ca71f6d196c86dcb35b2114f65fd7f299d465" }, "downloads": -1, "filename": "djmongo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5e02ad0adc6e0a9691b7ca59540e6697", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10474, "upload_time": "2012-06-06T14:34:11", "url": "https://files.pythonhosted.org/packages/a5/ea/08b7ca76b5cec078f90717788e1f4dadeb55aacbabe170a2af53771469f9/djmongo-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "d4553bda7916dd1c4dc3d1b651537dc6", "sha256": "417ee8a6f2a6fb0ac3808c3c003a44f01ed2b719298cdb246087b6e4fe866018" }, "downloads": -1, "filename": "djmongo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "d4553bda7916dd1c4dc3d1b651537dc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10591, "upload_time": "2012-06-08T14:57:56", "url": "https://files.pythonhosted.org/packages/e4/07/62c64a99f975ebdec51eec52c2706c2c8ee260de3bbe825103be8ffdec44/djmongo-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "cd0617711e673ea6de01f65fbad30a22", "sha256": "924caa40a3e873f742cf941c3cecdcb8bb7db4789cb3ca2e35dcd5bc2d458536" }, "downloads": -1, "filename": "djmongo-0.1.6.tar.gz", "has_sig": false, "md5_digest": "cd0617711e673ea6de01f65fbad30a22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10597, "upload_time": "2012-06-21T15:33:40", "url": "https://files.pythonhosted.org/packages/0a/f5/a33c53ccd99e763820dd246c3a6b399a3441ca1366028780daf44d2b15d4/djmongo-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "5f00afd10da2a7b137dd546f76926fad", "sha256": "b36f28f68a6517f7a0b1e6205d35f6be5eae2c8c3c70ea36b63e1a5f44e18273" }, "downloads": -1, "filename": "djmongo-0.1.7.tar.gz", "has_sig": false, "md5_digest": "5f00afd10da2a7b137dd546f76926fad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10949, "upload_time": "2012-06-27T15:44:13", "url": "https://files.pythonhosted.org/packages/ad/06/12978384d8fdbc2593e5912fe8ef3296174c6b7c8a054e87f8ea0b86b447/djmongo-0.1.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f00afd10da2a7b137dd546f76926fad", "sha256": "b36f28f68a6517f7a0b1e6205d35f6be5eae2c8c3c70ea36b63e1a5f44e18273" }, "downloads": -1, "filename": "djmongo-0.1.7.tar.gz", "has_sig": false, "md5_digest": "5f00afd10da2a7b137dd546f76926fad", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10949, "upload_time": "2012-06-27T15:44:13", "url": "https://files.pythonhosted.org/packages/ad/06/12978384d8fdbc2593e5912fe8ef3296174c6b7c8a054e87f8ea0b86b447/djmongo-0.1.7.tar.gz" } ] }