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

Uploaded Source

Built Distribution

tcp_sdk-1.0.28-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tcp_sdk-1.0.28.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.2.0-39-generic

File hashes

Hashes for tcp_sdk-1.0.28.tar.gz
Algorithm Hash digest
SHA256 8b149e9451c1d10822292065413612874f5755e2f52c7c5080a811774da98862
MD5 e78348a30a1d9685e73a1e76236c35c8
BLAKE2b-256 957346d86669d2fbe3823046071e88221f895a10e3547cacbf43da23d018d6a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tcp_sdk-1.0.28-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.4 Linux/6.2.0-39-generic

File hashes

Hashes for tcp_sdk-1.0.28-py3-none-any.whl
Algorithm Hash digest
SHA256 3abd4ed0b837338228d59fa9322fff2774a2b17d453e8002e0317171d1e30fcd
MD5 910f8edf662cc59cf5993f3a4b44d2d6
BLAKE2b-256 3b5f9950bfa9b70bc48d4cc2879493ea97e80c183471d50f5f988d8c1ac1afd2

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