Skip to main content

Factur-X: electronic invoicing standard for Germany & France

Project description

Factur-X Python library

Factur-X is the e-invoicing standard for France and Germany. The Factur-X specifications are available on the FNFE-MPE website. The Factur-X standard is also called ZUGFeRD 2.0 in Germany.

The main feature of this Python library is to generate Factur-X invoices from a regular PDF invoice and a Factur-X compliant XML file.

This lib provides additionnal features such as:

  • extract the Factur-X XML file from a Factur-X PDF invoice,

  • check a Factur-X XML file against the official XML Schema Definition.

Some of the features provided by this lib also work for ZUGFeRD 1.0 (the ancestor of the Factur-X standard).

Installation

sudo pip install --upgrade factur-x

Usage

from facturx import generate_facturx

facturx_pdf_invoice = generate_facturx(regular_pdf_invoice, facturx_xml_file)

To have more examples, look at the source code of the command line tools located in the bin subdirectory.

Command line tools

Several command line tools are provided with this lib:

  • facturx-pdfgen: generate a Factur-X PDF invoice from a regular PDF invoice and an XML file

  • facturx-pdfextractxml: extract the Factur-X XML file from a Factur-X PDF invoice

  • facturx-xmlcheck: check a Factur-X XML file against the official Factur-X XML Schema Definition

All these commande line tools have a -h option that explains how to use them and shows all the available options.

Licence

This library is published under the BSD licence (same licence as PyPDF2 on which this lib depends).

Contributors

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

factur-x-0.2.tar.gz (19.4 kB view details)

Uploaded Source

File details

Details for the file factur-x-0.2.tar.gz.

File metadata

  • Download URL: factur-x-0.2.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for factur-x-0.2.tar.gz
Algorithm Hash digest
SHA256 f99b46a735952cff7a7226f4fc1832c475df9190db485966fcb7786134ad5d4e
MD5 d2453c075b825bcc1f4c925a0303448b
BLAKE2b-256 040c8b50f5631a48b8a7080cc3d5173db96747b773318d1ba3885f9c49847014

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page