Registry / data / factur-x

factur-x

JSON →
library4.2pypypi✓ verified 81d ago

A Python library for generating Factur-X (FR) and Order-X (DE) electronic invoices and orders in PDF/A-3 format with embedded XML. Current version 4.2, supports Python >=3.7. Release cadence is irregular.

pip install factur-x
INSTALL
IMPORT
SIG · FACTUR-X
F
factur-x
datapythonv4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

facturx
from facturx import facturx
from facturx import FacturX
generate_from_file
from facturx import generate_from_file
get_xml_from_pdf
from facturx import get_xml_from_pdf

Basic invoice generation from an XML file.

from facturx import FacturX # Create a Factur-X invoice invoice = FacturX( xml_file='invoice.xml', pdf_file='output.pdf', logo='logo.png', # optional ) invoice.generate() print('Invoice generated successfully')
Debug
Known issues
breakingVersion 4.0+ changed the API: removed the old `FacturX.generate()` without arguments. Now you must pass `xml_file` and `pdf_file`.
fix
Update calls to `FacturX(xml_file='...', pdf_file='...').generate()`
affects: >=4.0
deprecatedThe `pyPdf` dependency is deprecated. Use `PyPDF2` or `pypdf` as a drop-in replacement.
fix
Replace `pip install factur-x` with `pip install factur-x[pdf]` for pypdf, or manually install `pypdf`.
affects: >=4.0
gotchaThe XML file must comply with the Factur-X standard (e.g., EN 16931). Non-compliant XML will raise validation errors.
fix
Validate your XML against the Factur-X schema before passing to the library.
affects: all
Upgrade
Version history
4.2latest on PyPI · released Mar 23, 2026
Audit
Dependencies
lxmlrequiredXML processing for invoice XML
pyPdfrequiredPDF generation (legacy, consider replacement)
PillowoptionalImage handling for QR codes
Agent activity
36 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
factur-x — pip install factur-x · libregistry