TimeChimp API Python SDK
Project description
TimeChimp
Description
- SDK to interact with TimeChimp API
- Can return a converted response to JSON and check for errors.
- Log HTTP method, url, params and headers
- Hide access_token in the logs
How to install
pip3 install timechimp
Documentation
https://timechimp.readthedocs.io/en/latest/
Source structure
- _endpoint.py: contain the source endpoints.
- _env_variables.py: env variables names holding the auth value (eg API token).
- api sub-package contains the functions to call
How to use
- access token is retrieved through env variables TIMECHIMP_ACCESS_TOKEN
Get the requests response object
import timechimp
response = timechimp.api.users.get_all()
Convert the response object to json
import timechimp
users = timechimp.api.users.get_all(to_json=True)
Test
pytest
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
timechimp-0.0.9.tar.gz
(24.7 kB
view hashes)
Built Distribution
timechimp-0.0.9-py3-none-any.whl
(40.6 kB
view hashes)
Close
Hashes for timechimp-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e22f7678506f1be04d2ab665940121e6c6fded58d2836f11bdaa8a9474cdaecb |
|
MD5 | 376f432f8e5c157bbbae33f0ed6c277f |
|
BLAKE2b-256 | da663cd93ffee8721c0ae4dfd3c762f6e8a25d518ef9526a8bb1d95a01835463 |