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

Uploaded Source

File details

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

File metadata

  • Download URL: timechimp-0.0.21.tar.gz
  • Upload date:
  • Size: 23.9 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.21.tar.gz
Algorithm Hash digest
SHA256 888edd426db4a7727b57583203ba9c9ec600b0e6d123bba9675f0abf01ae8340
MD5 3120c6f448df22445ba125d28e474815
BLAKE2b-256 6c09a04256a9bb0f12ea8783aa74b5f8822f45db23da71c123659d9ec4877e15

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