Skip to main content

Python SDK to query The Cross Product API.

Project description

tcp-sdk is a Python module that provides a convenient object-oriented interface to TCP API. It acts as a wrapper around slumber.

QuickStart

  • Install tcp-sdk

$ virtualenv my_virtualenv
$ source my_virtualenv/bin/activate
$ pip install tcp-sdk
  • Connect to your TCP account

import tcp
client = tcp.client (usermail="user@domain.org", passwd="passwd")
print(client.token)

Save this token to the environment variable $TCP_API_TOKEN. Latter calls to tcp.client() will automatically connect to TCP API using this environment variable.

  • Start using tcp-sdk

import tcp
client = tcp.client ()
print (client.query().auth.get())

Requirements

tcp-sdk requires the following modules.

  • requests

  • slumber

  • requests-oauthlib

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

tcp-sdk-1.0.1.tar.gz (9.6 kB view hashes)

Uploaded Source

Built Distributions

tcp_sdk-1.0.1-py3.10.egg (12.9 kB view hashes)

Uploaded Source

tcp_sdk-1.0.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

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