Skip to main content

OpenFatture

OpenFatture is an agentic, CLI-first workspace for Italian electronic invoicing. Describe the work you need; the assistant coordinates the domain tools and returns an auditable result.

Why

Italian freelancers must issue invoices as FatturaPA XML and deliver them through SDI. The usual answer is a SaaS subscription that owns your client list, your invoices, and your archive. OpenFatture keeps all of it local: your data stays in a database on your machine, the XML is generated and validated offline, and every action is recorded in an event audit trail you can inspect. AI assistance is optional — the domain tools work without it.

Built for one-person businesses and small studios comfortable in a terminal.

Start

# Full stack (AI + RAG + ML + …). Core-only: uv sync
uv sync --all-extras
uv run openfatture init
uv run openfatture status
uv run openfatture assistant "Help me prepare an invoice for a software project"

Optional feature extras: ai, rag, ml, all. See docs/CONFIGURATION.md.

For a terminal conversation:

uv run openfatture interactive start

Public CLI

The supported surface is intentionally small:

  • init creates local state and guides setup.
  • assistant handles business requests in natural language.
  • interactive start opens a conversational session.
  • config reads or updates configuration.
  • status reports local readiness without mutation.

See docs/CLI_REFERENCE.md.

What it covers

  • FatturaPA XML generation and validation
  • PEC/SDI delivery and notification processing
  • Client, invoice, quote, payment, and batch workflows
  • Event audit trail, reports, and hooks
  • Optional AI assistance (assistant + domain tools), RAG, and forecasting extras

Status

Version 2.2.0, Python 3.12+ and uv. Professional PDF templates, first-class CLI commands, FatturaPA XML validation, and natura/DatiCassaPrevidenziale support shipped in 2.2 — see docs/STATUS.md, docs/releases/v2.2.0.md, and docs/ARCHITECTURE.md.

Explicit non-goal: there is no browser frontend or web application surface, and adding one would be a separate product decision.

Documentation

Development

uv sync --all-extras
uv run python -m pytest -q
uv run ruff check .
uv run ruff format --check .
uv run mypy openfatture/

OpenFatture is released under the MIT License.

Release files for openfatture 2.2.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 openfatture 2.2.0
File Size Uploaded
openfatture-2.2.0.tar.gz 1.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for openfatture 2.2.0
File Interpreter ABI Platform
openfatture-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.1 MB

Release files / openfatture-2.2.0.tar.gz

Download URL openfatture-2.2.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
524acc71d762de7ab823fbd3af4bc9dea4846dd99096982bf6125ce53d8b22fd
BLAKE2b-256 checksum
How to use checksums
a9d6d842cc3abb0d0a8fb8fdefddc40c82086fe39749c8970e192f17dbd5592b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / openfatture-2.2.0-py3-none-any.whl

Download URL openfatture-2.2.0-py3-none-any.whl
Size 689.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
764f3cebf1fe72d227066adf745103c8680938addb317cc3cd1598bbba259ca2
BLAKE2b-256 checksum
How to use checksums
970c72ef17126ec2360aabd183f81fa8000491bd7db48c046595d6757d385dc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

2.3.0

2 release files

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.3.1

2 release files

1.1.0

2 release files

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