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 0 | 0 | 0 | 0 |
| 1.0.0 | 0 | 0 | 0 | 0 | 0 |
2.0.8 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
MIT - MIT LicenseA Python library that converts cron expressions into human readable strings. Ported to Python from https://github.com/bradyholt/cron-expression-descriptor.
Author: Adam Schubert (https://www.salamek.cz)
Original Author & Credit: Brady Holt (http://www.geekytidbits.com)
License: MIT
Using PIP
pip install cron-descriptorfrom cron_descriptor import get_description, ExpressionDescriptor
print(get_description("* 2 3 * *"))
#OR
print(str(ExpressionDescriptor("* 2 3 * *")))# Consult Options.py/CasingTypeEnum.py/DescriptionTypeEnum.py for more info
from cron_descriptor import Options, CasingTypeEnum, DescriptionTypeEnum, ExpressionDescriptor
descriptor = ExpressionDescriptor(
expression = "*/10 * * * *",
casing_type = CasingTypeEnum.Sentence,
use_24hour_time_format = True
)
# GetDescription uses DescriptionTypeEnum.FULL by default:
print(descriptor.get_description())
print(f"{descriptor = }")
# Or passing Options class as second argument:
options = Options()
options.casing_type = CasingTypeEnum.Sentence
options.use_24hour_time_format = True
descriptor = ExpressionDescriptor("*/10 * * * *", options)
print(descriptor.get_description(DescriptionTypeEnum.FULL))| Language | Locale Code | Contributor |
|---|---|---|
| English | en | Brady Holt |
| Chinese Simplified | zh_CN | Star Peng |
| Chinese Traditional | zh_TW | Ricky Chiang |
| Czech | cs_CZ | Adam Schubert |
| Danish | da_DK | Rasmus Melchior Jacobsen |
| Dutch | nl_NL | TotalMace |
| Finnish | fi_FI | Mikael Rosenberg |
| French | fr_FR | Arnaud TAMAILLON |
| German | de_DE | Michael Schuler |
| Hebrew | he_IL | Ariel Deil |
| Hungarian | hu_HU | Varga Miklós |
| Italian | it_IT | rinaldihno |
| Japanese | ja_JP | Tho Nguyen |
| Korean | ko_KR | KyuJoo Han |
| Norwegian | nb_NO | Siarhei Khalipski |
| Persian | fa_IR | A. Bahrami |
| Polish | pl_PL | foka |
| Portuguese | pt_PT | Renato Lima |
| Portuguese (Brazil) | pt_BR | Renato Lima |
| Romanian | ro_RO | Illegitimis |
| Russian | ru_RU | LbISS |
| Slovenian | sl_SI | Jani Bevk |
| Spanish | es_ES | Ivan Santos |
| Spanish (Mexico) | es_MX | Ion Mincu |
| Swedish | sv_SE | Åke Engelbrektson |
| Vietnamese | vi_VN | Nguyen Duc Son |
| Turkish | tr_TR | Mustafa SADEDİL |
| Tamil | ta_IN | Sankar Hari |
| Ukrainian | uk_UA | Taras |
| Greek | el_GR | hardra1n |
| Kazakh | kk_KZ | hardra1n |
python setup.py testcron-descriptor is using Gettext for translations.
To create new translation or edit existing one, i suggest using Poedit.
You can copy/rename and translate any file from locale directory:
cp ./cron_descriptor/locale/de_DE.po ./cron_descriptor/locale/YOUR_LOCALE_CODE.po
poedit ./cron_descriptor/locale/YOUR_LOCALE_CODE.poor you can generate new untranslated *.po file from sources by running in cron_descriptor directory:
cd cron_descriptor
xgettext *.py -o locale/YOUR_LOCALE_CODE.poGenerating *.mo file from *.po file. In root directory run command:
msgfmt -o cron_descriptor/locale/YOUR_LOCALE_CODE.mo cron_descriptor/locale/YOUR_LOCALE_CODE.poAll suggestions and PR's are welcomed
Just clone this repository and register pre-commit hook by running:
ln -s ../../code-check.sh .git/hooks/pre-commitThen install dev requirements:
pip install .[dev,test]