A project to manage cron jobs.
Project description
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()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycronie-0.3.0.tar.gz
(9.7 kB
view details)
Built Distribution
pycronie-0.3.0-py3-none-any.whl
(10.2 kB
view details)
File details
Details for the file pycronie-0.3.0.tar.gz
.
File metadata
- Download URL: pycronie-0.3.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5c2f77d27ab7a3b9752d3837ef31ff7a03c50ab9fb3a62387ecb09df3a2baa44
|
|
MD5 |
0d5a752a7046d166f392ad4950e13ea7
|
|
BLAKE2b-256 |
7277c427734de86cc03e040f802eee2cdb5ce21f0f5e371756849a27f0253710
|
File details
Details for the file pycronie-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pycronie-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5ff75229efd1c462d8febe2eb962e1df607c49ab197fd168abd2a5425725c703
|
|
MD5 |
41014497b312521a39c04ae8e8b82962
|
|
BLAKE2b-256 |
0b3daa833d27c1f70705c17c954e9816ea00a98492ddc9f2cb5377b1305f34aa
|