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.12.tar.gz
(25.0 kB
view hashes)
Built Distribution
timechimp-0.0.12-py3-none-any.whl
(40.7 kB
view hashes)
Close
Hashes for timechimp-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb33ee92ad8605a3ccb3f4c8a7d7a89573821370da121994f2447a77dfe8b74f |
|
MD5 | 02771c46dac85c846bca914e7727b3dd |
|
BLAKE2b-256 | 6945cf338807b2bedacfd451a9c0120cc414e7aefb341941af25b30fea205226 |