Crontabula 🧛
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crontabula-0.1.8.tar.gz | 4.0 kB | Without provenance | Details for crontabula-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crontabula-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for crontabula-0.1.8-py3-none-any.whl |
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
|
Security for crontabula 0.1.8
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.