The Chift Python library provides convenient access to the Chift API from applications written in the Python language.
See the API docs.
You don't need this source code unless you want to modify the package. If you just want to use the package, just run:
pip install --upgrade chiftInstall from source with:
python setup.py install- Python 3.9+
import chift
chift.client_secret = "Spht8g8zMYWHTRaT1Qwy"
chift.client_id = "pZMQxOJJ6tl1716"
chift.account_id = "a8bfa890-e7ab-480f-9ae1-4c685f2a2a76"
chift.url_base = "http://chift.localhost:8000" # for development
# get a consumer
consumer = chift.Consumer.get("0e260397-997e-4791-a674-90ff6dab7caa")
# get all products
products = consumer.invoicing.Product.all(limit=2)
# get one products
product = consumer.invoicing.Product.get("PRD_3789488")
# print the product name
print(product.name)Set up the development env:
makeRun all tests:
make testRun the formatter:
make fmt