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


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.1.73.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

chift-0.1.73-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chift-0.1.73.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for chift-0.1.73.tar.gz
Algorithm Hash digest
SHA256 5626d431258af41c208f740d2b5724752f17a561d4aeb0d693dfcad2b0c8aac6
MD5 b8bbf046002c77149a6bc23b8dd53849
BLAKE2b-256 195f8fe9480ebffcd7408135d789924ee56bd7b95bc46c1da79035592cc88e60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chift-0.1.73-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for chift-0.1.73-py3-none-any.whl
Algorithm Hash digest
SHA256 540502adab1fa5abc8d88b2d55925e21cf97a11d69dc33dd028f08ce07157e09
MD5 26e69634536f084b02af8f3ede9e1204
BLAKE2b-256 bcc3f9f0d227da653717912aa4516d9c69285af1872528bb9ad9b0c048abd5bd

See more details on using hashes here.

Supported by

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