This repository contains the source code for an example implementation of the Python REST API client for xTuple ERP. This client uses the Google API's client library for Python.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

xTuple ERP Python REST API Client Example

xTuple ERP Python REST API Client Example using the Google APIs Client Library for Python to interface with xTuple's REST API.

WARNING: This example in in no way secure or using best practices for Python application. This is meant for educational purposes only.

Install and Run the Client

  1. Clone or download this repo:
git clone
  1. Register for an OAuth 2.0 "Services Account" Client in your xTuple Mobile Client's "OAUTH2" interface. You will be prompted to download a PK12 keystore file. See OAuth 2.0 Service Accounts Scenario for more information.
  2. Save the PK12 keystore file in the same directory as this file and the file.
  3. Edit the file and set all your OAuth 2.0 Client settings. See all of the TODOs in the file to find out where to do that.
  4. Install the Google APIs Client Library for Python on your system so it is available for this example to import.
  5. Make sure your xTuple Mobile Client is running before running

Using the Example

Run the script from the command line:

$ python

You should be presented with a JSON object containting a list of contacts.



Apache License, Version 2.0

Copyright (c) 2012-2013 xTuple