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.15.tar.gz (23.8 kB view details)

Uploaded Source

File details

Details for the file timechimp-0.0.15.tar.gz.

File metadata

  • Download URL: timechimp-0.0.15.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for timechimp-0.0.15.tar.gz
Algorithm Hash digest
SHA256 2a833890240f40e1d08c3896c7ef49d68d9e22b2e17436e1c02101ae7a398dd3
MD5 3f3f06d18764f91aa7b393e451fbcb68
BLAKE2b-256 57c08d4e4d24f7d39576f5de816cdea416a78794a4c6e26e2290c8dc4e34ba3e

See more details on using hashes here.

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