Skip to main content

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


Download files

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

Source Distribution

adi_crontab_tool-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adi_crontab_tool-0.1.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for adi_crontab_tool-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1167d0804acd129abe7da2e5c959496acefbb1d41dc40eeae7ef5473e6e9263f
MD5 94189d5a9df4bb681553400425195960
BLAKE2b-256 365f0b51067812a84d4b38310a3d374cf67472a96d21103eefa4ef596d770cca

See more details on using hashes here.

File details

Details for the file adi_crontab_tool-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for adi_crontab_tool-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 00aa70c4682c0776004d2f5c8627a626cd2d82fce22a46b511353b3c59f737a4
MD5 e6b92549c3dee07d392259d538d6f921
BLAKE2b-256 81c878d1d07658ef6a3c8a529b29c3a8b7173f4f5790bac11e98de0874b4ee19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page