Cron expression parser
Project description
# Cron Expression Parser
A simple cron expression parser written in python that translates cron expression and send output in table format.
Handles setp values(/), range values(-) and comma(,) separated values
3. It accepts string input which has following five paramters - minute - hour - day of month - month - day of week - command
## Steps to create and upload pypi package
create project
create setup.py
run ` python3 setup.py sdist bdist_wheel`
it will create dist folder in ur code folder incusing wheel files
register and create account on pypi library
run twine upload dist/*
## System Requirements
Python >=3.12
pipenv
## Steps to use
follow these steps, to use this program:
Open a terminal or command prompt in the root folder.
Install all dependencies and active the virtual environment: `shell pip3 install pipenv pipenv install pipenv install -r requirements.txt pipenv shell pipenv install pytest `
Install the package as a binary name cron-parser. `shell pip3 install --editable . `
Run the program with a cron expression as an argument. For example:
`shell cron-parser "<expression>" `
expression should be including minutes, hours, day of month, months, day of week and command
Example : “*/10 0 2,12 * 2-6 /usr/bin/find”
The program will output the formatted cron expression as a table, like this:
` minute 0 10 20 30 40 50 hour 0 day of month 2 12 month 1 2 3 4 5 6 7 8 9 10 11 12 day of week 2 3 4 5 6 command /usr/bin/find `
To run the tests , run following command: `shell 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 Distributions
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 cron_parser-2.0.0-py3-none-any.whl.
File metadata
- Download URL: cron_parser-2.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3719e1c38b45e69d42c4ee72f252ca6532d326ca47576d91b228f25bf9f7cb7b
|
|
| MD5 |
6f2bccaca2a140a9c14ad31ec58b372c
|
|
| BLAKE2b-256 |
b74513638e6b8f17dbc1923363c69b704afe1dd648dde30589c77f196b5304b4
|