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

This version

0.6.3

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.3.tar.gz (129.7 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.3-py3-none-any.whl (142.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chift-0.6.3.tar.gz
  • Upload date:
  • Size: 129.7 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.3.tar.gz
Algorithm Hash digest
SHA256 62252bd4e23f6f67e79a310653f90c72ec2f4f53341ec7bbd9c463fcaceafb7d
MD5 d9f3d8c11800c3314062376fdf403579
BLAKE2b-256 789b257120a60675092884d8f4bd3b3adb0170a07c47e19e1b1517d508a0a0e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chift-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 142.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d3022712a78b3d0900a1172efe0ff094a3a7ea87d64fb38a88e2d75b663c6c09
MD5 04994571266c0256ade5d2b5201a6f74
BLAKE2b-256 5992d3cd481c56ab69706cd7086b7c0ae950bb3a65edee5bd97de541f9920789

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