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.3.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.3-py3-none-any.whl (171.4 kB view details)

Uploaded Python 3

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

Hashes for gerador_danfse-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9bc2fc4f1d4383370b094ed671a0177b71294feb2cad675fd7128fa1d517d944
MD5 20f1874f71a659b88f2959914e2fc613
BLAKE2b-256 72065eb3c5f63df7dcdc34ce1f088bc0d975f3202ce997368976c60b6d950c97

See more details on using hashes here.

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

Hashes for gerador_danfse-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15d768eef195d6915081bc333401ae0c5618ee866bdf4e0a6960963e5e014b1c
MD5 d00ace15c05467499373488d2e101bfc
BLAKE2b-256 8c8dbe5c79d7074f06b56945c31df26dbee4c5fe2bd585a8a57723e3eb74958e

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