Skip to main content

Python SDK to query The Cross Product API.

Project description

TCP python SDK

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tcp_sdk-1.0.29-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file tcp_sdk-1.0.29.tar.gz.

File metadata

  • Download URL: tcp_sdk-1.0.29.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tcp_sdk-1.0.29.tar.gz
Algorithm Hash digest
SHA256 357fa7c7b73a19baae99c7e14ff540b689703c9dfe0fa15c3fee9ee201ef380a
MD5 3f125372a3989c3a97d2d8e884131042
BLAKE2b-256 d27d6a3b19b5643c98731f28a9fa8658dacd332e161233411865358ecce0c93e

See more details on using hashes here.

Provenance

The following attestation bundles were made for tcp_sdk-1.0.29.tar.gz:

Publisher: publish.yml on TheCrossProduct/tcp-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tcp_sdk-1.0.29-py3-none-any.whl.

File metadata

  • Download URL: tcp_sdk-1.0.29-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tcp_sdk-1.0.29-py3-none-any.whl
Algorithm Hash digest
SHA256 a53d75bb447897cf9d7e4131b8cf73e79ee3c7c7255e363f9b04bd6d7fcf77bd
MD5 0c53d54cf4875cac502acf0e433ae1d5
BLAKE2b-256 7cb584480beaff49aaccdbc475db469af488f54cf7d67c6e81574aa66711fcd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for tcp_sdk-1.0.29-py3-none-any.whl:

Publisher: publish.yml on TheCrossProduct/tcp-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page