Skip to main content

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

jupyter-cron-0.1.6.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

jupyter_cron-0.1.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file jupyter-cron-0.1.6.tar.gz.

File metadata

File hashes

Hashes for jupyter-cron-0.1.6.tar.gz
Algorithm Hash digest
SHA256 86ccaa527d8b83e84288507bbdb686b66ecd7df04caaa4936ed8639713929c80
MD5 e69e35209aa554835d7d63f4c24943e0
BLAKE2b-256 ee6e5b722323fc269b875cb4a3f7330a05d8ba113b9f334b0859c127d8f5ba4b

See more details on using hashes here.

File details

Details for the file jupyter_cron-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_cron-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 314cae8a1a5d7c448ef2a70f2a824ddcc42f2d7cbf4f4653843806534e7eb421
MD5 cdcb85528abe4b625f35b8108a3f746c
BLAKE2b-256 4e3f3ecdd106f8e7d2418538df45567afb3bbde7d2652342a92b5ec82fb215b3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page