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.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chift-0.6.17.tar.gz | 205.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chift-0.6.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 427.6 kB
Release files / chift-0.6.17.tar.gz
| Download URL | chift-0.6.17.tar.gz |
|---|---|
| Size | 205.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cadbde34caef4ea390899f17d975e09a4db91fa59d776d897590d7347f8e9b11
|
|
BLAKE2b-256 checksum How to use checksums |
251bb0cbd4fbda68031100145a0f25a42f5a1d030a87ce1b4d0f87f7b7c30ad7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.22
|
Release files / chift-0.6.17-py3-none-any.whl
| Download URL | chift-0.6.17-py3-none-any.whl |
|---|---|
| Size | 222.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e24fb95c3facdaee33451bfbbaf740c02f2385500fe9ae668ceaf9514157c8bd
|
|
BLAKE2b-256 checksum How to use checksums |
0306967cb904f6b4ba29a966c6720c73dc8ac3bbc311349dbedc0713d100f1af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.22
|
Security for chift 0.6.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.