Skip to main content

orbitsender-sdk (Python)

SDK Python oficial do OrbitSender. Facade ergonômica (orbitsender_sdk) sobre o cliente gerado do OpenAPI (orbitsender), num único pacote.

pip install orbitsender-sdk
from orbitsender_sdk import create_orbit_sender, RateLimitError

os = create_orbit_sender(api_key="sk_live_...")
me = os.partner.me()                      # retorna o model; lança exceção tipada em erro
done = os.campaigns.wait_until_sent(cid)  # poll do agregado groups (webhook é só sinal)

O que a facade dá (paridade com o SDK TS)

  • Auth unificada: api_key (header x-api-key), oauth (OAuthConfig — PKCE + refresh single-flight) ou oauth_token (Bearer estático).
  • Erros tipados lançáveis: RateLimitError (.retry_after), PlanLimitError (.current/.max), ForbiddenScopeError, OAuthError, ...
  • Retry idempotente (nunca em POST de escrita) que honra Retry-After.
  • Waiters: campaigns.wait_until_sent, channels.wait_until_connected.
  • Idempotência: idempotency_key= nas escritas.
  • Webhooks: construct_event(raw_body, headers, secret) (verificação HMAC).
  • Correlação: cada requisição leva um x-request-id próprio, que o backend ecoa e registra no log. Passe on_request_id=meu_log.append em create_orbit_sender para guardá-lo e citá-lo no suporte (as exceções também trazem .request_id).
  • OAuth PKCE: OrbitSenderOAuth.begin/exchange/revoke + complete_oauth.

Regeneração (zero lock-in)

O cliente cru (orbitsender/) é gerado por openapi-python-client a partir de ../../openapi/orbitsender-api.yaml. A facade (orbitsender_sdk/) é escrita à mão e regen-safe (fica fora do pacote gerado). Ver PUBLISHING.md.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orbitsender_sdk-1.0.0.tar.gz (66.8 kB view details)

Uploaded Source

Built Distribution

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

orbitsender_sdk-1.0.0-py3-none-any.whl (171.6 kB view details)

Uploaded Python 3

File details

Details for the file orbitsender_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: orbitsender_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for orbitsender_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c5fb191b21d4fb1ee60e3e8ef55a38ad3483bec2bfa1a669f0794723e6f6b9b
MD5 64b3ac7d7f5f6e8488885d72999776a2
BLAKE2b-256 bb930f786d351591fd5763823d92a96167d5e0bfb3900c3aa60755987d6e21db

See more details on using hashes here.

Provenance

The following attestation bundles were made for orbitsender_sdk-1.0.0.tar.gz:

Publisher: publish.yml on OrbitX-Digital/OrbitSender-OrbitChat

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

File details

Details for the file orbitsender_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: orbitsender_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 171.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for orbitsender_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae8ee576a7ea785a31a6263f591aa2240c8db75d2eef9f5d1800362dde5f3198
MD5 b37e927806e00534898a92f9f9804b5c
BLAKE2b-256 c098b54df4c61badf5af9e104a5dab8f336ecffeb60d0a257478dba377420c01

See more details on using hashes here.

Provenance

The following attestation bundles were made for orbitsender_sdk-1.0.0-py3-none-any.whl:

Publisher: publish.yml on OrbitX-Digital/OrbitSender-OrbitChat

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

Release history Release notifications | RSS feed

This release

1.0.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