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.

Source Distribution

phabricator-python-0.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file phabricator-python-0.3.tar.gz.

File metadata

File hashes

Hashes for phabricator-python-0.3.tar.gz
Algorithm Hash digest
SHA256 cc0795ec62e02545b2444340a021ded562a69a479ae8b4a0f5321b8d21128fb3
MD5 011e2f8293f2472b3e163817937e3155
BLAKE2b-256 7385b5306d94e5a92c8b5973ab7c3510758b9ee39c0ecbbc01dad7e5a9f21f95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page