python iCalendar(rfc5545)解析器

ics-lancstimtab的Python项目详细描述


Original repository(github)-Bugtracker and issues(github)-PyPi package(ics)-Documentation(阅读文档)。

https://travis-ci.org/C4ptainCrunch/ics.py.png?branch=masterCoverageApache 2 License

py是一个pythonic和简单的iCalendar库。它的目标是以开发人员友好的方式读写ICS数据。

iCalendar是一种广泛使用且有用的格式,但不便于用户使用。py是为了让您能够创建和阅读这种格式,而不需要任何知识。

它应该能够解析每个与rfc5545相关的日历,也许还可以解析更多的日历…它还输出符合rfc的日历。

iCalendar(文件扩展名.ics)由Sunbird、Google Calendar、Apple Calendar、Android使用…

py可用于python>;=3.4,并获得apache2许可。

快速启动

$ pip install ics
fromicsimportCalendar,Eventc=Calendar()e=Event()e.name="My cool event"e.begin='20140101 00:00:00'c.events.add(e)c.events# [<Event 'My cool event' begin:2014-01-01 00:00:00 end:2014-01-01 00:00:01>]withopen('my.ics','w')asmy_file:my_file.writelines(c)# and it's done !

更多示例可在documentation中找到。

文档

所有的documentation托管在readthedocs.org上,并在每次提交时自动更新。

贡献

当然欢迎贡献!有关详细信息,请参见contributing

测试和文档

# tests
$ pip install -r requirements.txt
$ pip install -r dev/requirements-test.txt
$ python setup.py test# tests coverage
$ pip install -r requirements.txt
$ pip install -r dev/requirements-test.txt
$ python setup.py test
$ coverage html
$ firefox htmlcov/index.html

# docs
$ pip install -r requirements.txt
$ pip install -r dev/requirements-doc.txt
$ cd doc
$ make html

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

推荐PyPI第三方库


热门话题
java如何在netbeans GUI中使用checknode创建JTree?   java事件无限循环SWT   java Thymeleaf空值检查   javajavax。同样是加密JDK源代码   java getColumnIndex访问外部内存中的特定文件夹   无法在Java代码中打开特定的JAR文件   java如何使用安全约束来保护url的一部分?   windows如何从命令行安装/删除Java快速启动服务   JavaSpring数据JPA保存新实体并获取其所有依赖项   swing Java JButton大小问题   IF语句可以在数学中使用吗。麦克斯在爪哇?   java如何使用POI设置空白excel单元格   java在签名为return int的方法中返回null?   java思想,如何将多个mircoservice项目放在同一个窗口中   直接从intelliJ在系统终端上运行java程序?   java通过POST从React应用程序向Spring Boot发送数组