Skip to main content

Chift API client

Project description

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

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

chift-0.6.6.tar.gz (136.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chift-0.6.6-py3-none-any.whl (151.4 kB view details)

Uploaded Python 3

File details

Details for the file chift-0.6.6.tar.gz.

File metadata

  • Download URL: chift-0.6.6.tar.gz
  • Upload date:
  • Size: 136.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.20

File hashes

Hashes for chift-0.6.6.tar.gz
Algorithm Hash digest
SHA256 018cc36e9d46eec400e948c096502d74b9278405214391553ab87628f19f1177
MD5 6ed2a520868f40603b7b57be4ae7a202
BLAKE2b-256 3de29a6d4aa3ed0fe4e49f56c69ec28cf61eabe4a7691613c83c2594bc83891b

See more details on using hashes here.

File details

Details for the file chift-0.6.6-py3-none-any.whl.

File metadata

  • Download URL: chift-0.6.6-py3-none-any.whl
  • Upload date:
  • Size: 151.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.20

File hashes

Hashes for chift-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 da0110d1360d4478447f4190f94212b99240ab24e782e4752d3f1369e752b447
MD5 d8afbe08d25745f678e017e4833257ac
BLAKE2b-256 d1e62379ba1b654e4f1918139f0d22cdf2dd96a24eb0d5a99d4831a227be8c9d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page