Skip to main content

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

tbbn_sdk-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

tbbn_sdk-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for tbbn_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 deea08cf2009f54d7bdecfc8e5d52e230681c2961a27eb360103ff1a8b5304ab
MD5 aa7ef95a7a7ceca7a262722ec60df6c7
BLAKE2b-256 9a0bc7b822515efbb4e38e757e5b51c993edd95bca451b49bc5a7779dced2865

See more details on using hashes here.

Provenance

The following attestation bundles were made for tbbn_sdk-0.1.0.tar.gz:

Publisher: sdk-python-publish.yml on AzaMoney/tbbn

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

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

Hashes for tbbn_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1dbf4fe3a1082a9aef67bb91750df6268638e36819e257603dd2593ae9180f7
MD5 afa8564a6728e8c4a94c8c216d114208
BLAKE2b-256 fef488575494ab2bb055e71c3f7e9b78957e376db3bbf071d8eb20f368bda06c

See more details on using hashes here.

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

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

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page