{ "info": { "author": "Luke Lovett", "author_email": "mongodb-user@googlegroups.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Database", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "======\nPyMODM\n======\n\n\n.. image:: https://readthedocs.org/projects/pymodm/badge/?version=stable\n :alt: Documentation\n :target: http://pymodm.readthedocs.io/en/stable/?badge=stable\n\n.. image:: https://travis-ci.org/mongodb/pymodm.svg?branch=master\n :alt: View build status\n :target: https://travis-ci.org/mongodb/pymodm\n\n.. image:: https://badges.gitter.im/mongodb/pymodm.svg\n :alt: Join the chat at https://gitter.im/mongodb/pymodm\n :target: https://gitter.im/mongodb/pymodm?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n\nA generic ODM around PyMongo_, the MongoDB Python driver. PyMODM works on Python\n2.7 as well as Python 3.3 and up. To learn more, you can browse the `official\ndocumentation`_ or take a look at some `examples`_.\n\n.. _PyMongo: https://pypi.python.org/pypi/pymongo\n.. _official documentation: http://pymodm.readthedocs.io/en/stable\n.. _examples: https://github.com/mongodb/pymodm/tree/master/example\n\nWhy PyMODM?\n===========\n\nPyMODM is a \"core\" ODM, meaning that it provides simple, extensible\nfunctionality that can be leveraged by other libraries to target platforms like\nDjango. At the same time, PyMODM is powerful enough to be used for developing\napplications on its own. Because MongoDB engineers are involved in developing\nand maintaining the project, PyMODM will also be quick to adopt new MongoDB\nfeatures.\n\nSupport / Feedback\n==================\n\nFor issues with, questions about, or feedback for PyMODM, please look into\nour `support channels `_. Please do not\nemail any of the PyMODM developers directly with issues or questions -\nyou're more likely to get an answer on the `mongodb-user\n`_ list on Google Groups.\n\nBugs / Feature Requests\n=======================\n\nThink you\u2019ve found a bug? Want to see a new feature in PyMODM? Please open\na case in our issue management tool, JIRA:\n\n- `Create an account and login `_.\n- Navigate to `the PYMODM project `_.\n- Click **Create Issue** - Please provide as much information as possible about the issue type and how to reproduce it.\n\nBug reports in JIRA for all driver projects (e.g. PYMODM, PYTHON, JAVA) and the\nCore Server (i.e. SERVER) project are **public**.\n\nHow To Ask For Help\n-------------------\n\nPlease include all of the following information when opening an issue:\n\n- Detailed steps to reproduce the problem, including full traceback, if possible.\n- The exact python version used, with patch level::\n\n $ python -c \"import sys; print(sys.version)\"\n\n- The exact version of PyMODM used, with patch level::\n\n $ python -c \"import pymodm; print(pymodm.version)\"\n\n- The PyMongo version used, with patch level::\n\n $ python -c \"import pymongo; print(pymongo.version)\"\n\n- The operating system and version (e.g. Windows 7, OSX 10.8, ...)\n- Web framework or asynchronous network library used, if any, with version (e.g.\n Django 1.7, mod_wsgi 4.3.0, gevent 1.0.1, Tornado 4.0.2, ...)\n\nSecurity Vulnerabilities\n------------------------\n\nIf you\u2019ve identified a security vulnerability in a driver or any other\nMongoDB project, please report it according to the `instructions here\n`_.\n\nExample\n=======\n\nHere's a basic example of how to define some models and connect them to MongoDB:\n\n.. code-block:: python\n\n from pymongo import TEXT\n from pymongo.operations import IndexModel\n from pymodm import connect, fields, MongoModel, EmbeddedMongoModel\n\n\n # Connect to MongoDB first. PyMODM supports all URI options supported by\n # PyMongo. Make sure also to specify a database in the connection string:\n connect('mongodb://localhost:27017/myApp')\n\n\n # Now let's define some Models.\n class User(MongoModel):\n # Use 'email' as the '_id' field in MongoDB.\n email = fields.EmailField(primary_key=True)\n fname = fields.CharField()\n lname = fields.CharField()\n\n\n class BlogPost(MongoModel):\n # This field references the User model above.\n # It's stored as a bson.objectid.ObjectId in MongoDB.\n author = fields.ReferenceField(User)\n title = fields.CharField(max_length=100)\n content = fields.CharField()\n tags = fields.ListField(fields.CharField(max_length=20))\n # These Comment objects will be stored inside each Post document in the\n # database.\n comments = fields.EmbeddedDocumentListField('Comment')\n\n class Meta:\n # Text index on content can be used for text search.\n indexes = [IndexModel([('content', TEXT)])]\n\n # This is an \"embedded\" model and will be stored as a sub-document.\n class Comment(EmbeddedMongoModel):\n author = fields.ReferenceField(User)\n body = fields.CharField()\n vote_score = fields.IntegerField(min_value=0)\n\n\n # Start the blog.\n # We need to save these objects before referencing them later.\n han_solo = User('mongoblogger@reallycoolmongostuff.com', 'Han', 'Solo').save()\n chewbacca = User(\n 'someoneelse@reallycoolmongostuff.com', 'Chewbacca', 'Thomas').save()\n\n\n post = BlogPost(\n # Since this is a ReferenceField, we had to save han_solo first.\n author=han_solo,\n title=\"Five Crazy Health Foods Jabba Eats.\",\n content=\"...\",\n tags=['alien health', 'slideshow', 'jabba', 'huts'],\n comments=[\n Comment(author=chewbacca, body='Rrrrrrrrrrrrrrrr!', vote_score=42)\n ]\n ).save()\n\n\n # Find objects using familiar MongoDB-style syntax.\n slideshows = BlogPost.objects.raw({'tags': 'slideshow'})\n\n # Only retrieve the 'title' field.\n slideshow_titles = slideshows.only('title')\n\n # u'Five Crazy Health Foods Jabba Eats.'\n print(slideshow_titles.first().title)\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "pymodm", "package_url": "https://pypi.org/project/pymodm/", "platform": "any", "project_url": "https://pypi.org/project/pymodm/", "project_urls": null, "release_url": "https://pypi.org/project/pymodm/0.4.1/", "requires_dist": [ "pymongo (<4.0,>=3.4)", "ipaddress", "Pillow; extra == 'images'" ], "requires_python": "", "summary": "PyMODM is a generic ODM on top of PyMongo.", "version": "0.4.1" }, "last_serial": 4146635, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "40c4137a47a56668cb469a2d1eda2742", "sha256": "ef5394f5f0a014f810c1d20c0917b0d366138118152de5dc80166cc546704ab8" }, "downloads": -1, "filename": "pymodm-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "40c4137a47a56668cb469a2d1eda2742", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 47119, "upload_time": "2016-08-15T18:51:24", "url": "https://files.pythonhosted.org/packages/25/ec/826556475816b0a7099a1752ec24967f09f0b15aa327b736d1c0f6fc07c5/pymodm-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "de94ec8d62cc82d0a85e1487cb495901", "sha256": "87afeb4518bb73451d60cf9be8c6f5dc3c7aaa83cfa047f4f26b84231223a649" }, "downloads": -1, "filename": "pymodm-0.1.0.tar.gz", "has_sig": false, "md5_digest": "de94ec8d62cc82d0a85e1487cb495901", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45257, "upload_time": "2016-08-15T18:51:22", "url": "https://files.pythonhosted.org/packages/23/4f/ca766bd36ee8e33743141f5d02a3774de6bd0839a0955dcc82e891cb889c/pymodm-0.1.0.tar.gz" } ], "0.1.0.dev0": [], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f58cb5431fd441e7dff5349a68ee9da3", "sha256": "7d3453ab25b66debcdc17e8c016f0f66c40d3360dbdd87ef40ea8dcb89a332fe" }, "downloads": -1, "filename": "pymodm-0.2.0-py2-none-any.whl", "has_sig": false, "md5_digest": "f58cb5431fd441e7dff5349a68ee9da3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 47891, "upload_time": "2016-11-01T17:10:48", "url": "https://files.pythonhosted.org/packages/11/5d/b945cda534dc7a4712c83b6e2ba328619f002546981a5d932ff593c522a0/pymodm-0.2.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80936657f4c2a9020e6fa819a82f6f39", "sha256": "32e3d4d83d762b1e9152f74118c608b069db9058fcc38d8d2cfed21a8fd91de0" }, "downloads": -1, "filename": "pymodm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "80936657f4c2a9020e6fa819a82f6f39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46210, "upload_time": "2016-11-01T17:10:45", "url": "https://files.pythonhosted.org/packages/3f/8e/2beece115ab7f38eb387d9c86a3c751619c560642173a3e0fd06ef8c5123/pymodm-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "ba9a539537d688a5e65b92e79c762962", "sha256": "fff506d5d1fe062bd1011697fa9627031eb7dc046ff1bf6d210860650f293a60" }, "downloads": -1, "filename": "pymodm-0.3.0-py2-none-any.whl", "has_sig": false, "md5_digest": "ba9a539537d688a5e65b92e79c762962", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 48805, "upload_time": "2016-12-05T22:02:16", "url": "https://files.pythonhosted.org/packages/ed/6d/612219f6c8a63a8816537c1b45ddca01ebfe027b31ffa24c57db4e2098ce/pymodm-0.3.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07f4b97de67308eb68db7da7d1adde71", "sha256": "236a819ebfc5029e0e149c8bcf8f03f59385db27dcd25209fe99dd9ff8122c64" }, "downloads": -1, "filename": "pymodm-0.3.0.tar.gz", "has_sig": false, "md5_digest": "07f4b97de67308eb68db7da7d1adde71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47891, "upload_time": "2016-12-05T22:02:13", "url": "https://files.pythonhosted.org/packages/07/ba/4e5eef2e507eb7584edf131a9cf53d2a3a6b1c298537a763f082cff58906/pymodm-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "1bc590a5e3de8417d9b5384149136ccb", "sha256": "e1413fefe4aefea59563016cc691555b952582ba293088f96bbb4ba52279e761" }, "downloads": -1, "filename": "pymodm-0.4.0-py2-none-any.whl", "has_sig": false, "md5_digest": "1bc590a5e3de8417d9b5384149136ccb", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 50532, "upload_time": "2017-03-10T23:55:29", "url": "https://files.pythonhosted.org/packages/17/b8/550b881305a5a191d50b4cf46e8070e0d0a882cd0d60372186303c1af82b/pymodm-0.4.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d276503608d9da548bc6d697b0d46815", "sha256": "7a3ce44f13c6bb6357e02dcec034773a4a330f6e76ef925d801e5d1a4f2c1bc2" }, "downloads": -1, "filename": "pymodm-0.4.0.tar.gz", "has_sig": false, "md5_digest": "d276503608d9da548bc6d697b0d46815", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51532, "upload_time": "2017-03-10T23:56:09", "url": "https://files.pythonhosted.org/packages/55/e0/29d7100f3ed050608f6a90fbeea0fdd74afb62b28bfed7d12ae40a3a0e0e/pymodm-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "c6fbfc351b4c43ab756ab22c0ec626f4", "sha256": "906223905aa6df2fd35b5f72b0b3dac85ba7f83884beeee73f7e411ca53388ee" }, "downloads": -1, "filename": "pymodm-0.4.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c6fbfc351b4c43ab756ab22c0ec626f4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 47905, "upload_time": "2018-08-07T23:29:00", "url": "https://files.pythonhosted.org/packages/f6/69/265112fb097d14accacb773212758a3ee211b6cc4da0c1ff5df6bdf39189/pymodm-0.4.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8233411f11cfe1cfc73517474f520127", "sha256": "28998a32dd5c3099b9c45f88b7cb2af449bd66bf1d38a9777c452023984309f6" }, "downloads": -1, "filename": "pymodm-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8233411f11cfe1cfc73517474f520127", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 47899, "upload_time": "2018-08-07T23:29:01", "url": "https://files.pythonhosted.org/packages/0b/6b/bc9f7e09434971af48d99f2fffb697ca046057ab107a26524ec019e3f8cb/pymodm-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "316bcc3e0295891f49d72414435b7353", "sha256": "eeb2e4c586d98dda8d199abe27b11791a5f7d5b52d43f041919e71cb61282f9d" }, "downloads": -1, "filename": "pymodm-0.4.1.tar.gz", "has_sig": false, "md5_digest": "316bcc3e0295891f49d72414435b7353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54570, "upload_time": "2018-08-07T23:29:03", "url": "https://files.pythonhosted.org/packages/ad/f0/1fd034526193389f9e9905de08b3eef32dcea42b99230fcfb25968f09979/pymodm-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c6fbfc351b4c43ab756ab22c0ec626f4", "sha256": "906223905aa6df2fd35b5f72b0b3dac85ba7f83884beeee73f7e411ca53388ee" }, "downloads": -1, "filename": "pymodm-0.4.1-py2-none-any.whl", "has_sig": false, "md5_digest": "c6fbfc351b4c43ab756ab22c0ec626f4", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 47905, "upload_time": "2018-08-07T23:29:00", "url": "https://files.pythonhosted.org/packages/f6/69/265112fb097d14accacb773212758a3ee211b6cc4da0c1ff5df6bdf39189/pymodm-0.4.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8233411f11cfe1cfc73517474f520127", "sha256": "28998a32dd5c3099b9c45f88b7cb2af449bd66bf1d38a9777c452023984309f6" }, "downloads": -1, "filename": "pymodm-0.4.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8233411f11cfe1cfc73517474f520127", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 47899, "upload_time": "2018-08-07T23:29:01", "url": "https://files.pythonhosted.org/packages/0b/6b/bc9f7e09434971af48d99f2fffb697ca046057ab107a26524ec019e3f8cb/pymodm-0.4.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "316bcc3e0295891f49d72414435b7353", "sha256": "eeb2e4c586d98dda8d199abe27b11791a5f7d5b52d43f041919e71cb61282f9d" }, "downloads": -1, "filename": "pymodm-0.4.1.tar.gz", "has_sig": false, "md5_digest": "316bcc3e0295891f49d72414435b7353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54570, "upload_time": "2018-08-07T23:29:03", "url": "https://files.pythonhosted.org/packages/ad/f0/1fd034526193389f9e9905de08b3eef32dcea42b99230fcfb25968f09979/pymodm-0.4.1.tar.gz" } ] }