Arcus API Client
Project description
arcus-python
Arcus python3.6 + 3.7 client library for API version 3.1 of Arcus.
Install
$ pip install arcus
Testing
$ make test
Authentication and account info
Current version support direct endpoint calls.
from arcus.client import Client
# Create an Arcus client instance
client = Client('your-api-key', 'your-secret-key')
# Get account info
account_info = client.get('/account')
# create bill
account_info = dict(biller_id=40, account_number='501000000007')
bill = client.post('/bills', account_info)
Usage
from arcus import Client
client = Client('your-api-key', 'your-secret-key')
# create bill
bill = client.bills.create(40, '501000000007')
# pay bill
transaction = bill.pay()
# show transaction
transaction = client.transactions.get(transaction.id)
# cancel transaction
cancellation = client.transactions.cancel(transaction.id)
assert cancellation.code == 'R0'
assert cancellation.message == 'Transaction successful'
# verify cancellation
updated_transaction = client.transactions.get(transaction.id)
assert updated_transaction.id == transaction.id
assert updated_transaction.status == 'refunded'
Release to PyPi
- Update version in
setup.py
- Commit changes to
setup.py
and push toorigin/master
git tag -a <version> -m <release message>
git push origin --tags
TravisCI will release the updated version to PyPi after verifying the tests pass.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
arcus-0.1.1.tar.gz
(6.5 kB
view hashes)
Built Distribution
arcus-0.1.1-py3-none-any.whl
(9.6 kB
view hashes)