将cron表达式转换为人类可读字符串的python库。
cron_descriptor的Python项目详细描述
#cron描述符
master:[![主构建状态](https://api.travis-ci.org/salamek/cron-descriptor.svg?branch=master)(https://travis-ci.org/salamek/cron-descriptor)全部:[![构建状态](https://api.travis ci.org/salamek/cron descriptor.svg)(https://travis ci.org/salamek/cron descriptor)
[![捐赠]cmd=\u捐赠&business=d8lq4xtblv3c4&lc=cz&item\u number=salamekcron descriptor&;currency\u code=eur)
cron表达式转换为人类可读字符串的python库。从https://github.com/brady holt/cron表达式描述符移植到python。
**author**:adam schubert(https://www.salamek.cz)
**原始作者&credit**:brady holt(http://www.geekytidbits.com)
**许可证**:[mit](http://opensource.org/licenses/mit)
features
*支持所有cron表达式特殊字符,包括*/,-?l w,
*支持5、6(w/秒或年)或7(w/秒和年)部分cron表达式
*提供大小写选项(句子、标题、小写等)
*支持14种语言的本地化
*支持python 2.7-3.5
pip-install-cron-cron-cron-cron-cron-descriptor
```
``python
`简单
从cron-cron-cron-cron-descriptor导入获取描述,expressiondescriptor
<打印(str(expressiondescriptor("*2 3 3**"))))
`
``
PY公司thon
sing_type=casingtypeenum.sentence,use_24hour_time_format=true)
get description使用descriptiontypeenum.full默认情况下:
print(descripter.get_description())
print({}.format(descripter))
ns.throw_exception_on_parse_error=true
options.casing_type=casingtypeenum.sentence
options.use_24hour_time_format=true
descripter=expressiondescriptor("*/10****",options)
print(descripter.get_description(descriptiontypeenum.full))
````
标签
语言语言语言语言语言语言贡献者;
英语[布莱迪霍尔特](https://github.com/brady holt)英语[布拉迪霍尔特](https://github.com/bradyholt)
语言124;[星鹏](https://github.com/star peng)挪威的nb[Siarhei Khalipski]【Siarhei Khalipski】(https://github.com/khlipskiisisiaarhei】
;【Mustafa Saded l】(https://github.com/sadedil)
土耳其的;【Mustafa Saded[Mustafa saded l】(https://github http://github com.com/sadedi l);;[totalmace](https://github.com/totalmace)
俄语ru[lbiss](h)人们对法国和德国的"阿诺德-塔马爱龙"(https://github.com/greybird)的理解是:德国和德国的"德德德"的理解是:迈克尔·舒勒(michael schuler)(https://github.com/mschhuler)的理解是:人们对乌克兰和英国的"塔拉斯"(taras)(https://github.com/mschhuler)的理解是:人们对乌克兰的"塔拉斯"(https://github.com/tbudururovych)的理解是:人们对乌克兰的"塔拉斯"(taras)(https://github.com/tbudururururovych)的理解是:人们对意大利的理解。[rinaldihno](https://github.com/rinaldihno)
捷克语| Cs_u CZ[亚当•舒伯特](https://github.com/salamek)
瑞典语sv_u se[奥克•恩格尔布雷克森](https://github.com/eson57)
<;!
BR/><下载> BR/> BR/>原始源
.NET-[ http://Github.com/BrADyHORT/CRON表达式描述符](http://Github.com/BrADyHORT/CRON表达式描述符)
端口> BR/> -爪哇-[http://Github.com/RedHogs /CRON解析器](HT)——很快< BR/>演示tps://github.com/redhogs/cron parser)
-ruby-[https://github.com/alpinweis/cronex](https://github.com/alpinweis/cronex)
``` bash
python setup.py test
```
并从"locale"目录中翻译任何文件:
``bash
cp./cron庘u描述符/locale/de庘de.po./cron庘u描述符/locale/your庘locale庘code.po
poedit./cron庘描述符/locale/your庘locale庘code.po
````
iptor"目录:
`` bash
cd cron_描述符
xgettext*.py-o locale/your_locale_code.po
```
从*.po文件生成*.mo文件。在根目录中运行命令:
``bash
msgfmt-o cron廑描述符/locale/your廑locale廑code.mo cron廑描述符/locale/your廑locale廑code.po
```
r/>
``bash
ln-s.././pre-commit.sh.git/hooks/pre-commit
````
>然后安装开发需求:
``bash
`pip install pep8
pip install flake8
pip install pep8 naming
```
master:[![主构建状态](https://api.travis-ci.org/salamek/cron-descriptor.svg?branch=master)(https://travis-ci.org/salamek/cron-descriptor)全部:[![构建状态](https://api.travis ci.org/salamek/cron descriptor.svg)(https://travis ci.org/salamek/cron descriptor)
[![捐赠]cmd=\u捐赠&business=d8lq4xtblv3c4&lc=cz&item\u number=salamekcron descriptor&;currency\u code=eur)
cron表达式转换为人类可读字符串的python库。从https://github.com/brady holt/cron表达式描述符移植到python。
**author**:adam schubert(https://www.salamek.cz)
**原始作者&credit**:brady holt(http://www.geekytidbits.com)
**许可证**:[mit](http://opensource.org/licenses/mit)
features
*支持所有cron表达式特殊字符,包括*/,-?l w,
*支持5、6(w/秒或年)或7(w/秒和年)部分cron表达式
*提供大小写选项(句子、标题、小写等)
*支持14种语言的本地化
*支持python 2.7-3.5
pip-install-cron-cron-cron-cron-cron-descriptor
```
``python
`简单
从cron-cron-cron-cron-descriptor导入获取描述,expressiondescriptor
<打印(str(expressiondescriptor("*2 3 3**"))))
`
``
PY公司thon
sing_type=casingtypeenum.sentence,use_24hour_time_format=true)
get description使用descriptiontypeenum.full默认情况下:
print(descripter.get_description())
print({}.format(descripter))
ns.throw_exception_on_parse_error=true
options.casing_type=casingtypeenum.sentence
options.use_24hour_time_format=true
descripter=expressiondescriptor("*/10****",options)
print(descripter.get_description(descriptiontypeenum.full))
````
标签
语言语言语言语言语言语言贡献者;
英语[布莱迪霍尔特](https://github.com/brady holt)英语[布拉迪霍尔特](https://github.com/bradyholt)
语言124;[星鹏](https://github.com/star peng)挪威的nb[Siarhei Khalipski]【Siarhei Khalipski】(https://github.com/khlipskiisisiaarhei】
;【Mustafa Saded l】(https://github.com/sadedil)
土耳其的;【Mustafa Saded[Mustafa saded l】(https://github http://github com.com/sadedi l);;[totalmace](https://github.com/totalmace)
俄语ru[lbiss](h)人们对法国和德国的"阿诺德-塔马爱龙"(https://github.com/greybird)的理解是:德国和德国的"德德德"的理解是:迈克尔·舒勒(michael schuler)(https://github.com/mschhuler)的理解是:人们对乌克兰和英国的"塔拉斯"(taras)(https://github.com/mschhuler)的理解是:人们对乌克兰的"塔拉斯"(https://github.com/tbudururovych)的理解是:人们对乌克兰的"塔拉斯"(taras)(https://github.com/tbudururururovych)的理解是:人们对意大利的理解。[rinaldihno](https://github.com/rinaldihno)
捷克语| Cs_u CZ[亚当•舒伯特](https://github.com/salamek)
瑞典语sv_u se[奥克•恩格尔布雷克森](https://github.com/eson57)
<;!
BR/><下载> BR/> BR/>原始源
.NET-[ http://Github.com/BrADyHORT/CRON表达式描述符](http://Github.com/BrADyHORT/CRON表达式描述符)
端口> BR/> -爪哇-[http://Github.com/RedHogs /CRON解析器](HT)——很快< BR/>演示tps://github.com/redhogs/cron parser)
-ruby-[https://github.com/alpinweis/cronex](https://github.com/alpinweis/cronex)
``` bash
python setup.py test
```
并从"locale"目录中翻译任何文件:
``bash
cp./cron庘u描述符/locale/de庘de.po./cron庘u描述符/locale/your庘locale庘code.po
poedit./cron庘描述符/locale/your庘locale庘code.po
````
iptor"目录:
`` bash
cd cron_描述符
xgettext*.py-o locale/your_locale_code.po
```
从*.po文件生成*.mo文件。在根目录中运行命令:
``bash
msgfmt-o cron廑描述符/locale/your廑locale廑code.mo cron廑描述符/locale/your廑locale廑code.po
```
r/>
``bash
ln-s.././pre-commit.sh.git/hooks/pre-commit
````
>然后安装开发需求:
``bash
`pip install pep8
pip install flake8
pip install pep8 naming
```