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.11.tar.gz
(24.9 kB
view hashes)
Built Distribution
timechimp-0.0.11-py3-none-any.whl
(40.7 kB
view hashes)
Close
Hashes for timechimp-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a340a6fc43956fdbce8119f6fb614d9f6ce3a80502252045eff77b81dda7f1f |
|
MD5 | 20eaf78004b4fa8f090438c81632ac80 |
|
BLAKE2b-256 | 23b3c42392304f9100a5cc2627cad96bd0173830748c65a97e4c9626c71d44e3 |