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 75 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.4.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.4.0
File Size Uploaded Provenance Actions
adila_pay-0.4.0.tar.gz 126.6 kB With provenance Details for adila_pay-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 343.0 kB

Release files / adila_pay-0.4.0.tar.gz

Download URL adila_pay-0.4.0.tar.gz
Size 126.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b635d7a06b26c750244be25564467203957eb79546235e730b3ce61085f60b1e
BLAKE2b-256 checksum
How to use checksums
dd295bd6703130223204aa91ee9b30463c615131461b4073193b18f7297af834
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 Nov 2, 2026.

Transparency log

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

Download URL adila_pay-0.4.0-py3-none-any.whl
Size 216.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d09ca7fd4ae547da44375b8c55deba328b14a5f7bb6653ac7b8e056a1341cbab
BLAKE2b-256 checksum
How to use checksums
9def3265cd80a3277a973efa7183f2a0a0ac2eb1929dfcd3abb26497f1d890f8
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 Nov 2, 2026.

Transparency log

Security for adila-pay 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for adila_pay-0.4.0.tar.gz

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 Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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