Schedule with Docstring
Project description
DocCron
Schedule with Docstring
License | Version | ||
Travis CI | Coverage | ||
AppVeyor | Supported versions | ||
Wheel | Implementation | ||
Status | Show your support |
Installation
pip install DocCron
Description
Cron scheduler inspired by doctest
Example
Run hello()
at every 2nd minute and 3rd minute:
import time
import doccron
def hello():
"""
*/2 * * * *
*/3 * * * *
"""
print(time.strftime('%Y-%m-%d %H:%M:%S'), "hello world")
if __name__ == '__main__':
doccron.run_jobs()
Todo
- Support Nonstandard predefined scheduling definitions
- Support Non-standard characters
- Support Quartz format
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.2.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for DocCron-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca5f749e281cdf67d5d633a7a40be79ff9004065b217a291a0a925faa8ee8f02 |
|
MD5 | 81bb2ac2248be05f8ffde9f28509e128 |
|
BLAKE2b-256 | ff0507c7300271b008a319d50279bd8ec5b7d4855ed216d34ffd690203b31525 |