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.1.tar.gz (135.0 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.1-py3-none-any.whl (147.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gerador_danfse-1.0.1.tar.gz
  • Upload date:
  • Size: 135.0 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.1.tar.gz
Algorithm Hash digest
SHA256 53917bbf8947a51dd27941d64461c8510fac751b53e6f442672bd928249530e0
MD5 3bbf24e59d904f0b8fc0af5b07d88921
BLAKE2b-256 734e8f2216d7afd6382f2919bfd65091aa455cb349eb76492b3ce36e14de7339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gerador_danfse-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 147.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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fecddd2cc1a289a7bf5b63a0b3740d9f5e8b12cfc31fae0a346eb6bc8077d71
MD5 1ffa631bd9ff90ef2a443d135dedc7f0
BLAKE2b-256 ad1668cea57b87c464cb6f596ebc0696fcb06c1ecb8f7fb43e8f99e5f671ad7e

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