Skip to main content

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


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

Uploaded Source

Built Distribution

timechimp-0.0.4-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for timechimp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a67aa477a005902067958234e434bdef0663f3b93ba95cdc7ed3b41b220690d7
MD5 126f52fac1a2ff4e023d33f7dec25048
BLAKE2b-256 20f4425f6ebb83c5fb75793e15e40397608e84436b353b4e3692298f2150e1ee

See more details on using hashes here.

File details

Details for the file timechimp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: timechimp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for timechimp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eeea1dfe9c7f3720c4a007cd1ec937a7d53017a6461c0a72349c82056c6e0472
MD5 cda9120fa93043a53399fe8314d1941c
BLAKE2b-256 2e0282cdf976f3446c7414060e15e3c3ea9569886ae283884f210283cf8ad6b6

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