{ "info": { "author": "Maxim Pyatishev", "author_email": "mpyatishev@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: AsyncIO", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries" ], "description": "==========\naiorecycle\n==========\n\n.. image:: https://travis-ci.com/mpyatishev/aiorecycle.svg?branch=master\n :target: https://travis-ci.com/mpyatishev/aiorecycle\n.. image:: https://codecov.io/gh/mpyatishev/aiorecycle/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/mpyatishev/aiorecycle\n.. image:: https://img.shields.io/pypi/v/aiorecycle.svg\n :target: https://pypi.python.org/pypi/aiorecycle\n\n\nA decorator to recycle tasks in the event loop\n\n\nInstallation\n============\n\n.. code:: bash\n\n pip install aiorecycle\n\n\nUsage example\n=============\n\n.. code:: python\n\n import asyncio\n\n import aiorecycle\n\n\n @aiorecycle.Cycle()\n async def task():\n if asyncio.get_event_loop().time() % 2:\n print('make some periodic work')\n\n\n async def main():\n await task()\n await asyncio.sleep(3) # emulate very important work\n\n\n if __name__ == \"__main__\":\n asyncio.run(main())\n\n\nLicense\n=======\n\n``aiorecycle`` library is offered under Apache 2 license.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mpyatishev/aiorecycle", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "aiorecycle", "package_url": "https://pypi.org/project/aiorecycle/", "platform": "", "project_url": "https://pypi.org/project/aiorecycle/", "project_urls": { "Homepage": "https://github.com/mpyatishev/aiorecycle" }, "release_url": "https://pypi.org/project/aiorecycle/0.0.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "A decorator to recycle tasks in the event loop", "version": "0.0.1" }, "last_serial": 5949276, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d3cff95eebab1395a4c846553b044d3b", "sha256": "4cdc2faf7134321242fac5e84b31e4e610c7b9f2eda6a0471fa2bf2931ce58d7" }, "downloads": -1, "filename": "aiorecycle-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d3cff95eebab1395a4c846553b044d3b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6183, "upload_time": "2019-10-09T11:40:30", "url": "https://files.pythonhosted.org/packages/11/77/4c3459f62928b73508bcd38f2cc5c1a4fedddd728966f0c8320184d718a7/aiorecycle-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3988dd341b6dcd9a2b386c2f4869175c", "sha256": "425c0ca0d6f4232d7226313db456b5f5cfbffc872eb74f49e7669533f6e1e58a" }, "downloads": -1, "filename": "aiorecycle-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3988dd341b6dcd9a2b386c2f4869175c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 1851, "upload_time": "2019-10-09T11:40:33", "url": "https://files.pythonhosted.org/packages/46/a7/068c7ba3e0cc65aeb6dded632b8ffacf5a49a2f669ba5442e2c6c07e5b59/aiorecycle-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d3cff95eebab1395a4c846553b044d3b", "sha256": "4cdc2faf7134321242fac5e84b31e4e610c7b9f2eda6a0471fa2bf2931ce58d7" }, "downloads": -1, "filename": "aiorecycle-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d3cff95eebab1395a4c846553b044d3b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6183, "upload_time": "2019-10-09T11:40:30", "url": "https://files.pythonhosted.org/packages/11/77/4c3459f62928b73508bcd38f2cc5c1a4fedddd728966f0c8320184d718a7/aiorecycle-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3988dd341b6dcd9a2b386c2f4869175c", "sha256": "425c0ca0d6f4232d7226313db456b5f5cfbffc872eb74f49e7669533f6e1e58a" }, "downloads": -1, "filename": "aiorecycle-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3988dd341b6dcd9a2b386c2f4869175c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 1851, "upload_time": "2019-10-09T11:40:33", "url": "https://files.pythonhosted.org/packages/46/a7/068c7ba3e0cc65aeb6dded632b8ffacf5a49a2f669ba5442e2c6c07e5b59/aiorecycle-0.0.1.tar.gz" } ] }