Chift Python Library
The Chift Python library provides convenient access to the Chift API from applications written in the Python language.
Documentation
See the API docs.
Installation
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 chift
Install from source with:
python setup.py install
Requirements
- Python 3.9+
Usage
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)
Development
Set up the development env:
make
Run all tests:
make test
Run the formatter:
make fmt
Metadata
Release files for chift 0.6.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chift-0.6.16.tar.gz | 148.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chift-0.6.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 312.9 kB
Release files / chift-0.6.16.tar.gz
| Download URL | chift-0.6.16.tar.gz |
|---|---|
| Size | 148.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2cd50b26803bae6b51651071a546dde75db6622b62b66f1454bf8ad02259053b
|
|
BLAKE2b-256 checksum How to use checksums |
381ec15abe834a574fef17ac66e8d3aa6d5729c7968b3bf71b1d82f3946a1b11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.21
|
Release files / chift-0.6.16-py3-none-any.whl
| Download URL | chift-0.6.16-py3-none-any.whl |
|---|---|
| Size | 163.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e5edc5c33e289a4698bdf2529004f80090dfe7f3e4a232717e03c450a78a9fa
|
|
BLAKE2b-256 checksum How to use checksums |
b38571d2902266d5864a75feda56b4f49c071acdd493b8105a5a4f66f98294b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.21
|