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.
import time
import doccron
def hello():
"""
*/2 * * * *
"""
print(time.strftime('%Y-%m-%d %H:%M:%S'), "hello world")
if __name__ == '__main__':
doccron.run_jobs()
TODO
- Support Non-standard characters
- Support Nonstandard predefined scheduling definitions
- 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.1.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for DocCron-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f6ed58c5caec8e8095884c4414240e3162b42c70ec3bdf587499ecb9dab244 |
|
MD5 | 3766ac0a3bdce7c75362c98f5a2ccb3e |
|
BLAKE2b-256 | 0a8dc25c99bf4596867bd0cee6faab42ba8306a861646f5d2412f85cb3df4375 |