Instalação
Configuração inicial
Publicado em
PyPI — Delfinance-api-sdk
Veja versões, changelog e dependências no PyPI.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Instale e configure o SDK oficial da Delfinance para Python.
pip install Delfinance-api-sdk
poetry add Delfinance-api-sdk
from Delfinance import Delfinance
import os
client = Delfinance(
environment="sandbox", # ou "production"
client_id=os.getenv("DELFINANCE_CLIENT_ID"),
client_secret=os.getenv("DELFINANCE_CLIENT_SECRET"),
cert_path="./certificado.crt",
key_path="./chave-privada.key"
)
| Parâmetro | Tipo | Descrição |
|---|---|---|
environment | str | "sandbox" ou "production" |
client_id | str | API key do Portal do Desenvolvedor |
client_secret | str | Client secret do Portal do Desenvolvedor |
cert_path | str | Caminho para o certificado mTLS (.crt) |
key_path | str | Caminho para a chave privada (.key) |
