How lucasmichalikdev/invoice_automation works
Invoice Automation API accepts PDF invoice uploads, extracts text and invoice fields, categorizes and validates the extracted data, then stores invoice details in SQLite. The same REST API supports listing, retrieving, and deleting invoices. The graph separates the API boundary, processing stages, and persistence. Relationships are based on the shown calls in app/main.py and app/processor.py; the README documents the REST endpoints. The Docker and test setup is not part of the runtime workflow.
Main entry points: main.py Invoice routes · databaseSQLite.py Invoice storage operations · processor.py Field extraction
Components 8
REST API
- Invoice routes
app/main.py
Invoice Processing
- PDF text extraction
app/processor.py - Field extraction
app/processor.py - Categorization
app/processor.py - Validation
app/processor.py
Persistence
- Invoice storage operations
app/databaseSQLite.py - SQLite invoice database
app/databaseSQLite.py
Other components
- API client
Connections 11
- API client → Invoice routes: calls endpoints
README.md - Invoice routes → PDF text extraction: extracts text
app/main.py - Invoice routes → Field extraction: extracts fields
app/main.py - Field extraction → Categorization: categorizes amount
app/processor.py - Field extraction → Validation: validates fields
app/processor.py - Invoice routes → Invoice storage operations: saves invoice
app/main.py - Invoice routes → Invoice storage operations: lists invoices
app/main.py - Invoice routes → Invoice storage operations: gets invoice
app/main.py - Invoice routes → Invoice storage operations: deletes invoice
app/main.py - Invoice routes → Invoice storage operations: initializes storage
app/main.py - Invoice storage operations → SQLite invoice database: reads and writes
app/databaseSQLite.py