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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycronner-0.0.1.tar.gz.
File metadata
- Download URL: pycronner-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac0d17693ba04d86c9b5187f0f6c037f2ad9e986ee1d3a945ef32bf5383029bc
|
|
| MD5 |
81626b97dfa8fc51d2185c1ef3134422
|
|
| BLAKE2b-256 |
9f4cd28998b270e2edda67272e634116c0784579efb4b01594452a72e987a5e3
|
File details
Details for the file pycronner-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pycronner-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f186514cdfd93c4a89cbff518c902d770c597983b2586f148e988071fde1fbb3
|
|
| MD5 |
a20d01a26b0a284c55248b0601fdada7
|
|
| BLAKE2b-256 |
7d93aaf6614c4d1e139d6c42a4ed0f17c9c392eabf6cf1304b82b517bbc30293
|