Skip to main content

Python SDK for Factur-X Engine — generate and validate Factur-X, ZUGFeRD, XRechnung invoices via a local Docker API

Project description

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

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

facturx_engine-0.1.0.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

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

facturx_engine-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file facturx_engine-0.1.0.tar.gz.

File metadata

  • Download URL: facturx_engine-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for facturx_engine-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57ea3f2081d26783fbae8b61d95c385a04ca316e8d29957b38f76433fcb1ddfb
MD5 62a016e0ec2b1073a1d8837dda872551
BLAKE2b-256 43cd33d662d4fbf9d5a3e21404ace438fc2b9f13950e355ae6c0b8a85602c981

See more details on using hashes here.

File details

Details for the file facturx_engine-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: facturx_engine-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for facturx_engine-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0bfe80745054b402b74728a0dedecb85781bf5b330e2566169c4388489e1dd9
MD5 9c38d72d4cd496838e9b4134590fb6f8
BLAKE2b-256 22b1c079a9519f3d5698c4b6e65484080395ff125820d26fff9d71eb1de02d10

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