Skip to main content

facturx-engine

Python SDK for Factur-X Engine — generate and validate Factur-X, ZUGFeRD 2.x, and XRechnung invoices via a self-hosted Docker API.

Install

pip install facturx-engine

Usage

from facturx_engine import FacturxEngine

client = FacturxEngine("http://localhost:8000")

# Generate EN 16931 CII XML
xml = client.generate_xml({
    "invoice_number": "INV-2025-001",
    "issue_date": "20250101",
    "seller": {"name": "My Company", "vat_number": "FR12345678901"},
    "buyer": {"name": "Customer GmbH"},
    "lines": [{"name": "Consulting", "net_price": 1000.0, "vat_rate": 20.0}],
    "amounts": {"grand_total": "1200.00"}
})

# Validate a Factur-X / ZUGFeRD / XRechnung file
result = client.validate("invoice.pdf")
print(result)

Requirements

Requires a running Factur-X Engine instance:

docker run -d -p 8000:8000 facturxengine/facturx-engine:latest

License

MIT

Metadata

Release files for facturx-engine 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for facturx-engine 0.1.0
File Size Uploaded Provenance Actions
facturx_engine-0.1.0.tar.gz 2.0 kB Without provenance Details for facturx_engine-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for facturx-engine 0.1.0
File Interpreter ABI Platform Actions
facturx_engine-0.1.0-py3-none-any.whl Python 3 none any Details for facturx_engine-0.1.0-py3-none-any.whl

Total release size: 4.5 kB

Release files / facturx_engine-0.1.0.tar.gz

Download URL facturx_engine-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
57ea3f2081d26783fbae8b61d95c385a04ca316e8d29957b38f76433fcb1ddfb
BLAKE2b-256 checksum
How to use checksums
43cd33d662d4fbf9d5a3e21404ace438fc2b9f13950e355ae6c0b8a85602c981
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / facturx_engine-0.1.0-py3-none-any.whl

Download URL facturx_engine-0.1.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0bfe80745054b402b74728a0dedecb85781bf5b330e2566169c4388489e1dd9
BLAKE2b-256 checksum
How to use checksums
22b1c079a9519f3d5698c4b6e65484080395ff125820d26fff9d71eb1de02d10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Security for facturx-engine 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page