Skip to main content

TimeChimp API Python SDK

Project description

TimeChimp

Build Doc codecov License PyPI version Downloads Code style: black

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

  • TimeChimp endpoints are defined in timechimp.api

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


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.17.tar.gz (23.9 kB view hashes)

Uploaded Source

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