SQL Explorer lets you upload an Excel workbook and run ad-hoc SQL queries against its sheets (loaded into an in-memory SQLite DB) using a Flask web UI.
- Upload
.xlsx/.xlsfiles - Converts sheets to SQLite tables (sheet names used as table names)
- Run arbitrary SQL queries and view results
- Inspect table schemas in the sidebar
- Python 3.8+
- See
requirements.txtfor needed Python packages.
- Create and (optionally) activate a virtual environment:
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS / Linux
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the app:
python wsgi.py- Open http://127.0.0.1:5000.
- For
.xlsxfiles the app usesopenpyxlvia pandas. For older.xlsfilesxlrdis used. - Column names are normalized by trimming and replacing spaces with underscores.
- The app uses an in-memory SQLite database; nothing is written to disk.
requirements.txt— Python dependencies.gitignore— ignores virtual envs, caches and editor filesLICENSE— MIT licenseCONTRIBUTING.md— contribution guidelinesCODE_OF_CONDUCT.md— contribution conduct.github/workflows/python-app.yml— basic CI checksdocs/USAGE.md— extended usage notes
This project is released under the MIT License — see LICENSE.