{ "info": { "author": "Timofey Trukhanov", "author_email": "timofey.trukhanov@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Database" ], "description": "Want to use twisted's adbapi in tornado but does not know how? Try toradbapi.\n \n This is just wrapper for `twisted.enterprise.adbapi.ConnectionPool` to use with tornado. So documentation for `__init__` args you can find at twisted docs_\n \n .. _docs: https://twistedmatrix.com/documents/14.0.2/api/twisted.enterprise.adbapi.ConnectionPool.html#__init__\n \n Available methods in `toradbapi.ConnectionPool`:\n \n - run_query\n - run_operation\n - run_interaction\n \n They all have similar interface as twisted's corresponding methods. They return instance of `Future`, so can be yielded inside coroutine.\n \n Example usage::\n \n from tornado import gen\n from toradbapi import ConnectionPool\n \n pool = ConnectionPool('MySQLdb', db='test')\n \n @gen.coroutine\n def get_entities():\n entities = yield pool.run_query('SELECT * FROM `entity`')\n raise gen.Return(entities)\n \n \n Demo project is under demo.py file. Also there are more examples in tests.py.\n \n Only Python 2.7 supported for now.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/geerk/toradbapi", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "toradbapi", "package_url": "https://pypi.org/project/toradbapi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/toradbapi/", "project_urls": { "Homepage": "https://github.com/geerk/toradbapi" }, "release_url": "https://pypi.org/project/toradbapi/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "Wrapper for twisted.enterprise.adbapi.ConnectionPool to use with tornado", "version": "0.1.3" }, "last_serial": 1238727, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4d22b6e24522afc79f6b2795537c6801", "sha256": "415772dd6cc3cfec27888fe71ff6a22bb4f5060ef30b110ee941cfdbe7408413" }, "downloads": -1, "filename": "toradbapi-0.1.tar.gz", "has_sig": false, "md5_digest": "4d22b6e24522afc79f6b2795537c6801", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4372, "upload_time": "2014-09-25T18:22:40", "url": "https://files.pythonhosted.org/packages/86/58/d51cf430183248631453a693933293a4f2e2d36c1bf0a17520ebc46780b2/toradbapi-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "e6ee608145d8a8af2488f7d3ed3a1497", "sha256": "4b53103a6c1aa8a226d3f913b9f8e8d911e6710f5adf6421c635bfd98982b78c" }, "downloads": -1, "filename": "toradbapi-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e6ee608145d8a8af2488f7d3ed3a1497", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4475, "upload_time": "2014-09-25T18:25:29", "url": "https://files.pythonhosted.org/packages/d6/3a/8bbab211ab6f74847d19405afe7ee81cf8e1d38d3780f04e99cf4886f0db/toradbapi-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "3dd75ceec816fb8ea25b1ffb9a4eff46", "sha256": "0693e94db15e1cbec59938b0166abf4055afd5aa443aab1fe231b0800ec05c74" }, "downloads": -1, "filename": "toradbapi-0.1.2.tar.gz", "has_sig": false, "md5_digest": "3dd75ceec816fb8ea25b1ffb9a4eff46", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4489, "upload_time": "2014-09-25T18:38:54", "url": "https://files.pythonhosted.org/packages/68/8a/4405d696fad7751d46ec60c5fff68bea4d9dc15709a3fcaabd66d8c077c2/toradbapi-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "5ad8c68e27c3bab0272e54847ecfd6ef", "sha256": "70df5c284a871e9e4bb1bcbc48128f796033dc89e086b1da02d1d848fe5a40ca" }, "downloads": -1, "filename": "toradbapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5ad8c68e27c3bab0272e54847ecfd6ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4701, "upload_time": "2014-09-26T10:18:25", "url": "https://files.pythonhosted.org/packages/c9/0b/d1f45b2c20847483531e86dc5383104586dd268f4ab8e4601c408ed5f749/toradbapi-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ad8c68e27c3bab0272e54847ecfd6ef", "sha256": "70df5c284a871e9e4bb1bcbc48128f796033dc89e086b1da02d1d848fe5a40ca" }, "downloads": -1, "filename": "toradbapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "5ad8c68e27c3bab0272e54847ecfd6ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4701, "upload_time": "2014-09-26T10:18:25", "url": "https://files.pythonhosted.org/packages/c9/0b/d1f45b2c20847483531e86dc5383104586dd268f4ab8e4601c408ed5f749/toradbapi-0.1.3.tar.gz" } ] }