Skip to main content

Python Based Phabricator API Bindings

Project description

python_phabricator

A Conduit Based Python API for Phabricator

  • Aims to be python based, no dependency on Arcanist
  • Module Based format for API Requests (Easy to extend)
  • Session Token is Cached and takes into account expiry time

How to Use

Minimal configuration as follows

# The Certificate of your phabricator installation that can be found
# under settings
CERT = 'YOUR_CERTIFICATE_HERE'

# The authorized user on behalf of which to make the call
USER = 'USER_NAME'

# The phabricator URL without the PHAB
PHAB = 'PHABRICATOR_URL'
  • Copy settings_sample.py as settings.py
  • Fill out the values
  • Your certificate can be found in the settings page of your phabricator installation
msk@msk-ubuntu ~/projects/python_phabricator (master●)$ python
Python 2.7.5+ (default, Feb 27 2014, 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
phabricator-python-0.3.tar.gz (3.6 kB) Copy SHA256 hash SHA256 Source None Mar 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page