This project has been archived by its maintainers, and is no longer receiving any updates.
pretty-cron
Retired in favour of cron_descriptor
This project is no longer maintained.
Converts crontab expressions to human-readable descriptions.
Installation
Use pip:
pip install pretty-cron
Tested on Python 2.7 and 3.6.
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
1.2.0 (2018-08-22)
Retired in favour of cron_descriptor. This project is no longer maintained.
1.1.0 (2018-08-19)
Now always returns unicode on Python 2 for consistency.
1.0.2 (2016-05-03)
Now supports expressions with multiple weekdays and ordinal days - thanks @jbondia.
1.0.1 (2016-02-09)
Now interprets day 7 as Sunday as well as 0, like Linux crontab parsers - thanks @vetyy.
Now supports expressions with multiple months separated by commas - thanks @MerreM.
1.0.0 (2015-07-28)
First release on PyPI, featuring prettify_cron function.
Metadata
Release files for pretty-cron 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pretty-cron-1.2.0.tar.gz | 5.6 kB | Without provenance | Details for pretty-cron-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pretty_cron-1.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pretty_cron-1.2.0-py2.py3-none-any.whl |
Total release size: 10.4 kB
Release files / pretty-cron-1.2.0.tar.gz
| Download URL | pretty-cron-1.2.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15e04eee529f8380eb68e733384401218889351af1ad9ddacd1879afa5c86c98
|
|
BLAKE2b-256 checksum How to use checksums |
ae364d2016b5bf2b9ee9e0cea7fcf85cda18a3947cd72f591b36cb780bee5a75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Release files / pretty_cron-1.2.0-py2.py3-none-any.whl
| Download URL | pretty_cron-1.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
aa8fe8839afa6c57846c8536eec1e162a1dd0f792f8eed2b6e3321aa40a394b9
|
|
BLAKE2b-256 checksum How to use checksums |
1852d981fdd2ff0dbe660cfad6a571c596adf65eb7b25d789bd5547ce5dfdf44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for pretty-cron 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.