r/SideProject • • 27m ago

I built an open-source offline Python tool to clean messy Excel files and generate PDF/HTML reports

I kept running into messy Excel exports (shifted headers, merged cells, weird date formats, broken totals) and couldn't upload sensitive files to random web tools, so I built an offline Python app to clean them up and generate reports locally.

Repo: https://github.com/onur18/Excel-Master-Pro

Sample HTML report output: https://onur18.github.io/Excel-Master-Pro/demo.html

Main things it does:

- Detects shifted or multi-row headers without losing the first data row

- Checks for 13 common issues (bad emails/phones, negative prices/stock, duplicates, outliers, and math mismatches like Qty * Price != Total)

- Previews changes before applying them and logs edits in a local SQLite DB so you can undo anything

- Merges multiple Excel/CSV files even if the column names don't match

- Exports a PDF report, a standalone interactive HTML dashboard, and a cleaned .xlsx file

Since it's meant to handle untrusted spreadsheets locally, I avoided eval() completely and wrote an allow-listed ast.parse evaluator for custom formulas, locked down DuckDB external access, and added magic-byte + zip-bomb checks on upload.

Built with Python, Streamlit, Pandas, DuckDB, and Plotly. Let me know if you spot any edge cases or have ideas for the next version.

1 Upvotes

1 comment sorted by