将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
```

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java需要设置框架。可设置大小(false)以重新绘制()   java我对PDF文件感到困惑   为什么是太阳。jvm。热点。调试器。DebuggerException:无法打开二进制文件`?   设置结果为textview时出现java空指针异常   我应该使用什么同步原语在Java中实现事件驱动程序框架?   java为什么WindowClosing处理程序在退出程序之前不执行后台任务?   如何将“20170712T18:43:04.000Z”转换为安卓或java中的相对时间?   Java,获取按键的时间长度,currentTimeMillies()始终为24   maven构建的java可执行Jar找不到logback。xml   java在其外部的函数中使用for循环中的值   java如何以表格格式将不同长度的数据对齐   java Play 2.5 WebSocket连接构建   maven而非eclipse的java强制转换问题   java如何在JFreeChart中使X轴上的值水平?   构建Java Windows应用程序以访问在线MySQL数据库需要什么   java添加构造函数会出错吗?这没有道理,请帮忙,编程问题   java在一个jframe中的两个JPanel中使用两个绘制方法   java数学或逻辑问题   java如何复制Androids库存摄像头方向更改