{ "info": { "author": "Alexander Artemenko", "author_email": "svetlyak.40wt@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Topic :: Database" ], "description": "PyMongoBongo\n============\n:Info: See `the mongo site `_ for more information. See `github `_ for the latest source.\n:Author: Alexander Artemenko \n\nAbout\n-----\nThe PyMongoBongo distribution contains wrappers to add some syntax sugar to `PyMongo `_ for easier interaction with the Mongo database using \"python way\".\n\nChangeLog\n---------\n\n0.1.3\n^^^^^\n\n* Fixed __len__ method, broken by changes in pymongo 1.1.1. Now mongobongo depends on pymongo >= 1.1.1.\n\n0.1.2\n^^^^^\n\n* Fixed ordering in case, when 'find_one' is used.\n* Fixed default cursor ordering, now it is applied in the constructor.\n\n0.1.1\n^^^^^\n\n* Added automatic DBRef usage, when one document contains another. Here is an example::\n\n >>> author = Author(name = 'Alexander')\n >>> article = Article(title = 'Life is miracle', author = author)\n >>> Author.objects.count()\n 0\n >>> article.save()\n >>> article = Article.objects.find_one()\n >>> article.author.name\n 'Alexander'\n >>> Author.objects.count()\n 1\n\n0.1.0\n^^^^^\n\n* Basic support for documents with attributes.\n\nInstallation\n------------\nIf you have `setuptools `_ installed you should be able to do **easy_install pymongo-bongo** to install PyMongoBongo. Otherwise you can download the project source and do **python setup.py install** to install.\n\nDependencies\n------------\nThe PyMongoBongo depends on PyMongo >= 1.1.1\n\nAdditional dependencies are:\n\n- (to generate documentation) `epydoc `_\n- (to auto-discover tests) `nose `_\n\nExamples\n--------\nHere's a basic example:\n\n>>> from pymongo.connection import Connection\n>>> from mongobongo import Document\n>>> class Article(Document):\n... collection = 'articles'\n... def get_full_title(self):\n... return '%s (%s)' % (self.title, ', '.join(self.tags))\n>>> connection = Connection(\"localhost\", 27017)\n>>> Article.objects.db = connection.test\n>>> article = Article(author = 'Alex', title = 'Pink Pony\\'s Life', tags = ['mongo', 'bongo'])\n>>> article.save()\n>>> articles = Article.objects.all()\n>>> len(articles)\n1\n>>> article = Article(author = 'Alex', title = 'Long Long Python', tags = ['python', 'devel'], subtitle = 'Not such long')\n>>> article.save()\n>>> articles = Article.objects.all()\n>>> len(articles)\n2\n>>> python_articles = Article.objects.find({'tags': 'python'})\n>>> len(python_articles)\n1\n>>> python_articles[0].title\n'Long Long Python'\n\n\nDocumentation\n-------------\nYou will need `epydoc `_ installed to generate the documentation. Documentation can be generated by running **python setup.py doc**. Generated documentation can be found in the *doc/* directory.\n\nTesting\n-------\nThe easiest way to run the tests is to install `nose `_ (**easy_install nose**) and run **nosetests** or **python setup.py test** in the root of the distribution. Tests are located in the *test/* directory.\n\nCredits\n-------\n\n* Slava Vishnyakov, for 'Document.remove' method.\n\nWanna be listed here? Go to the GitHub, fork the project and send me patches :)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/svetlyak40wt/pymongo-bongo/", "keywords": null, "license": "New BSD License", "maintainer": null, "maintainer_email": null, "name": "pymongo-bongo", "package_url": "https://pypi.org/project/pymongo-bongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pymongo-bongo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/svetlyak40wt/pymongo-bongo/" }, "release_url": "https://pypi.org/project/pymongo-bongo/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Sytax sugar for PyMongo and MongoDB ", "version": "0.1.3" }, "last_serial": 749156, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59f662e3cf3d32f3ef8be35a95a3b2d3", "sha256": "68da7d42b6deebda15db4d761b92bb54bf337360f253997703fe64a977c49a7c" }, "downloads": -1, "filename": "pymongo-bongo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "59f662e3cf3d32f3ef8be35a95a3b2d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9485, "upload_time": "2009-09-02T06:59:38", "url": "https://files.pythonhosted.org/packages/d5/c6/62bf4811e97c74c33a1a0c2310a01edad03c133979ca22d7d6c97bb0458f/pymongo-bongo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b54f335e0964296887cb62309f01097e", "sha256": "23b286fd2e4789b1ad9d2b6623de08be142a6ca7b71f2e56dfe268a7ea66b745" }, "downloads": -1, "filename": "pymongo-bongo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b54f335e0964296887cb62309f01097e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11776, "upload_time": "2009-09-13T16:22:52", "url": "https://files.pythonhosted.org/packages/51/fa/9f80ad72a1f5117ca469faf6535a6b0d970fd490559828aaf2c5544b609d/pymongo-bongo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "65fa1d956af1e709abe478fa1c287d65", "sha256": "5d749f2151e3ce6eb73d6d1e33ae16a654c127f3ccbe91407e81a0fdc23bf727" }, "downloads": -1, "filename": "pymongo-bongo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "65fa1d956af1e709abe478fa1c287d65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11904, "upload_time": "2009-10-19T22:39:45", "url": "https://files.pythonhosted.org/packages/3b/00/6701eecdd8e7c2b8c05ef29c1efddf8901aa60543900b05fac285e713951/pymongo-bongo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "570890da7be686a0e83951cb9a0c36c8", "sha256": "e52687fa4140393b7f99d1c0ce81561c5ef98260140c227e320d4406d6c71fe3" }, "downloads": -1, "filename": "pymongo-bongo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "570890da7be686a0e83951cb9a0c36c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12123, "upload_time": "2009-11-24T13:48:20", "url": "https://files.pythonhosted.org/packages/33/fe/479b2085406a3d529318871eee1a34141c1cbcd16ca0a387c748caf4d9fa/pymongo-bongo-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "570890da7be686a0e83951cb9a0c36c8", "sha256": "e52687fa4140393b7f99d1c0ce81561c5ef98260140c227e320d4406d6c71fe3" }, "downloads": -1, "filename": "pymongo-bongo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "570890da7be686a0e83951cb9a0c36c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12123, "upload_time": "2009-11-24T13:48:20", "url": "https://files.pythonhosted.org/packages/33/fe/479b2085406a3d529318871eee1a34141c1cbcd16ca0a387c748caf4d9fa/pymongo-bongo-0.1.3.tar.gz" } ] }