Skip to content

Repository files navigation

Easily schedule python functions to be run under cron

Build Status

Make an HTTPS GET request to google.com every minute

Create the following file and name it test.py.

importcronnerimportrandomtry:
fromurllib.requestimporturlopenexcept:
fromurllibimporturlopen@cronner.register('* * * * *')defwrite_randint():
urlopen('https://google.com')
cronner.main()

Run this.

$ python test.py gen-cfg | crontab -

That's it.

Installation

$ pip install cronner

About

No description, website, or topics provided.

Resources

Stars

21 stars

Watchers

122 watching

Forks

Releases

Packages

Used by

Contributors

Languages