How torn1apart/salesreportlab works
Sales Report Lab is a Streamlit application for processing purchase-delivery batches and comparing full daily-report rebuilds with incremental updates, including duplicate deliveries and late purchases. Users select the demo CSV or upload a CSV, process or replay batches, and inspect daily totals and timing comparisons. A companion experiment tool generates streams, verifies results against SQLite, benchmarks runtime and memory, and writes result artifacts. The app and core source are excerpted; experiment excerpts are partial, so links for its omitted command handling and output details rely only on the visible code.
Main entry points: app.py Streamlit app · experiments.py Benchmark runner · core.py Full rebuild · demo.csv Demo CSV
Components 12
Interactive reporting
- Streamlit app
app.py - Demo CSV
data/demo.csv
Sales processing
- CSV batch loader
sales/data.py - Full rebuild
sales/core.py - Incremental report
sales/core.py
Experiments
- Benchmark runner
experiments.py - Stream generator
experiments.py - Correctness checks
experiments.py - Time and memory
experiments.py - Benchmark results
results
Other components
- User
- SQLite oracle
Connections 14
- User → Streamlit app: uses
app.py - Streamlit app → Demo CSV: reads
app.py - Streamlit app → CSV batch loader: loads batches
app.py - Streamlit app → Full rebuild: rebuilds report
app.py - Streamlit app → Incremental report: applies batch
app.py - Benchmark runner → Stream generator: creates cases
experiments.py - Benchmark runner → Correctness checks: checks results
experiments.py - Benchmark runner → Time and memory: measures methods
experiments.py - Correctness checks → SQLite oracle: compares totals
experiments.py - Correctness checks → Incremental report: checks updates
experiments.py - Correctness checks → Full rebuild: checks rebuild
experiments.py - Time and memory → Incremental report: times updates
experiments.py - Time and memory → Full rebuild: times rebuilds
experiments.py - Benchmark runner → Benchmark results: writes results
experiments.py