Name | pycronie JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | A project to manage cron jobs. |
upload_time | 2025-01-28 13:47:09 |
maintainer | None |
docs_url | None |
author | Robin Lösch |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
cron
scheduler
parser
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pycronie
This is a small python project to schedule python function as cron like jobs, using a decorator syntax.
Currently only async function are executed as part of an asyncio event loop.
## Installing
To install this project use
> pip install pycronie
## Example
To schedule a async function one must import the cron decorator and use it on any async function:
```
from pycronie import Cron
cron = Cron()
@cron.cron("* * * * *")
async def cron_function():
pass
```
To run the eventloop use cron.run_cron():
```
crom pycronie import Cron
cron = Cron()
cron.run_cron()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pycronie",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "cron, scheduler, parser",
"author": "Robin L\u00f6sch",
"author_email": "robin@chilio.net",
"download_url": "https://files.pythonhosted.org/packages/4b/af/eaeca159a2e48d396db544c17d10c4f11543a6044789cca92e0d9ddfbf73/pycronie-0.2.1.tar.gz",
"platform": null,
"description": "# pycronie\n\nThis is a small python project to schedule python function as cron like jobs, using a decorator syntax.\n\nCurrently only async function are executed as part of an asyncio event loop.\n\n## Installing\n\nTo install this project use\n\n> pip install pycronie\n\n## Example\n\nTo schedule a async function one must import the cron decorator and use it on any async function:\n\n```\nfrom pycronie import Cron\n\ncron = Cron()\n\n@cron.cron(\"* * * * *\")\nasync def cron_function():\n pass\n```\n\nTo run the eventloop use cron.run_cron():\n\n```\ncrom pycronie import Cron\n\ncron = Cron()\ncron.run_cron()\n```\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A project to manage cron jobs.",
"version": "0.2.1",
"project_urls": {
"Repository": "https://github.com/crest42/pycronie"
},
"split_keywords": [
"cron",
" scheduler",
" parser"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "0ed09d11b4c02961c3d40304d7310103001199d59722309d84e7e32f326fff7a",
"md5": "7d2059f395741c53dfaeb3214cfbd3e4",
"sha256": "76d235325fdec1242cf689c9fbc66b09f087585d61d366ca30f58c97b51cdf22"
},
"downloads": -1,
"filename": "pycronie-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7d2059f395741c53dfaeb3214cfbd3e4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 9008,
"upload_time": "2025-01-28T13:47:05",
"upload_time_iso_8601": "2025-01-28T13:47:05.632469Z",
"url": "https://files.pythonhosted.org/packages/0e/d0/9d11b4c02961c3d40304d7310103001199d59722309d84e7e32f326fff7a/pycronie-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "4bafeaeca159a2e48d396db544c17d10c4f11543a6044789cca92e0d9ddfbf73",
"md5": "26802ccf2d0cc62702ae474cc0cdee4e",
"sha256": "4cf1d14729b30c3c5af0f8f87accb35edadfbd765c4db1ce372652851b4207b3"
},
"downloads": -1,
"filename": "pycronie-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "26802ccf2d0cc62702ae474cc0cdee4e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 8444,
"upload_time": "2025-01-28T13:47:09",
"upload_time_iso_8601": "2025-01-28T13:47:09.361017Z",
"url": "https://files.pythonhosted.org/packages/4b/af/eaeca159a2e48d396db544c17d10c4f11543a6044789cca92e0d9ddfbf73/pycronie-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-28 13:47:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "crest42",
"github_project": "pycronie",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pycronie"
}