Skip to main content

RTQL8 a given cron expression

Project description

RTQL8

Python library for cron parsing and description generation.

Installation

pip install rtql8

Development Installation

poetry install

Usage

from rtql8 import Cron

cron = Cron("* * * * *")
print(cron.description)

Usage for CLI

rtql8 -e "* * * * *"

# Output
Every minute

Another way is using poetry run:

poetry run rtql8 -e "0 0 1,15 * ?"

# Output
At midnight, on 1st and 15th of the month

Testing

poetry run pytest

or run specific test case, for example, test_cli.py in test_cron.py:

poetry run pytest tests/test_cli.py

or

poetry run pytest tests/test_cron.py

License

MIT

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

rtql8-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

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

rtql8-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file rtql8-0.1.0.tar.gz.

File metadata

  • Download URL: rtql8-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for rtql8-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd2c66212880da323b592fa8c929d97f93916b2ecb0ff291f6a00973ccdbfe7b
MD5 1da1a34aeb547ae7dfd3f31989e6b55e
BLAKE2b-256 4baf06cc48ddc7430b6b0eaa708fc67ec2063d8a3a55b492f6b57bd201bd4c25

See more details on using hashes here.

File details

Details for the file rtql8-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: rtql8-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.12 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for rtql8-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95e6911d57442a98f84d3dd05090d59827ef5e175b14159018d332831fadd099
MD5 e30b8af8b0828ef8f224891f4012c7f7
BLAKE2b-256 b04087b93bcdff31d10add365c5e500e42c60a9dfe5fd77a440b989f0e8cb984

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