{ "info": { "author": "hbc", "author_email": "bcxxxxxx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Donkey [WIP]\n\n[![Build Status](https://travis-ci.org/bcho/donkey.svg)](https://travis-ci.org/bcho/donkey)\n\nA simple cron-like library for executing scheduled jobs.\n\n\nDonkey is inspired by [Cron][cron-go].\n\n[cron-go]: https://github.com/robfig/cron\n\n\n```python\nfrom datetime import datetime\nfrom donkey import JobQueue, Worker\n\n\nq = JobQueue()\n\n\n@q.job(3)\ndef this_job_runs_every_3_seconds():\n print('Fuzz', datetime.now())\n\n\n@q.job(5)\ndef this_job_runs_every_5_seconds():\n print('Buzz', datetime.now())\n\n\nWorker().run(q)\n# Fuzz 2015-02-03 16:41:01.408136\n# Buzz 2015-02-03 16:41:03.404123\n# Fuzz 2015-02-03 16:41:04.406813\n# Fuzz 2015-02-03 16:41:07.408426\n# Buzz 2015-02-03 16:41:08.406851\n# Fuzz 2015-02-03 16:41:10.408415\n# Fuzz 2015-02-03 16:41:13.403260\n# Buzz 2015-02-03 16:41:13.403319\n```\n\n## TODO\n\n- [x] tests.\n- [ ] add jobs at run time.\n- [ ] job states & stats (see [rq][rq]).\n- [ ] other backend (namely `thread`, `stackless`) support.\n\n\n[rq]: http://python-rq.org/\n\n\n## License\n\n[MIT](LICENSE)", "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/bcho/donkey", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "donkey", "package_url": "https://pypi.org/project/donkey/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/donkey/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bcho/donkey" }, "release_url": "https://pypi.org/project/donkey/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "A simple cron-like library for executing scheduled jobs.", "version": "0.0.2" }, "last_serial": 1608959, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "fcc0c85238b96428c5abf5fac54ebc1a", "sha256": "583098ab4d9671e2aa1206e1fbc1434455d238ad259f4da3f8ca30d341a89fcc" }, "downloads": -1, "filename": "donkey-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fcc0c85238b96428c5abf5fac54ebc1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3288, "upload_time": "2015-06-27T07:43:26", "url": "https://files.pythonhosted.org/packages/06/cf/47e28e573eee714397f120db2694d72f1caa6e81231e425c96759068c9e5/donkey-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fcc0c85238b96428c5abf5fac54ebc1a", "sha256": "583098ab4d9671e2aa1206e1fbc1434455d238ad259f4da3f8ca30d341a89fcc" }, "downloads": -1, "filename": "donkey-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fcc0c85238b96428c5abf5fac54ebc1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3288, "upload_time": "2015-06-27T07:43:26", "url": "https://files.pythonhosted.org/packages/06/cf/47e28e573eee714397f120db2694d72f1caa6e81231e425c96759068c9e5/donkey-0.0.2.tar.gz" } ] }