Job scheduling package in python
Project description
pycronner
pycronner is a simple job scheduling tool in Python. pycronner officially supports Python 3.6+.
Installing pycronner
$ python3 -m pip install pycronner
Using pycronner
Run a job every 5 minutes
from pycronner import cronner
@cronner.every(5).minute
def job():
pass
cronner.start()
Run a job every 5 minutes on first day every month between 8:00 AM and 10:00 AM.
from pycronner import cronner
@cronner.at(day=1, hour=(8, 9))
@cronner.every(5).minute
def job():
pass
cronner.start()
Not use decorator but do the same thing as above.
from pycronner import cronner
def job():
pass
cronner.do(job2).every(5).minute().at(day=1, hour=(8, 9))
cronner.start()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycronner-0.0.1.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for pycronner-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f186514cdfd93c4a89cbff518c902d770c597983b2586f148e988071fde1fbb3 |
|
MD5 | a20d01a26b0a284c55248b0601fdada7 |
|
BLAKE2b-256 | 7d93aaf6614c4d1e139d6c42a4ed0f17c9c392eabf6cf1304b82b517bbc30293 |