Skip to main content

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


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)

Uploaded Source

Built Distribution

pycronner-0.0.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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