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
Metadata
Release files for tcp-sdk 1.0.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tcp_sdk-1.0.29.tar.gz | 37.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tcp_sdk-1.0.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 48.5 kB
Release files / tcp_sdk-1.0.29.tar.gz
| Download URL | tcp_sdk-1.0.29.tar.gz |
|---|---|
| Size | 37.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
357fa7c7b73a19baae99c7e14ff540b689703c9dfe0fa15c3fee9ee201ef380a
|
|
BLAKE2b-256 checksum How to use checksums |
d27d6a3b19b5643c98731f28a9fa8658dacd332e161233411865358ecce0c93e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 30, 2025.
Transparency logRelease files / tcp_sdk-1.0.29-py3-none-any.whl
| Download URL | tcp_sdk-1.0.29-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a53d75bb447897cf9d7e4131b8cf73e79ee3c7c7255e363f9b04bd6d7fcf77bd
|
|
BLAKE2b-256 checksum How to use checksums |
7cb584480beaff49aaccdbc475db469af488f54cf7d67c6e81574aa66711fcd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 30, 2025.
Transparency log