FreeSimpleSQL
A modern, user-friendly SQL database browser and query tool powered by AI. FreeSimpleSQL simplifies database interactions with a clean interface, AI-assisted query generation, and powerful visualization features.
✨ Features
- AI SQL Generator: Describe your query in plain English (e.g., "Show me messages grouped by type") and let the AI generate the SQL for you.
- Intuitive Interface: Clean, dark-themed UI built with FreeSimpleGUI.
- Smart Query History:
- Automatically saves your queries and AI prompts.
- Access previous queries from a dropdown list.
- Persists history across sessions (up to 300 records).
- Dynamic Data Table:
- Automatically adjusts columns based on your query results.
- Handles complex queries, aggregations, and joins.
- Pagination support for large datasets.
- Export to CSV: One-click copy of table data to clipboard.
- Detailed Record View:
- Select any row to view full details.
- JSON View: Pretty-printed JSON view for complex data fields.
- Plain Text View: Clean key-value pair display.
- Keyboard Shortcuts: speed up your workflow with intuitive hotkeys.
Alt-P: Focus AI PromptAlt-G: Generate & Apply SQLAlt-S: Execute QueryAlt-Q: Focus Query Editor
- Database Management:
- Import/Export SQLite databases via the File menu.
- Theme selection support.
🚀 Getting Started
Prerequisites
- Python 3.8+
uvpackage manager (recommended) orpip
Installation
-
Clone the repository:
git clone <repository_url> cd freesimplesql
-
Install dependencies:
uv sync # or pip install -r requirements.txt
-
Run the application:
uv run -m freesimplesql # or python -m freesimplesql
📖 Usage Guide
1. AI SQL Generation
- Press
Alt-Pto focus the AI Prompt box. - Type your request (e.g., "Count total messages per source IP").
- Press
Alt-G. The system will generate the SQL and automatically place it in the query editor. - Press
Alt-Sto execute.
2. Manual Querying
- Press
Alt-Qto focus the SQL editor. - Type your SQL query (e.g.,
SELECT * FROM message WHERE sn > 100). - Click Search or press
Alt-S.
3. Using History
- Select a previous query from the History dropdown above the query editor.
- The editor will populate with the query AND the original AI prompt used to create it (if applicable).
4. Configuration
- AI Settings: Go to
AI -> LLM Settingsto configure your API key and preferred model. - Themes: Change the visual style via the
Thememenu.
🛠️ Technology Stack
- GUI: FreeSimpleGUI
- Database: SQLite via SQLModel & SQLAlchemy
- Data Handling: Pandas (internal usage)
- AI Integration: OpenRouter API compatible
📝 License
This project is open-source and available under the MIT License.
Metadata
Release files for freesimplesql 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| freesimplesql-0.3.0.tar.gz | 121.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| freesimplesql-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 133.3 kB
Release files / freesimplesql-0.3.0.tar.gz
| Download URL | freesimplesql-0.3.0.tar.gz |
|---|---|
| Size | 121.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36aecebf439b6a758ab32a1c64484cf221d7d0168d2c7ce10153879914289532
|
|
BLAKE2b-256 checksum How to use checksums |
97983b88d013f9e191d0859198889c9b76b340cfdf32c476f924bff11a07bd15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|
Release files / freesimplesql-0.3.0-py3-none-any.whl
| Download URL | freesimplesql-0.3.0-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ff02e93d9099f57d8d61a130055f95ba99e7f092044a18c1841d283382fd8af
|
|
BLAKE2b-256 checksum How to use checksums |
17e45dfbeefce12528fdf29bef4a111684c5fd29bcac4bcd4392987bb7abf124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.25
|