Converts crontab expressions to human-readable descriptions.
Project description
Converts crontab expressions to human-readable descriptions.
Installation
Use pip:
pip install pretty-cron
Tested on Python 2.7, 3.4, 3.5, and PyPy (Python 2).
API
prettify_cron(cron_expression)
Converts the given string cron expression into a pretty, human-readable, English description of what it means. If the string is not a valid cron expression, or it includes features not currently supported, it is returned as-is.
For example:
>>> import pretty_cron
>>> pretty_cron.prettify_cron("0 * * * *")
"At 0 minutes past every hour of every day"
>>> pretty_cron.prettify_cron("0 0 1 1 *")
"At 00:00 on the 1st of January"
>>> pretty_cron.prettify_cron("12 15 * 1 *")
"At 15:12 every day in January"
>>> pretty_cron.prettify_cron("lalala") # Not a cron expression
"lalala"
History
Pending Release
New release notes here
1.0.0 (2015-07-28)
First release on PyPI, featuring prettify_cron function.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pretty-cron-1.0.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for pretty_cron-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f446ec70ade6d490cdc2fa08b177b60f6c2adf24f610d3af1fb96364e58c27d |
|
MD5 | 3b92ae667e9ff192b5ec7e39e0090c13 |
|
BLAKE2b-256 | 52b249e8351e32831d4249f477272abb4b440678122893e5c367fa14cffb70d8 |