Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adila-pay 0.3.0
File Size Uploaded
adila_pay-0.3.0.tar.gz 89.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adila-pay 0.3.0
File Interpreter ABI Platform
adila_pay-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 241.6 kB

Release files / adila_pay-0.3.0.tar.gz

Download URL adila_pay-0.3.0.tar.gz
Size 89.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a0cdc296c30b6662fccdbba7ac59abd1ed13e14a38ab3a355024bd97c98bbe47
BLAKE2b-256 checksum
How to use checksums
8cee2bc24812917c4330d5dd5bac832c7831c85ab471c2c8b21419a252f56a29
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

Release files / adila_pay-0.3.0-py3-none-any.whl

Download URL adila_pay-0.3.0-py3-none-any.whl
Size 151.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47aee9fe16b0f105ec3c57f9fbd3caba1c031058b475d947a01c8bc300ba0955
BLAKE2b-256 checksum
How to use checksums
9e630849aa1525ac6d7f58ba862a459817c7bad2379e619c8e62207dfe2000af
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

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release 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