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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357fa7c7b73a19baae99c7e14ff540b689703c9dfe0fa15c3fee9ee201ef380a
|
|
| MD5 |
3f125372a3989c3a97d2d8e884131042
|
|
| BLAKE2b-256 |
d27d6a3b19b5643c98731f28a9fa8658dacd332e161233411865358ecce0c93e
|
Provenance
The following attestation bundles were made for tcp_sdk-1.0.29.tar.gz:
Publisher:
publish.yml on TheCrossProduct/tcp-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tcp_sdk-1.0.29.tar.gz -
Subject digest:
357fa7c7b73a19baae99c7e14ff540b689703c9dfe0fa15c3fee9ee201ef380a - Sigstore transparency entry: 204797080
- Sigstore integration time:
-
Permalink:
TheCrossProduct/tcp-sdk@4725a265ce6e92ce23238702c01304b9d3a15454 -
Branch / Tag:
refs/tags/v1.0.29 - Owner: https://github.com/TheCrossProduct
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4725a265ce6e92ce23238702c01304b9d3a15454 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a53d75bb447897cf9d7e4131b8cf73e79ee3c7c7255e363f9b04bd6d7fcf77bd
|
|
| MD5 |
0c53d54cf4875cac502acf0e433ae1d5
|
|
| BLAKE2b-256 |
7cb584480beaff49aaccdbc475db469af488f54cf7d67c6e81574aa66711fcd0
|
Provenance
The following attestation bundles were made for tcp_sdk-1.0.29-py3-none-any.whl:
Publisher:
publish.yml on TheCrossProduct/tcp-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tcp_sdk-1.0.29-py3-none-any.whl -
Subject digest:
a53d75bb447897cf9d7e4131b8cf73e79ee3c7c7255e363f9b04bd6d7fcf77bd - Sigstore transparency entry: 204797090
- Sigstore integration time:
-
Permalink:
TheCrossProduct/tcp-sdk@4725a265ce6e92ce23238702c01304b9d3a15454 -
Branch / Tag:
refs/tags/v1.0.29 - Owner: https://github.com/TheCrossProduct
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4725a265ce6e92ce23238702c01304b9d3a15454 -
Trigger Event:
release
-
Statement type: