Adila Pay para Python
SDK Python 3.10+ com clientes síncrono e assíncrono, gerado a partir do mesmo
contrato financeiro dos SDKs Node.js/Bun. O módulo se chama adila_pay.
Instalação
python -m pip install adila-pay
# ou
uv add adila-pay
Uso no servidor
import os
import httpx
from adila_pay import AdilaPayClient
with httpx.Client(follow_redirects=False) as transport:
client = AdilaPayClient(
base_url=os.environ["ADILA_PAY_BASE_URL"],
api_key=os.environ["ADILA_PAY_API_KEY"],
timeout=30,
max_retries=2,
httpx_client=transport,
)
customers = client.customers.list(
organization_id=os.environ["ADILA_PAY_ORGANIZATION_ID"],
limit=10,
)
customer = client.customers.create(
organization_id=os.environ["ADILA_PAY_ORGANIZATION_ID"],
idempotency_key="cliente-integracao-001",
name="Cliente de exemplo",
)
Para async, importe AsyncAdilaPayClient, use httpx.AsyncClient com
async with e aguarde os métodos com await. O contexto fecha o transporte.
Erros HTTP derivam de adila_pay.core.api_error.ApiError e expõem status_code.
Configure a URL da sua instalação; API keys pertencem somente ao servidor.
São 43 operações financeiras, incluindo links de pagamento, códigos promocionais e configuração de repasses.
Criação de conta, onboarding e cadastro humano
ficam fora do cliente. Respostas Stripe continuam abertas, com modelos Pydantic
para os envelopes de lista. A aplicação controla starting_after e has_more.
Mutações exigem chave de idempotência de 8 a 255 caracteres. Reutilize a mesma
chave e corpo somente para repetir a mesma operação lógica.
Consulte a documentação para o exemplo assíncrono
completo e os limites de ambiente. O módulo contém openapi.json,
provenance.json e py.typed.
Metadata
Release files for adila-pay 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adila_pay-0.3.1.tar.gz | 90.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adila_pay-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 243.3 kB
Release files / adila_pay-0.3.1.tar.gz
| Download URL | adila_pay-0.3.1.tar.gz |
|---|---|
| Size | 90.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cce052c0a5db08500d1dfe841956de177dce1023111c5664654ee13715593f6
|
|
BLAKE2b-256 checksum How to use checksums |
2fe0504915ace27b74ffd9dd8308233a5ef3a1be85c7c0f8946503b08d825f0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency logRelease files / adila_pay-0.3.1-py3-none-any.whl
| Download URL | adila_pay-0.3.1-py3-none-any.whl |
|---|---|
| Size | 152.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6096c8cbcf10e318a4140a5d10898b83d92e4e2d5892c6bc07921f8c5df991a6
|
|
BLAKE2b-256 checksum How to use checksums |
aac5813d5dec8339b1af3dc12c210cbb8a9f1bba39994f908a1ecc3afe403a3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.
Transparency log