{ "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.3.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", "package_url": "https://pypi.org/project/asyncmongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/asyncmongo/", "project_urls": { "Download": "https://bitly-downloads.s3.amazonaws.com/asyncmongo/asyncmongo-1.3.tar.gz", "Homepage": "http://github.com/bitly/asyncmongo" }, "release_url": "https://pypi.org/project/asyncmongo/1.3/", "requires_dist": null, "requires_python": null, "summary": "Asynchronous library for accessing mongodb built upon the tornado IOLoop.", "version": "1.3" }, "last_serial": 1097889, "releases": { "0.1": [], "0.1.1": [], "0.1.2": [], "0.1.3": [], "1.0": [], "1.0.3": [], "1.1": [], "1.1.1": [], "1.2": [], "1.2.1": [], "1.2.2": [], "1.3": [ { "comment_text": "", "digests": { "md5": "88af0421a74c46ff4dcddcfa4957da06", "sha256": "8d69a76bbf0491215eb241b48dad52f3e873859ddd9bcb275ac5ed4d90bbd1c0" }, "downloads": -1, "filename": "asyncmongo-1.3.tar.gz", "has_sig": false, "md5_digest": "88af0421a74c46ff4dcddcfa4957da06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27589, "upload_time": "2014-05-20T02:24:18", "url": "https://files.pythonhosted.org/packages/e5/7d/924572ce809dbfc9ac378f1e42ccf4261533b4b2e59bf664913c490dbc7e/asyncmongo-1.3.tar.gz" } ], "1.3-alpha": [], "1.3-alpha1": [], "1.3-alpha2": [], "1.3-alpha3": [] }, "urls": [ { "comment_text": "", "digests": { "md5": "88af0421a74c46ff4dcddcfa4957da06", "sha256": "8d69a76bbf0491215eb241b48dad52f3e873859ddd9bcb275ac5ed4d90bbd1c0" }, "downloads": -1, "filename": "asyncmongo-1.3.tar.gz", "has_sig": false, "md5_digest": "88af0421a74c46ff4dcddcfa4957da06", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 27589, "upload_time": "2014-05-20T02:24:18", "url": "https://files.pythonhosted.org/packages/e5/7d/924572ce809dbfc9ac378f1e42ccf4261533b4b2e59bf664913c490dbc7e/asyncmongo-1.3.tar.gz" } ] }