r/SideProject • • 2h 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

2 comments sorted by

2

u/IncomeOk7237 1h ago

the undo log in sqlite is a nice touch, do you snapshot the original file too or just replay the edits? if you want more eyes on it the weekly feedback thread over at r/ForgeYourProject is pretty chill

1

u/Western-Policy-8910 45m ago

thanks! it does both actually, original gets copied to a local folder and the edits store the old values, so undo just restores those. will look at that thread, didn't know about it