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.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for DocCron-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51df221f5ed61910ab7d6fba33b37e43c5e1d8b4d078bd957ef8b4f7efe1960b |
|
MD5 | 398174ec539caf49d46d17c95f4b434f |
|
BLAKE2b-256 | 155291377480434f41f639018d77a375ba31438c14306a38082cea3b04e407c5 |