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(headerx-api-key),oauth(OAuthConfig — PKCE + refresh single-flight) ouoauth_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-idpróprio, que o backend ecoa e registra no log. Passeon_request_id=meu_log.appendemcreate_orbit_senderpara 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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c5fb191b21d4fb1ee60e3e8ef55a38ad3483bec2bfa1a669f0794723e6f6b9b
|
|
| MD5 |
64b3ac7d7f5f6e8488885d72999776a2
|
|
| BLAKE2b-256 |
bb930f786d351591fd5763823d92a96167d5e0bfb3900c3aa60755987d6e21db
|
Provenance
The following attestation bundles were made for orbitsender_sdk-1.0.0.tar.gz:
Publisher:
publish.yml on OrbitX-Digital/OrbitSender-OrbitChat
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orbitsender_sdk-1.0.0.tar.gz -
Subject digest:
7c5fb191b21d4fb1ee60e3e8ef55a38ad3483bec2bfa1a669f0794723e6f6b9b - Sigstore transparency entry: 2759283136
- Sigstore integration time:
-
Permalink:
OrbitX-Digital/OrbitSender-OrbitChat@aacb93dd2731c7871572d671aca6fb24d1cb3f78 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/OrbitX-Digital
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aacb93dd2731c7871572d671aca6fb24d1cb3f78 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae8ee576a7ea785a31a6263f591aa2240c8db75d2eef9f5d1800362dde5f3198
|
|
| MD5 |
b37e927806e00534898a92f9f9804b5c
|
|
| BLAKE2b-256 |
c098b54df4c61badf5af9e104a5dab8f336ecffeb60d0a257478dba377420c01
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orbitsender_sdk-1.0.0-py3-none-any.whl -
Subject digest:
ae8ee576a7ea785a31a6263f591aa2240c8db75d2eef9f5d1800362dde5f3198 - Sigstore transparency entry: 2759283264
- Sigstore integration time:
-
Permalink:
OrbitX-Digital/OrbitSender-OrbitChat@aacb93dd2731c7871572d671aca6fb24d1cb3f78 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/OrbitX-Digital
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@aacb93dd2731c7871572d671aca6fb24d1cb3f78 -
Trigger Event:
push
-
Statement type: