
Illustration. Real screenshots are added when the app is finished.
Coming soonIntermediateComplete app + source code
AI SQL Analyst
Turn natural-language questions into SQL for your own database, CSV or Excel files. A React interface and a FastAPI backend explain each query in plain English, check that it only reads data, run it, and show the results as a table and a chart that you can export to CSV.
from ₹499 at launch
One-time payment · 3 editions · licence · not on sale yet
- Type
- Complete app + source code
- Level
- Intermediate
- Delivery
- Private download in My Purchases
- Licence
- Personal licence or Commercial licence
- Runs on
- Python 3.11 or newer · Windows, macOS or Linux
- Memory
- 2 GB
- You need
- An API key from Groq, Gemini or OpenAI (demo mode works without one); Your own database, CSV or Excel file (a sample database is included)
For: Data analysts and Python developers
- AI Data Analytics
- AI Automation
- Python Applications
Overview¶
What it is
Ask questions in plain English and get SQL, an explanation, results, charts and a CSV export.
The problem it solves
Answering a business question usually means waiting for someone who knows SQL and the database. This app lets anyone ask in plain English, while showing the generated SQL and refusing anything that would change data.
Who it's for
Data analysts and Python developers · Intermediate level · Complete app + source code
What you get out of it
- Answers from your own database without writing SQL
- Every query shown and explained, so results can be checked and learned from
- Read-only safety checks before anything runs
- A full-stack data-plus-GenAI portfolio project
Key features¶
This app is in development. These are the features of the finished app; the exact file list is confirmed before it goes on sale.
What it does
- Ask questions in plain English, including follow-up questions
- Upload CSV, Excel or SQLite files, or connect to PostgreSQL and MySQL
- See the SQL and a plain-English explanation, then edit and rerun it
- Automatic charts, summary numbers and sortable tables
- Export results to CSV
- Browse the schema, add business notes and revisit query history
- Dark and light themes, plus a demo mode that needs no API key
Technical capabilities
- Schema-aware prompt built from tables, columns and keys; result rows are not sent to the AI
- Parsed SQL validation that allows one read-only query and enforces a row limit
- Read-only sessions and time limits for SQLite, PostgreSQL and MySQL
- Automatic repair of failed queries, with up to two retries
- FastAPI backend with live progress, and a React interface with charts
Architecture¶
flowchart LR
U[User] -->|question| UI[React app]
UI --> API[FastAPI]
API --> S[Schema and prompt]
S --> L[Groq, Gemini or OpenAI]
L -->|SQL + explanation| V{Validator: read-only query}
V -->|blocked| UI
V -->|safe| X[Read-only runner]
X --> D[(Your database)]
X -.->|error: retry| L
X --> R[Table, chart, CSV]
R --> UI
Data flow
- The backend reads the database structure (tables, columns, keys).
- The question, structure and your business notes go to the model, which returns SQL and an explanation.
- The validator rejects anything that is not a single read-only query and adds a row limit.
- Safe SQL runs on a read-only session; if it fails, the error goes back to the model to fix.
- The React app shows the SQL, the explanation, a table and a chart, with CSV export.
Backend components
- FastAPI routes with a live progress stream
- Database connectors (SQLAlchemy) with read-only sessions
- SQL validator, query runner and local history
AI components
- Schema-aware prompt builder
- One interface for Groq, Gemini and OpenAI, with automatic query repair
Technology stack¶
| Technology | What it does here |
|---|---|
| Python | Backend language |
| FastAPI | API and live progress stream |
| React | Web interface |
| SQLAlchemy | Connects to SQLite, PostgreSQL or MySQL |
| sqlglot | Parses SQL for the safety check |
| Groq, Gemini, OpenAI | LLM for SQL generation and explanations |
| Recharts | Charts |
Installation guide (preview)¶
The full setup tutorial comes with every edition. Here's what it walks you through.
- Check the requirements in the table below: Python 3.11 or newer, 2 GB of memory, and the API keys listed.
- Download your edition from My Purchases and unzip it.
- Create a virtual environment in the project folder and activate it:
python -m venv .venv, then.venv\Scripts\activateon Windows orsource .venv/bin/activateon macOS and Linux. - Install the pinned packages:
pip install -r requirements.txt. - Add your settings: copy
.env.exampleto.envand fill in your keys (how to manage API keys):- An API key from Groq, Gemini or OpenAI (demo mode works without one)
- Your own database, CSV or Excel file (a sample database is included)
- Start the app with the command in the README. The setup tutorial included with every edition walks through the first run and a quick test.
System requirements
| Python | Python 3.11 or newer |
|---|---|
| Memory (RAM) | 2 GB |
| Disk space | About 200 MB with dependencies |
| Python packages | fastapi uvicorn sqlalchemy sqlglot openpyxl httpx pydantic-settings psycopg PyMySQL |
| API keys and services | An API key from Groq, Gemini or OpenAI (demo mode works without one) Your own database, CSV or Excel file (a sample database is included) |
| Operating system | Windows, macOS or Linux |
Source code preview¶
A preview of the source code (the project structure and what each key file does) will be added here before the app goes on sale. Until then, Free Text-to-SQL guide shows working code for the same idea.
Deployment guide¶
- Developer Edition: includes a Dockerfile with docker-compose.yml and a deployment guide with the settings to change for production.
- Learner Edition, Career Edition: made to run on your own computer; you can still deploy it yourself with the free guides below.
- Keep secrets out of the code: set the values from your
.envfile as environment variables or secrets on the host. - Package it: build a container image (how to Dockerize a Python AI app) or use the host's Python runtime.
- Deploy and check it: open the app, send one real request and watch the logs for errors (deploy AI apps for free).
What you receive¶
Everything is delivered as a private download in My Purchases after payment. Nothing paid is ever public on this site.
| What you get | Learner | Career | Developer |
|---|---|---|---|
| Complete source code (ZIP)The whole application: backend, frontend and configuration, organised as a real project. | ✓ | ✓ | ✓ |
| READMEWhat the app does, how the code is organised and how to run it. | ✓ | ✓ | ✓ |
| Requirements filerequirements.txt with pinned versions, so installs are repeatable. | ✓ | ✓ | ✓ |
| Environment example.env.example listing every setting and API key, with safe defaults. | ✓ | ✓ | ✓ |
| Setup tutorialStep-by-step guide from download to a running app on Windows, macOS or Linux. | ✓ | ✓ | ✓ |
| User guide (Word)An illustrated Word document that shows how to install and use the app. | ✓ | ✓ | ✓ |
| Architecture diagramThe diagram on this page as an image, plus the source to edit it. | – | ✓ | ✓ |
| Architecture walkthroughWhy each component exists and how a request flows through the code. | – | ✓ | ✓ |
| Code tour for interviewsWhich files to open in an interview, what to say about each and the follow-up questions to expect. | – | ✓ | ✓ |
| Practice exercises with solutionsChanges to make yourself, from easy to advanced, each with a check script and a solution. | – | ✓ | ✓ |
| Interview Q&AQuestions interviewers ask about a project like this, with model answers. | – | ✓ | ✓ |
| Resume bullet pointsReady-to-adapt bullet points describing the project for your resume. | – | ✓ | ✓ |
| Docker configurationDockerfile and docker-compose.yml to run it in containers. | – | – | ✓ |
| Test casesAutomated tests (pytest) for the main features. | – | – | ✓ |
| Deployment guideHow to deploy it to a cloud platform, with the settings to change for production. | – | – | ✓ |
Licence and support¶
Personal licence
Use the code to learn, run it for yourself and show it in your portfolio and interviews. You may not resell or redistribute the code, or use it in work for clients.
Comes with: Learner Edition, Career Edition
Commercial licence
Everything in the personal licence, plus use in your own commercial products and in work for clients. You may not resell or redistribute the source code itself, as-is or as a template.
Comes with: Developer Edition
- Learner Edition: Help by email if a file is missing or won't open.
- Career Edition: Help by email if a file is missing or won't open.
- Developer Edition: 30 days of email support for setup and code questions, plus help with file problems.
Full wording: Licence information · Refund policy
Pricing¶
Learner Edition
₹499 one-time · at launch
Learn how it works and run it yourself.
- Complete source code (ZIP)
- README
- Requirements file
- Environment example
- Setup tutorial
- User guide (Word)
Not available at the moment.
Career Edition
₹999 one-time · at launch
Everything to present it in interviews and on your resume.
- Complete source code (ZIP)
- README
- Requirements file
- Environment example
- Setup tutorial
- User guide (Word)
- Architecture diagram
- Architecture walkthrough
- Code tour for interviews
- Practice exercises with solutions
- Interview Q&A
- Resume bullet points
Not available at the moment.
Developer Edition
₹1,999 one-time · at launch
Production extras and a commercial licence for client work.
- Complete source code (ZIP)
- README
- Requirements file
- Environment example
- Setup tutorial
- User guide (Word)
- Architecture diagram
- Architecture walkthrough
- Code tour for interviews
- Practice exercises with solutions
- Interview Q&A
- Resume bullet points
- Docker configuration
- Test cases
- Deployment guide
Not available at the moment.
Prices are in Indian rupees, one-time, with no subscription. Not on sale yet: "Notify me" adds you to the launch list for this app. Payment is handled by Razorpay (UPI, cards, netbanking); your files appear in My Purchases right after payment.
FAQ¶
When can I buy it?
It's in development and not on sale yet. Leave your email below and you'll get one email when it launches.
Which edition should I choose?
Learner if you want to study the code and run it yourself. Career if you'll present it in interviews or on your resume: it adds the architecture walkthrough, interview Q&A and resume bullet points. Developer if you'll use it in client or commercial work: it adds Docker, tests, a deployment guide, a commercial licence and 30 days of email support.
How will I receive the files?
After payment you'll get a private download of the ZIP for your edition. Paid files are never public on this site.
Does it include API keys or hosting?
No. You'll use your own API keys (see System requirements) and run it on your own machine or server.
Can I use it for client work?
Only with the Developer Edition's commercial licence. See Licence information.
Can I get a refund?
See the Refund & Cancellation Policy. It will be updated with the terms for source code before any app goes on sale.
I have a question that isn't answered here.
Use the contact page or email aiwithpriyabrat@gmail.com. We reply within 2 working days.
Related applications¶
Get AI SQL Analyst at launch
It's in development. Leave your email and you'll get one message when it goes on sale, from ₹499. No spam.
It's on sale now. Pick the edition that fits and pay securely with Razorpay; your files appear in My Purchases.