The Iugu provides a Python REST APIs to create, process and manage payments.
Using pip:
$ pip install iugu
From source code:
Clone the source:
$ git clone [email protected]:iugu/iugu-python.git
Execute the setup script:
$ cd iugu-python
$ python setup.py install
You should import and create an iugu instance using your api token:
import iugu
api = iugu.config(token=IUGU_API_TOKEN)
After that you can use the instance to iniciate the module you need, example:
# token api
iugu_token_api = iugu.Token()
# customer api
iugu_customer_api = iugu.Customer()
To see all available modules, check the iugu folder of this project.
Visit iugu.com/referencias/api for api reference or iugu.com/documentacao for full documentation
Originally by Felipe Tomaz and Arthur Furlan.