基于python的phabricator api绑定

phabricator-python的Python项目详细描述


python_phabricator

用于phabricator的基于管道的python api

  • 目标是基于python,不依赖于Arcanist
  • 基于模块的API请求格式(易于扩展)
  • 会话令牌被缓存,并考虑到期时间

如何使用

最小配置如下

# The Certificate of your phabricator installation that can be found# under settingsCERT='YOUR_CERTIFICATE_HERE'# The authorized user on behalf of which to make the callUSER='USER_NAME'# The phabricator URL without the PHABPHAB='PHABRICATOR_URL'
  • settings_sample.py复制为settings.py
  • 填写数值
  • 您的证书可以在 phabricator安装
msk@msk-ubuntu ~/projects/python_phabricator (master●)$ python
Python 2.7.5+ (default, Feb 272014, 19:37:08)[GCC 4.8.1] on linux2
Type "help", "copyright", "credits" or "license"for more information.
>>> from phabricator.paste.query import QueryPaste
>>> p= QueryPaste()
>>> p.makeRequest()
loading token from disk cache
Paste Id: PHID-PSTE-klpolzpskydol4lofldl
Paste Id: PHID-PSTE-wfankndvvhullmp2rwgj
Paste Id: PHID-PSTE-epwflteivngjxxu7d3yb
Paste Id: PHID-PSTE-wrnmkkythul4wzm5c7qd

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

推荐PyPI第三方库


热门话题
java如何创建Restful服务并将其部署到OSGi容器?   java如何获取用户在EditText中输入的时间并从中扣除5小时30分钟?   java用户无法注销firebase 安卓   java Undertow始终将字符集添加到ContentType头,即使它不是文本MIME类型   java LocalBroadcastManager未正确接收消息   foreach在Java中有没有比For循环更好的方法可以灵活地遍历集合?   java如何在安卓上移动球   在OSGi下的Log4j中使所有记录器异步时,java ClassNotFoundException   java未知输入字节长度转换为int   java测试工厂在使用前缀命名时抛出NPE   对象的副本(JAVA)   java SP20310:无法打开文件。sql   java Spring安全性仅为一条路径添加安全性   java在idea中获取菱形运算符的编译错误