{ "info": { "author": "Jehiah Czebotar", "author_email": "jehiah@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License" ], "description": "asyncmongo\n==========\n\nAsyncMongo is an asynchronous library for accessing mongo \nwhich is built on the tornado ioloop.\n\n[![Build Status](https://travis-ci.org/bitly/asyncmongo.png?branch=master)](https://travis-ci.org/bitly/asyncmongo)\n\nInstallation\n------------\n\nInstalling: `pip install asyncmongo`\n\nUsage\n-----\n\nasyncmongo syntax strives to be similar to [pymongo](http://api.mongodb.org/python/current/api/pymongo/collection.html).\n\n import asyncmongo\n import tornado.web\n \n class Handler(tornado.web.RequestHandler):\n @property\n def db(self):\n if not hasattr(self, '_db'):\n self._db = asyncmongo.Client(pool_id='mydb', host='127.0.0.1', port=27017, maxcached=10, maxconnections=50, dbname='test')\n return self._db\n \n @tornado.web.asynchronous\n def get(self):\n self.db.users.find({'username': self.current_user}, limit=1, callback=self._on_response)\n # or\n # conn = self.db.connection(collectionname=\"...\", dbname=\"...\")\n # conn.find(..., callback=self._on_response)\n \n def _on_response(self, response, error):\n if error:\n raise tornado.web.HTTPError(500)\n self.render('template', full_name=response['full_name'])\n\nAbout\n-----\n\nSome features are not currently implemented: \n\n* directly interfacing with indexes, dropping collections\n* retrieving results in batches instead of all at once \n(asyncmongo's nature means that no calls are blocking regardless of the number of results you are retrieving)\n* tailable cursors #15\n\n\nRequirements\n------------\nThe following two python libraries are required\n\n* [pymongo](http://github.com/mongodb/mongo-python-driver) version 1.9+ for bson library\n* [tornado](http://github.com/facebook/tornado)\n\nIssues\n------\n\nPlease report any issues via [github issues](https://github.com/bitly/asyncmongo/issues)", "description_content_type": null, "docs_url": null, "download_url": "https://bitly-downloads.s3.amazonaws.com/asyncmongo/asyncmongo-1.4-alpha.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/bitly/asyncmongo", "keywords": "mongo,mongodb,pymongo,asyncmongo,tornado", "license": "Apache Software License", "maintainer": null, "maintainer_email": null, "name": "asyncmongo_bufferx", "package_url": "https://pypi.org/project/asyncmongo_bufferx/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/asyncmongo_bufferx/", "project_urls": { "Download": "https://bitly-downloads.s3.amazonaws.com/asyncmongo/asyncmongo-1.4-alpha.tar.gz", "Homepage": "http://github.com/bitly/asyncmongo" }, "release_url": "https://pypi.org/project/asyncmongo_bufferx/1.4-alpha/", "requires_dist": null, "requires_python": null, "summary": "Asynchronous library for accessing mongodb built upon the tornado IOLoop.", "version": "1.4-alpha" }, "last_serial": 1373737, "releases": { "1.4-alpha": [ { "comment_text": "", "digests": { "md5": "568df7fe964593df4d176315d13bc0e9", "sha256": "e9af8c4efe74c98886250a1213586e5a4a9337b8c7a40719537e7503d97c26f8" }, "downloads": -1, "filename": "asyncmongo_bufferx-1.4-alpha.tar.gz", "has_sig": false, "md5_digest": "568df7fe964593df4d176315d13bc0e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27372, "upload_time": "2015-01-07T08:05:16", "url": "https://files.pythonhosted.org/packages/47/4b/5fdeaad3b27210779d543b13593f810d91c68f4f56f0deb22da8c5a510c2/asyncmongo_bufferx-1.4-alpha.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "568df7fe964593df4d176315d13bc0e9", "sha256": "e9af8c4efe74c98886250a1213586e5a4a9337b8c7a40719537e7503d97c26f8" }, "downloads": -1, "filename": "asyncmongo_bufferx-1.4-alpha.tar.gz", "has_sig": false, "md5_digest": "568df7fe964593df4d176315d13bc0e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27372, "upload_time": "2015-01-07T08:05:16", "url": "https://files.pythonhosted.org/packages/47/4b/5fdeaad3b27210779d543b13593f810d91c68f4f56f0deb22da8c5a510c2/asyncmongo_bufferx-1.4-alpha.tar.gz" } ] }