This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.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.
Release History

Release History

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pretty_cron-1.0.2-py2.py3-none-any.whl (5.5 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 3, 2016
pretty-cron-1.0.2.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source May 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting