Skip to main content

Chift Python Library

pypi Build Status Coverage Status

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.21

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chift 0.6.21
File Size Uploaded Provenance Actions
chift-0.6.21.tar.gz 216.8 kB Without provenance Details for chift-0.6.21.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chift 0.6.21
File Interpreter ABI Platform Actions
chift-0.6.21-py3-none-any.whl Python 3 none any Details for chift-0.6.21-py3-none-any.whl

Total release size: 451.2 kB

Release files / chift-0.6.21.tar.gz

Download URL chift-0.6.21.tar.gz
Size 216.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5a1950e79a0833ebc231d79af01d9d6d3cba6483cd9277d64c8c460292a0cb80
BLAKE2b-256 checksum
How to use checksums
d243932ac802d0d398a3541ba5b7ae8d6e9b74e73e63e69402ebba90583ac1ec
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.21-py3-none-any.whl

Download URL chift-0.6.21-py3-none-any.whl
Size 234.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51878b5b928a8124c9284d7a45d89f710adf49e9c5d6b0ee2c189f3913b1a1bc
BLAKE2b-256 checksum
How to use checksums
7ec899274ee6fa014e716714835d7bfb01ff5d1d1db7e0ef7592d4468aa4ae1f
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.21

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.

Release history Release notifications | RSS feed

This release

0.6.21 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page