Generate DANFSe PDF (auxiliary NFS-e document) from Brazilian NFS-e XML.
Project description
gerador-danfse
Python library to generate a DANFSe (Documento Auxiliar da NFS-e) single-page A4 PDF from a Brazilian NFS-e XML.
Install
pip install gerador-danfse
Usage (library)
from gerador_danfse import generate_danfse_pdf
generate_danfse_pdf("invoice.xml", "danfse.pdf")
Usage (CLI)
danfse generate invoice.xml danfse.pdf
Status
This is an initial minimal implementation:
- Reads an XML file
- Extracts a few common NFS-e fields (best-effort)
- Generates a simple PDF layout on A4
The codebase is organized in layers so it can evolve to full compliance with the official DANFSe spec (layout blocks, QR Code, watermark, conditional sections, etc.).
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
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 gerador_danfse-1.0.3.tar.gz.
File metadata
- Download URL: gerador_danfse-1.0.3.tar.gz
- Upload date:
- Size: 158.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc2fc4f1d4383370b094ed671a0177b71294feb2cad675fd7128fa1d517d944
|
|
| MD5 |
20f1874f71a659b88f2959914e2fc613
|
|
| BLAKE2b-256 |
72065eb3c5f63df7dcdc34ce1f088bc0d975f3202ce997368976c60b6d950c97
|
File details
Details for the file gerador_danfse-1.0.3-py3-none-any.whl.
File metadata
- Download URL: gerador_danfse-1.0.3-py3-none-any.whl
- Upload date:
- Size: 171.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d768eef195d6915081bc333401ae0c5618ee866bdf4e0a6960963e5e014b1c
|
|
| MD5 |
d00ace15c05467499373488d2e101bfc
|
|
| BLAKE2b-256 |
8c8dbe5c79d7074f06b56945c31df26dbee4c5fe2bd585a8a57723e3eb74958e
|