SDK oficial do Emitti para Python — emissão de NFS-e
Project description
emitti (Python)
SDK oficial do Emitti para Python (>= 3.9).
pip install emitti
from emitti import Emitti, verificar_webhook
cli = Emitti(api_key="sk_live_...")
nota = cli.emitir({
"prestador": {"cnpj": "12345678000190", "inscricao_municipal": "1122334"},
"tomador": {"razao_social": "Cliente X", "cnpj": "98765432000110"},
"servico": {
"codigo_municipio": "3550308", "codigo_servico": "01.05",
"discriminacao": "Plano SaaS", "valor_servicos": 499.90, "aliquota_iss": 2,
},
})
# nota["emissao_id"], nota["status"] == "QUEUED"
cli.consultar(nota["emissao_id"])
cli.cancelar(nota["emissao_id"])
cli.substituir(nota["emissao_id"], { ... })
xml = cli.baixar_xml(nota["emissao_id"])
pdf = cli.baixar_pdf(nota["emissao_id"]) # bytes
Webhooks
# no seu handler (use o corpo CRU)
if not verificar_webhook(raw_body, request.headers["X-Emitti-Signature"], WEBHOOK_SECRET):
abort(400)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
emitti-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file emitti-0.1.0.tar.gz.
File metadata
- Download URL: emitti-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
284328f128ca9f776b1a66139e7824766022d8954d82050e0742ba503c9ab588
|
|
| MD5 |
dac44c303f3287f19e2d8bdf34214605
|
|
| BLAKE2b-256 |
7f0efc017a50881eaf2734963cfab7f6ccb01cf6efd452bd1f722fa55c43688b
|
File details
Details for the file emitti-0.1.0-py3-none-any.whl.
File metadata
- Download URL: emitti-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c5882aad60988c9fce68f59ac50a6ab59019dc1c0b0c66b80969d9450ca6898
|
|
| MD5 |
7fc585be31d071b61ccddcd635329edb
|
|
| BLAKE2b-256 |
2f4b4656e2ca112cef794d7f29f47ef5cfd4babffb5043e3d09190ed6ad289d1
|