Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gerador_danfse-1.0.2.tar.gz (158.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gerador_danfse-1.0.2-py3-none-any.whl (171.2 kB view details)

Uploaded Python 3

File details

Details for the file gerador_danfse-1.0.2.tar.gz.

File metadata

  • Download URL: gerador_danfse-1.0.2.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

Hashes for gerador_danfse-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b66adc6233861648eab578f6a4ca0fc995d096413f057f9b92c8ca248857c2c6
MD5 82aeaf3c664dd2c20a07ce77b925f3ab
BLAKE2b-256 29eac002eda74545c6314020550cabe854d3d69f2a990dcc0b3f3d113e8d5cae

See more details on using hashes here.

File details

Details for the file gerador_danfse-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: gerador_danfse-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 171.2 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

Hashes for gerador_danfse-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b589a4eff5c100cdefe569f8a51b93c5c2512515a2a93a6505d2b6456401826
MD5 f5a2d2906a7bbc41d61d9f71afffd8d6
BLAKE2b-256 a7187be15ac2eb47d565c610ac39b05f7fe40eab2eecf525c18ad57d2401947f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page