sdk-python (tbbn-sdk on PyPI)
Status: WORKING (source only) — untested. This folder is a plain Python package, not an npm
package — it was never @tbbn/sdk-python; that naming only applies to the real npm packages
under packages/sdk-* (sdk-js, sdk-typescript, sdk-react, sdk-next, sdk-vue, sdk-rn). No Python
toolchain exists in the environment this was written in, so this code has not been run — see
.github/workflows/sdk-python-ci.yml for the build-verification run once this is pushed.
Written as a faithful translation of packages/sdk-js/src/client.ts's full method surface (all
27 resource groups, Phase 0-13). Review before shipping to production.
Real src-layout Python package (pyproject.toml, PEP 621), type-hinted throughout, requests
as the only dependency. Synchronous only — simplest, most broadly compatible; an async variant
could be added later but isn't built here.
from tbbn_sdk import TbbnClient
client = TbbnClient(base_url="https://sandbox-api.tbbnetwork.com", api_key="sk_sandbox_...")
offer = client.offers.create({
"fromSellerId": "...",
"toSellerId": "...",
"listingIdsA": ["..."],
"listingIdsB": ["..."],
})
Installing
pip install tbbn-sdk
Publishes via PyPI's Trusted Publishing (GitHub OIDC) — see
.github/workflows/sdk-python-publish.yml (manual-trigger only). Unlike sdk-ios/sdk-php,
no public mirror is needed: PyPI never fetches source from the repo itself, it just verifies the
publishing workflow's identity, so this publishes straight from the private main repo. No
API token or secret is stored anywhere for this one.
Webhook signature verification
from tbbn_sdk import verify_webhook_signature
is_valid = verify_webhook_signature(raw_body, request.headers["X-TBBN-Signature"], signing_secret)
Coverage
auth, merchants, api_keys, sellers, listings, catalog, media, directory,
search, trade_engine, currency, localization, matching, recommendations, offers,
reservations, trade_sessions, checkout, billing, notifications, webhooks,
audit_logs, moderation, fraud, reputation, analytics, features, sandbox — every
resource group sdk-js exposes, snake_cased per PEP 8.
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 tbbn_sdk-0.1.0.tar.gz.
File metadata
- Download URL: tbbn_sdk-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deea08cf2009f54d7bdecfc8e5d52e230681c2961a27eb360103ff1a8b5304ab
|
|
| MD5 |
aa7ef95a7a7ceca7a262722ec60df6c7
|
|
| BLAKE2b-256 |
9a0bc7b822515efbb4e38e757e5b51c993edd95bca451b49bc5a7779dced2865
|
Provenance
The following attestation bundles were made for tbbn_sdk-0.1.0.tar.gz:
Publisher:
sdk-python-publish.yml on AzaMoney/tbbn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tbbn_sdk-0.1.0.tar.gz -
Subject digest:
deea08cf2009f54d7bdecfc8e5d52e230681c2961a27eb360103ff1a8b5304ab - Sigstore transparency entry: 2834910284
- Sigstore integration time:
-
Permalink:
AzaMoney/tbbn@5c3ccadc5402a9d1ffefb9c18ecfd99dffc3d2b4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/AzaMoney
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-python-publish.yml@5c3ccadc5402a9d1ffefb9c18ecfd99dffc3d2b4 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file tbbn_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tbbn_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1dbf4fe3a1082a9aef67bb91750df6268638e36819e257603dd2593ae9180f7
|
|
| MD5 |
afa8564a6728e8c4a94c8c216d114208
|
|
| BLAKE2b-256 |
fef488575494ab2bb055e71c3f7e9b78957e376db3bbf071d8eb20f368bda06c
|
Provenance
The following attestation bundles were made for tbbn_sdk-0.1.0-py3-none-any.whl:
Publisher:
sdk-python-publish.yml on AzaMoney/tbbn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tbbn_sdk-0.1.0-py3-none-any.whl -
Subject digest:
a1dbf4fe3a1082a9aef67bb91750df6268638e36819e257603dd2593ae9180f7 - Sigstore transparency entry: 2834910373
- Sigstore integration time:
-
Permalink:
AzaMoney/tbbn@5c3ccadc5402a9d1ffefb9c18ecfd99dffc3d2b4 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/AzaMoney
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-python-publish.yml@5c3ccadc5402a9d1ffefb9c18ecfd99dffc3d2b4 -
Trigger Event:
workflow_dispatch
-
Statement type: