Job scheduling based on filenames.
Project description
Simple clock/cron process that monitors a specific directory and run jobs based on its filename.
Currently filename with this pattern is supported:
(every X at time) where
X is [‘day’, ‘monday’, ‘tuesday’, ‘wednesday’,’thursday’, ‘friday’,’saturday’,’sunday’]
time is either in short form without minutes like 5PM or long form with minutes, 5:00PM
For example:
notebooks/generate_model (every day at 5pm).ipynb will trigger jupyter nbconvert to run every day at 5pm.
scripts/gen (every monday at 12pm).py will trigger python scripts/gen….py to run.
Features
Simple to use
Integrates well with Jupyter
Tested on Python 3.6
Usage
usage: jupyter-cron [-h] [-d] glob
Scans for file to run on a schedule based on its name
positional arguments:
glob specify glob to search eg. test/**/*.ipynb
optional arguments:
-h, --help show this help message and exit
-d, --daemonize daemonize the process
Meta
Quoc Le - @realQuoc - quocble@gmail.com
Distributed under the MIT license. See LICENSE.txt for more information.
https://github.com/quocble/jupyter-cron http://rst.ninjs.org/
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
Built Distribution
Hashes for jupyter_cron-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c502fd87adc68711d057880595f1c05592291e71f97ba6d3de1ccc65e271aa22 |
|
MD5 | 93f4a5b946b1d87f4c4e03822bd33208 |
|
BLAKE2b-256 | b12b141aaea390bffd5aa04710efc9856a902abdd8010eaf32e2b8d921f25a01 |