{ "info": { "author": "Lime YH.Shi", "author_email": "shiyanhui66@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython" ], "description": "======\nMonguo\n======\n\n.. image:: https://github.com/shiyanhui/monguo/blob/master/doc/source/_static/monguo.jpg?raw=true\n\t:width: 200px\n\t\n:Info: Monguo is a full-featured, asynchronous MongoDB_ ORM with Motor_ dirver for Tornado_ applications.\n:Author: Lime YH.Shi\n\n.. image:: https://pypip.in/v/monguo/badge.png\n :target: https://crate.io/packages/monguo\n\n.. image:: https://pypip.in/d/monguo/badge.png\n :target: https://crate.io/packages/monguo\n\n.. _MongoDB: http://mongodb.org/\n.. _Motor: https://github.com/mongodb/motor/\n.. _Tornado: http://tornadoweb.org/\n\n\nAbout\n=====\n\nMonguo is an asynchronous MongoDB ORM based on driver Motor_. The `source is on GitHub `_ and the docs are on `ReadTheDocs `_.\n\n\nInstallation\n============\n \n.. code-block:: bash\n\n $ pip install git+https://github.com/mongodb/motor.git\n $ pip install monguo\n\nDependencies\n============\n\nMonguo works in all the environments officially supported by Tornado_ and Motor_. It requires:\n\n* Unix, including Mac OS X. Microsoft Windows is not officially supported.\n* Tornado_ 3.0+ \n* Motor_ 0.2+\n\nExamples\n========\n\n.. code-block:: python\n \n class UserDocument(Document):\n name = StringField(required=True, unique=True, max_length=20)\n email = EmailField(required=True)\n age = IntegerField()\n sex = StringField(required=True, default='male', \n candidate=['male', 'female'])\n meta = {\n 'collection': 'user'\n }\n\n def get_user_list(skip=10, limit=5):\n result = yield UserDocument.find().to_list(limit)\n raise gen.Return(result)\n\n\n class CommentDocument(EmbeddedDocument):\n commentor = ReferenceField(UserDocument, required=True)\n contents = StringField(required=True, max_length=200)\n\n\n class PostDocument(Document):\n author = ReferenceField(UserDocument, required=True)\n publish_time = DateTimeField(required=True)\n title = StringField(required=True, max_length=100)\n contents = StringField(max_length=5000)\n comments = ListField(EmbeddedDocumentField(CommentDocument))\n\n meta = {\n 'collection': 'post'\n }\n\n # connect to database\n Connection.connect('test')\n\n # insert\n bob_id = yield UserDocument.insert({\n 'name': 'Bob',\n 'email': 'bob@gmail.com',\n 'age': 19\n })\n\n alice_id = yield UserDocument.insert({\n 'name': 'Alice',\n 'email': 'alice@gmail.com',\n 'sex': 'female',\n 'age': 18\n })\n\n post_id = yield PostDocument.insert({\n 'author': DBRef(UserDocument.meta['collection'], bob_id),\n 'publish_time': datetime.now(),\n 'title': 'title',\n })\n \n # update\n comment = {\n 'commentor': DBRef(UserDocument.meta['collection'], alice_id),\n 'contents': 'I am comments.'\n }\n yield PostDocument.update({'_id': post_id}, \n {'$push': {'comments': comment}})\n\n # query\n user = yield UserDocument.find_one({'name': 'Bob'})\n posts = yield PostDocument.find().to_list(5)\n\n # higher API\n user_list = yield UserDocument.get_user_list()\n\n\nDocumentation\n=============\n\nYou will need sphinx_ installed to generate the documentation. Documentation\ncan be generated by running ``python setup.py doc``. Generated documentation\ncan be found in ``doc/build/html/``. You can read the current docs\nat ReadTheDocs_.\n\n\n.. _MongoDB: http://mongodb.org/\n.. _Tornado: http://tornadoweb.org/\n.. _Motor: https://github.com/mongodb/motor/\n.. _ReadTheDocs: http://monguo.readthedocs.org/en/latest/\n.. _sphinx: http://sphinx.pocoo.org/\n.. _nose: http://somethingaboutorange.com/mrl/projects/nose/\n.. _nose bug: https://github.com/nose-devs/nose/issues/556", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shiyanhui/monguo", "keywords": "monguo,mongo,mongodb,pymongo,gridfs,bson,motor,tornado,ORM,asynchronous", "license": "http://www.apache.org/licenses/LICENSE-2.0", "maintainer": null, "maintainer_email": null, "name": "monguo", "package_url": "https://pypi.org/project/monguo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/monguo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/shiyanhui/monguo" }, "release_url": "https://pypi.org/project/monguo/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Asynchronous MongoDB ORM for Tornado", "version": "0.2.2" }, "last_serial": 1124853, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "7a5e133d543aa0abb8c70bd43a14ea73", "sha256": "c73c2a20b1a525fde16d464c123736e50dd4561c117b845ad7c4b9a25b08331c" }, "downloads": -1, "filename": "monguo-0.1.tar.gz", "has_sig": false, "md5_digest": "7a5e133d543aa0abb8c70bd43a14ea73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11807, "upload_time": "2013-10-19T08:46:49", "url": "https://files.pythonhosted.org/packages/a1/c1/eaaa949b751fbcb435f3af59b0f027499def9e213ad6fa0cd22b15431cc7/monguo-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "24dbb91fc620bc815f43f88cf48d7ce3", "sha256": "b167b2f43e75a6d3dd90b6a76cf4bfeec1d5cdcd459e18ca90261164d9637c21" }, "downloads": -1, "filename": "monguo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "24dbb91fc620bc815f43f88cf48d7ce3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12032, "upload_time": "2013-10-19T08:58:52", "url": "https://files.pythonhosted.org/packages/c0/d8/617e149497e4948b4f611cfba2c0d24c09c6ec8887539b7e1425e85504c7/monguo-0.1.1.tar.gz" } ], "0.1.12": [ { "comment_text": "", "digests": { "md5": "e8ed38d645bbb34485ef311f480732c5", "sha256": "3e8f1be31a5d88c887b6f951b701c44b03f697b8f6342b50e699ebf178650173" }, "downloads": -1, "filename": "monguo-0.1.12.tar.gz", "has_sig": false, "md5_digest": "e8ed38d645bbb34485ef311f480732c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14460, "upload_time": "2014-03-26T07:31:10", "url": "https://files.pythonhosted.org/packages/34/7f/569a7868e894675608dc71c5c703d9da386aa1b4a54a354852d8e662208c/monguo-0.1.12.tar.gz" } ], "0.1.13": [ { "comment_text": "", "digests": { "md5": "3b00c91244fe92e3d1950fa0f999dfcc", "sha256": "a69a66c09b6ffb60da7701f895aa7ca7cb30fc7b4cdfafae49891dc0ff8a8b29" }, "downloads": -1, "filename": "monguo-0.1.13.tar.gz", "has_sig": false, "md5_digest": "3b00c91244fe92e3d1950fa0f999dfcc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14464, "upload_time": "2014-04-13T07:55:00", "url": "https://files.pythonhosted.org/packages/c4/e9/cc82923f8c2ba962761a5512847fe0febc25d8f12e1e9cd22e738a12af00/monguo-0.1.13.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "fa63c5becbd382c43f7e16358679b777", "sha256": "d934fc237d0d99cb939f400f4ffa3c1afe20ef1cd17ebf60e367da46deac9f6c" }, "downloads": -1, "filename": "monguo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "fa63c5becbd382c43f7e16358679b777", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13461, "upload_time": "2013-10-25T11:45:14", "url": "https://files.pythonhosted.org/packages/91/2c/45ac9eb2b95378a6a3b112bbe7583b567df02d2422a03e9b873e5c7273ae/monguo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "08faf21465055a71fe2e6402e756e39d", "sha256": "43151edc644f823b9eecea2d652ca82ec20fa9b4063fb78c44fe3ceabafe97df" }, "downloads": -1, "filename": "monguo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "08faf21465055a71fe2e6402e756e39d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14103, "upload_time": "2013-11-25T03:09:03", "url": "https://files.pythonhosted.org/packages/5f/19/1e88d0e03b677cd0a38d1ffe365554b0d2600a11364a36374952c29eee09/monguo-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "57aa09e1bbf23313de17a46b2045706f", "sha256": "7ec6f395ef9c744c5879b55d19ece241c09742c05ac42d1c8a9f13c5a11b93a5" }, "downloads": -1, "filename": "monguo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "57aa09e1bbf23313de17a46b2045706f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14186, "upload_time": "2013-11-27T04:00:48", "url": "https://files.pythonhosted.org/packages/8f/8d/ec5b063e76994890446975279595bcb5b4e4fbff21bbbdc64449b708dd9c/monguo-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "39a2c1da13143493fccb802c4d592a29", "sha256": "5e00551281922584396c7d2f4b908c167f130bd6793d6736968c69dbc74051a1" }, "downloads": -1, "filename": "monguo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "39a2c1da13143493fccb802c4d592a29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14174, "upload_time": "2013-12-02T14:08:30", "url": "https://files.pythonhosted.org/packages/f8/cf/14e8e3b023b07ec9fbb45871c431bc104fd60808c6621e24633c1ed9e7a0/monguo-0.1.5.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1a395a4ca6cfba70508363568f9a6ec6", "sha256": "2477c57ac55c5d3253eedde7d2d1c9b7325b7a64feee2d78d0121e7adaf452ac" }, "downloads": -1, "filename": "monguo-0.2.tar.gz", "has_sig": false, "md5_digest": "1a395a4ca6cfba70508363568f9a6ec6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14452, "upload_time": "2014-05-05T10:41:14", "url": "https://files.pythonhosted.org/packages/1d/5a/90f22e546f6ebecd073974d814e8dee4f6ac8bc3297110d911767615dfd4/monguo-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b755c54bdc71b80ed731f1cd7e4027f7", "sha256": "1c408eb1b355d5041d05c4822fb2d73b94d82390e338a3fe3e9def8686c55f82" }, "downloads": -1, "filename": "monguo-0.2.1.tar.gz", "has_sig": false, "md5_digest": "b755c54bdc71b80ed731f1cd7e4027f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14511, "upload_time": "2014-06-01T03:16:21", "url": "https://files.pythonhosted.org/packages/1b/41/a30894bd241f44b12078607aadabdecebcdb37cff1554fb6188a24a2fa8d/monguo-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "7d6dfb2a402bdbb4c27a828ac9448522", "sha256": "f7225a809aea49da46319df0837fd75e3232d92f60e51f1fef21ae046df1bfbe" }, "downloads": -1, "filename": "monguo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "7d6dfb2a402bdbb4c27a828ac9448522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14398, "upload_time": "2014-06-14T15:02:22", "url": "https://files.pythonhosted.org/packages/4c/71/11b550b43d5a585d0a63644c151cd12f740cf4e3047603ecf380a2a336ee/monguo-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d6dfb2a402bdbb4c27a828ac9448522", "sha256": "f7225a809aea49da46319df0837fd75e3232d92f60e51f1fef21ae046df1bfbe" }, "downloads": -1, "filename": "monguo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "7d6dfb2a402bdbb4c27a828ac9448522", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14398, "upload_time": "2014-06-14T15:02:22", "url": "https://files.pythonhosted.org/packages/4c/71/11b550b43d5a585d0a63644c151cd12f740cf4e3047603ecf380a2a336ee/monguo-0.2.2.tar.gz" } ] }