Cron with hooks (webhook and others)
Project description
hoocron
Cron with different triggers to kick immediate execution of jobs
Installation
pip3 install hoocron
Usage examples
We will run program /bin/touch with different arguments.
Simplest case:
hoocron.py -j J /bin/touch /tmp/touch -p J 20s
This command configures job (what to run, command and arguments) and hook (when to run). This very similar to cron.
Now, lets make it more interesting, we will also run job if get HTTP request
See also
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file hoocron-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: hoocron-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97faddb36a8989afce69f255b6f7e083989202ab4581366bbe207253841197bb |
|
MD5 | 54d5ae023bc1ae0ff1e73f5bce0ce109 |
|
BLAKE2b-256 | 78bbddb2c1057942e892ec83c04f3ba4233e0705bd64657ffe2537c880cc7625 |