A small CLI to validate and explain cron expressions
Project description
adi-crontab-tool
A small CLI to validate and explain cron expressions.
Installation
From PyPI (Recommended)
pip install adi-crontab-tool
From Source
Navigate to the tool's directory and install it:
cd crontab
pip install .
For Development
To install in editable mode with development dependencies (like pytest):
pip install -e .[dev]
Usage
Once installed, you can use the crontab-tool command.
Validate and Explain a Cron Expression
Use the explain subcommand to get a description of the schedule:
crontab-tool explain "*/5 * * * *"
Just Validate
Use the validate subcommand to check if an expression is valid (returns exit code 0 if valid, 2 if invalid):
crontab-tool validate "0 9 * * *"
Output Example:
Every 5 minutes.
Help
To see available options:
crontab-tool --help
Testing
To run the tests, make sure you installed the package with [dev] dependencies:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file adi_crontab_tool-0.1.2.tar.gz.
File metadata
- Download URL: adi_crontab_tool-0.1.2.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1167d0804acd129abe7da2e5c959496acefbb1d41dc40eeae7ef5473e6e9263f
|
|
| MD5 |
94189d5a9df4bb681553400425195960
|
|
| BLAKE2b-256 |
365f0b51067812a84d4b38310a3d374cf67472a96d21103eefa4ef596d770cca
|
File details
Details for the file adi_crontab_tool-0.1.2-py3-none-any.whl.
File metadata
- Download URL: adi_crontab_tool-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00aa70c4682c0776004d2f5c8627a626cd2d82fce22a46b511353b3c59f737a4
|
|
| MD5 |
e6b92549c3dee07d392259d538d6f921
|
|
| BLAKE2b-256 |
81c878d1d07658ef6a3c8a529b29c3a8b7173f4f5790bac11e98de0874b4ee19
|