{ "info": { "author": "Ilya Smirnov , Dmitry Orlov ", "author_email": "ilya94@mail.ru, me@mosquito.su", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3 :: Only" ], "description": "toasyncio\n=========\n\n.. image:: https://travis-ci.org/mosquito/toasyncio.svg\n :target: https://travis-ci.org/mosquito/toasyncio\n\n.. image:: https://img.shields.io/pypi/v/toasyncio.svg\n :target: https://pypi.python.org/pypi/toasyncio/\n :alt: Latest Version\n\n.. image:: https://img.shields.io/pypi/wheel/toasyncio.svg\n :target: https://pypi.python.org/pypi/toasyncio/\n\n.. image:: https://img.shields.io/pypi/pyversions/toasyncio.svg\n :target: https://pypi.python.org/pypi/toasyncio/\n\n.. image:: https://img.shields.io/pypi/l/toasyncio.svg\n :target: https://pypi.python.org/pypi/toasyncio/\n\nWrite on tornado with asyncio easy.\n\nAbout\n=====\n\nTransparent convert any asyncio futures and inline yield methods to tornado futures.\n\nExamples\n========\n\nUsing\n\n::\n\n import tornado.gen\n import asyncio\n from tornado.ioloop import IOLoop\n from toasyncio.gen import coroutine\n\n @coroutine\n def test():\n print('Tornado future')\n yield tornago.gen.sleep(1)\n print('Asyncio future')\n yield from asyncio.sleep(1, loop=IOLoop.current().asyncio_loop)\n print('Done')\n\n IOLoop.current().run_sync(test)\n\n\nTesting\n\n::\n\n import asyncio\n from tornado.gen import sleep\n from toasyncio.testing import gen_test, AsyncTestCase\n\n\n class TestBasic(AsyncTestCase):\n @gen_test\n def test_all_together(self):\n step = 0.1\n count = 10\n t0 = self.io_loop.time()\n\n for i in range(count):\n yield sleep(step / 2)\n yield from asyncio.sleep(step / 2, loop=self.aio_loop)\n\n self.assertTrue((t0 + (count * step)) <= self.io_loop.time())", "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/mosquito/toasyncio", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "toasyncio", "package_url": "https://pypi.org/project/toasyncio/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/toasyncio/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/mosquito/toasyncio" }, "release_url": "https://pypi.org/project/toasyncio/0.5.3/", "requires_dist": null, "requires_python": null, "summary": "Transparent convert any asyncio futures and inline yield methods to tornado futures.", "version": "0.5.3" }, "last_serial": 1921999, "releases": { "0.5.0": [ { "comment_text": "", "digests": { "md5": "15d91aff2a4289c4ff1e64793d94e652", "sha256": "5fd18878a0b533f62465f535689bbdc9a057e7c2e347c101692d2b5ebc3e8d00" }, "downloads": -1, "filename": "toasyncio-0.5.0.tar.gz", "has_sig": false, "md5_digest": "15d91aff2a4289c4ff1e64793d94e652", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2913, "upload_time": "2015-11-13T23:28:26", "url": "https://files.pythonhosted.org/packages/4f/54/dbf520856491a2aa2bab0cd8801d30fad0ba1377910db837cf9ff590dea8/toasyncio-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "36777b301aee8fa9a43ce3122fa8bb32", "sha256": "4e415ebddf91c5ce027cafc3fbacc74e57c3589bd796c473af012c26b333059f" }, "downloads": -1, "filename": "toasyncio-0.5.1.tar.gz", "has_sig": false, "md5_digest": "36777b301aee8fa9a43ce3122fa8bb32", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2961, "upload_time": "2015-11-16T15:28:20", "url": "https://files.pythonhosted.org/packages/56/88/4110e221dfbb0fe909a843e1216850bafb80d835c77f8453829ff43a4f30/toasyncio-0.5.1.tar.gz" } ], "0.5.3": [ { "comment_text": "", "digests": { "md5": "7aee7838080edfcdede52bb684a64119", "sha256": "cd45af0ed606eba0152a06d931b90a2ffb1be44663cb36d3f0d0fb4ab3906287" }, "downloads": -1, "filename": "toasyncio-0.5.3.tar.gz", "has_sig": false, "md5_digest": "7aee7838080edfcdede52bb684a64119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2998, "upload_time": "2016-01-25T15:42:54", "url": "https://files.pythonhosted.org/packages/88/94/8f94b2e5b14230f0618c77f57d77f6e83ba6982ade9692ff72a2ae09dfe3/toasyncio-0.5.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7aee7838080edfcdede52bb684a64119", "sha256": "cd45af0ed606eba0152a06d931b90a2ffb1be44663cb36d3f0d0fb4ab3906287" }, "downloads": -1, "filename": "toasyncio-0.5.3.tar.gz", "has_sig": false, "md5_digest": "7aee7838080edfcdede52bb684a64119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2998, "upload_time": "2016-01-25T15:42:54", "url": "https://files.pythonhosted.org/packages/88/94/8f94b2e5b14230f0618c77f57d77f6e83ba6982ade9692ff72a2ae09dfe3/toasyncio-0.5.3.tar.gz" } ] }