Schedule with Docstrings
Project description
DocCron
Schedule with Docstrings
License | Version | ||
Travis CI | Coverage | ||
AppVeyor | Supported versions | ||
Wheel | Implementation | ||
Status | Show your support |
Installation
pip install DocCron
Description
Cron-based scheduler inspired by doctest
Example
Run hello()
at every 2nd minute and 3rd minute:
import time
def hello():
"""
*/2 * * * *
*/3 * * * *
"""
print(time.strftime('%Y-%m-%d %H:%M:%S'), "hello world")
if __name__ == '__main__':
import doccron
doccron.run_jobs()
Features
- Standard and extended cron formats (see CRON Expression)
- Nonstandard predefined scheduling definitions
- Non-standard characters
- Quartz format
- Human readable date/time strings
References
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
DocCron-0.4.0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for DocCron-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49df0d950f828e987482dfffff4b9c93431c49f3d097117f3457411d9dbc1185 |
|
MD5 | c184bf65d9212d75550cc956248bbd14 |
|
BLAKE2b-256 | feae773bcf141a5be090b94f7995595c983ff44b2694322a2fda152de9f2d5d5 |