规划中心在线api的python包装器。
pypco的Python项目详细描述
PYPCO自述文件
pypco是一个面向对象的pythonic客户端,用于Planning Center Onlineapi。该库目前正在进行非常积极的开发,尚未推荐用于生产(但希望很快就可以准备好!).
功能
- 面向对象的pythonic接口:不写入url或生成/管理http请求!有了Pypco,你可以做这样的事情:
importpypcopco=pypco.PCO("<app_id>","<app_secret>")# Rename everyone in your PCO people account to "John Doe"# You probably shouldn't *actually* do this...forpersoninpco.people.people.list():person.first_name="John"person.last_name="Doe"person.update()# Create and save a new personnew_person=pco.new(pypco.models.people.Person)new_person.first_name="John"new_person.last_name="Doe"new_person.update()# Get the person with ID 123, and view their first nameperson=pco.people.people.get("123")print(person.first_name)# Get the persion with ID 123 and iterate through their addressesperson=pco.people.people.get("1234")foraddressinperson.rel.addresses.list():print(address)
- 自动速率限制处理:如果您的应用程序受到速率限制,pypco将自动延迟您的请求,直到您的速率限制期结束。
- rest api奇偶校验:pypco的目标是简单易用。快速阅读快速入门指南(即将推出)之后,您应该可以通过阅读pco api文档来使用pypco。在重新发明轮子和/或过度复杂的事情上没有意义。
许可证
Pypco根据麻省理工学院的许可条款获得许可。