ia-erp-dte — SDK oficial de Python
SDK oficial con cero dependencias externas (Python 3.10+) para la API Pública de DTE de IA ERP (SII de Chile).
- Emisión idempotente de Boletas (39/41), Facturas (33/34), Guías (52) y NC/ND (61/56)
- Sandbox (
sk_test_) y producción (sk_live_) con el mismo cliente - PDF carta, PDF cedible, PDF térmico 80 mm POS y XML firmado
- Reintentos automáticos en
429/5xxpreservandoIdempotency-Key - Errores RFC 9457 (
IaErpApiError) y verificación HMAC-SHA256 de webhooks (verificar_firma_webhook)
Instalación
pip install ia-erp-dte
Inicio rápido
import os
from ia_erp_dte import IaErpClient
client = IaErpClient(api_key=os.environ["IAERP_DTE_API_KEY"])
res = client.dte.emitir(
{
"tipo_dte": 39,
"precios_incluyen_iva": True,
"referencia_externa": "ORD-2026-00481",
"items": [{"nombre": "Suscripción mensual", "cantidad": 1, "precio_unitario": 19990}],
},
idempotency_key="ORD-2026-00481",
)
pdf_80mm = client.dte.pdf(res.documento["id"], formato="termico_80mm")
Verificar webhooks firmados (HMAC-SHA256)
from ia_erp_dte import verificar_firma_webhook
valido = verificar_firma_webhook(raw_body, request.headers.get("X-IAERP-Signature"), webhook_secret)
Enlaces
- Documentación: docs.ia-erp.cl
- Especificación OpenAPI 3.1: dte.ia-erp.cl/openapi.json
- Estado del servicio: status.ia-erp.cl
Metadata
Release files for ia-erp-dte 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ia_erp_dte-1.0.0.tar.gz | 8.5 kB | With provenance | Details for ia_erp_dte-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ia_erp_dte-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for ia_erp_dte-1.0.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / ia_erp_dte-1.0.0.tar.gz
| Download URL | ia_erp_dte-1.0.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dd9da44c3be7472b7f498895c6fc8be989e0d70a7eab746790dff513b695005
|
|
BLAKE2b-256 checksum How to use checksums |
907488004fc3cf33cc918b76813e17d6b634254320573330f00f6b77853365fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logRelease files / ia_erp_dte-1.0.0-py3-none-any.whl
| Download URL | ia_erp_dte-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70c3fdc49de09d90d2617d45f1b4a8f3ec13a88871da461f1f9b27301986357d
|
|
BLAKE2b-256 checksum How to use checksums |
4e7f48f1fe90f919ab4ce6d5b9819b521b147dbb0ef60b3da4dc6d3705b79712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Dec 1, 2026.
Transparency logSecurity for ia-erp-dte 1.0.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.
Attestation for ia_erp_dte-1.0.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 Dec 1, 2026.
Transparency logA 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.