Phabricator API绑定

phabricator的Python项目详细描述


https://travis-ci.org/disqus/python-phabricator.png?branch=master

安装

$ pip install phabricator

用法

通过实例化api,然后通过点符号链调用方法来使用它:

from phabricator import Phabricator
phab = Phabricator()  # This will use your ~/.arcrc file
phab.user.whoami()

参数作为关键字参数传递给资源调用:

phab.user.find(aliases=["sugarc0de"])

有关所有方法的文档位于https://secure.phabricator.com/conduit/

接口过期

如果phabricator修改了导管,并且包含的interfaces.json已过期或要确保 始终拥有最新的接口:

from phabricator import Phabricator
phab = Phabricator()
phab.update_interfaces()
phab.user.whoami()

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

推荐PyPI第三方库


热门话题
java如何序列化数字?   java如何用我的Mainclass扩展ListActivity类和Fragment类?   JavaJersey、Jackson和JAXRS发布了多种JSON格式   java如何使用JavaFXKeyCombination覆盖系统默认的键盘快捷键,如Ctrl+C、Ctrl+V?   java Jersey类路径扫描示例Jersey。配置。服务器供应商。类路径   java什么样的数据结构可以作为一个数组,但在同一索引下给定多个值时会自动增长到第二维度?   java如何序列化非持久实体中的嵌套PersistentEntityResource   协议缓冲区我可以让protoc在Java中生成int数组吗?   在GregorianCalendar ArrayList Java中添加日期元素   从html模板动态生成pdf文件并用java生成目录   java Gridgain 6.5.5开源多个节点速度较慢。。?   java如何检查数组中所有整数的不相等性?   java在Eclipse中,如何多次运行JUnit测试用例   java侦听器不能处理特定的片段   java不是一个声明?(蓝色J)   找不到Attributer类型的PersonId的java定义