{ "info": { "author": "Vd", "author_email": "vd@vd2.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: AsyncIO", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# periodic\n\nSimple tool for run asyncio tasks periodically.\n\n# Setup\n\n```bash\npip install asyncio-periodic\n```\n\n\n# Example usage\n\n```python\nimport asyncio\nfrom datetime import datetime\n\nfrom periodic import Periodic\n\n\nasync def periodically(param):\n print(datetime.now(), 'Yay!', param)\n await asyncio.sleep(1)\n print(datetime.now(), 'Done!')\n\nasync def main():\n p = Periodic(3, periodically, 'Periodically!')\n await p.start()\n\nif __name__ == \"__main__\":\n loop = asyncio.get_event_loop()\n loop.create_task(main())\n loop.run_forever()\n```\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vd2org/periodic", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "asyncio-periodic", "package_url": "https://pypi.org/project/asyncio-periodic/", "platform": "", "project_url": "https://pypi.org/project/asyncio-periodic/", "project_urls": { "Homepage": "https://github.com/vd2org/periodic" }, "release_url": "https://pypi.org/project/asyncio-periodic/2019.2/", "requires_dist": null, "requires_python": "", "summary": "Simple tool for run asyncio tasks periodically.", "version": "2019.2" }, "last_serial": 4876440, "releases": { "2019.2": [ { "comment_text": "", "digests": { "md5": "883bc3365c6c3fb52664704df513305a", "sha256": "9f45cd105cd28cd3c315c53d2f18f73286f51ce317075a789158336b4fc1ee34" }, "downloads": -1, "filename": "asyncio_periodic-2019.2-py3-none-any.whl", "has_sig": false, "md5_digest": "883bc3365c6c3fb52664704df513305a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4219, "upload_time": "2019-02-27T22:48:58", "url": "https://files.pythonhosted.org/packages/bf/69/ac044fc8a82e72c32830dfef85ef7975de08771bfd676fd57e526ae03e71/asyncio_periodic-2019.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "028eb21d5f7250012bf48022f6466c30", "sha256": "1dfeaa51e27a1c0c46775100edd3e57aed7a8e2df0e6ab3a879ceefaf59da5f2" }, "downloads": -1, "filename": "asyncio-periodic-2019.2.tar.gz", "has_sig": false, "md5_digest": "028eb21d5f7250012bf48022f6466c30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2875, "upload_time": "2019-02-27T22:49:00", "url": "https://files.pythonhosted.org/packages/e4/7b/f3ecfed1ed9ef52395ffa908e9dd7c48130510f6e266fe591c9da4c9e167/asyncio-periodic-2019.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "883bc3365c6c3fb52664704df513305a", "sha256": "9f45cd105cd28cd3c315c53d2f18f73286f51ce317075a789158336b4fc1ee34" }, "downloads": -1, "filename": "asyncio_periodic-2019.2-py3-none-any.whl", "has_sig": false, "md5_digest": "883bc3365c6c3fb52664704df513305a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4219, "upload_time": "2019-02-27T22:48:58", "url": "https://files.pythonhosted.org/packages/bf/69/ac044fc8a82e72c32830dfef85ef7975de08771bfd676fd57e526ae03e71/asyncio_periodic-2019.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "028eb21d5f7250012bf48022f6466c30", "sha256": "1dfeaa51e27a1c0c46775100edd3e57aed7a8e2df0e6ab3a879ceefaf59da5f2" }, "downloads": -1, "filename": "asyncio-periodic-2019.2.tar.gz", "has_sig": false, "md5_digest": "028eb21d5f7250012bf48022f6466c30", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2875, "upload_time": "2019-02-27T22:49:00", "url": "https://files.pythonhosted.org/packages/e4/7b/f3ecfed1ed9ef52395ffa908e9dd7c48130510f6e266fe591c9da4c9e167/asyncio-periodic-2019.2.tar.gz" } ] }