r/Python • • 22d ago

Showcase Showcase Thread

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

Recycles once a month.

28 Upvotes

159 comments sorted by

View all comments

1

u/facturarapida_es26 15d ago

I built a small offline invoicing tool in pure Python stdlib for Spanish businesses (~500 lines, zero dependencies, MIT).

  • Validates NIF/CIF/NIE (Spanish fiscal IDs) and rejects the invoice if a client's ID is mistyped.
  • Computes IVA (21/10/4/0%), tax base and per-rate breakdown, formatted the Spanish way (121,00 €).
  • Loads line items from a semicolon-separated CSV (the one Excel-ES opens natively).
  • Outputs an A4 HTML invoice -> Ctrl+P -> save as PDF. No cloud, no telemetry, no subscription.

Self-test: python factura.py --test. Source + guide + tutorial: https://payhip.com/b/5JhQO

Happy to answer questions about the NIF validation logic or the HTML template.