Skip to main content

Crontabula 🧛

PyPI version

Crontabula is a small library for parsing Crontab expressions into Python objects. The usage is simple:

import crontabula

crontab = crontabula.parse("*/10 3,6 * * 1-4")
print(crontab.next)
# datetime.datetime(...)

Installation

Install with:

pip install crontabula

CLI

Crontabula comes with a small utility to print debug information about a crontab expression. Make sure you install the library with the cli extra (pip install "crontabula[cli]").

$ crontabula "*/15 * 1,15 * 1-5,6"
minute         0 15 30 45
hour           0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
day of month   1 15
month          1 2 3 4 5 6 7 8 9 10 11 12
day of week    1 2 3 4 5 6
next time      2022-04-19 17:30:00 (in 0:03:59.987874)

Contributing

Configure the environment and run the tests using Poetry:

$ poetry install
$ poetry run pre-commit install  # Optional, for linting with black
$ poetry run pytest

Metadata

Release files for crontabula 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crontabula 0.1.8
File Size Uploaded
crontabula-0.1.8.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crontabula 0.1.8
File Interpreter ABI Platform
crontabula-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / crontabula-0.1.8.tar.gz

Download URL crontabula-0.1.8.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8a96e5dcdc938903c9f12088cf4907a400de8468b80b2b574e5c16d0bbb1290f
BLAKE2b-256 checksum
How to use checksums
2f35c701d70414150d049ee8360f179b91e729b29acc6b41420946171292bacc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.9.22 Darwin/24.5.0

Release files / crontabula-0.1.8-py3-none-any.whl

Download URL crontabula-0.1.8-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb9173d8054581ce7abc6a4fcfe30f9de59357f892b532d96dc228dff149c6ad
BLAKE2b-256 checksum
How to use checksums
68a327552ce9daa50e96efdaf0850bcbc090f08b389668d1ba513b137e6e996d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.9.22 Darwin/24.5.0

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page