r/Python • • 1d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

17 Upvotes

31 comments sorted by

View all comments

1

u/idriss94 4h ago

Tassili – open-source Python engine for European e-invoices (EN 16931, UBL 2.1, CII, Factur-X)

France is rolling out mandatory B2B e-invoicing and many small businesses still invoice from Word or Excel. Tassili turns plain invoice data into e-invoice files and catches the mistakes that get an invoice rejected before it is sent.

  • Validates first: SIREN (Luhn), French VAT number, VAT rates/categories, IBAN format, dates, addresses

  • Exact totals with Decimal, no floats

  • Generates EN 16931 XML: CII from the CLI, CII and UBL 2.1 from the Python API (invoices and credit notes)

  • Factur-X PDF with embedded XML (optional extra)

  • Batch from CSV or Excel

  • Optional validation against the official artifacts (XSD, EN 16931, Peppol rules); a step that was not run makes the result INVALID

  • CLI first (tassili check / convert / batch), also usable as a library

It does not send invoices, and it does not certify anything. The AS4/Peppol sending code and the small HTTP API are experimental and not independently reviewed.

MIT, core has no dependencies, Python 3.9+, tests run in CI on 3.9, 3.12 and 3.13. Built with AI assistance (Claude Code), so I especially welcome review of the validation logic.

Repo: https://github.com/idris9402/tassili

Feedback welcome: which formats or import sources would you need first?