CLI AI Data Analyst — query CSV and Excel files in plain English
Project description
🧠 QueryMind
Ask questions about your data in plain English. No SQL. No code. Just a terminal.
QueryMind is a CLI data analyst that lets you load a CSV or Excel file and query it conversationally — right in your terminal.
>> top 5 regions by sales
>> which month had the highest profit?
>> average spend by payment method in ascending order
>> show sales in sheet Orders by customer segment
Install
pip install querymind-cli
Requirements:
- Python 3.10+
- Ollama (optional — enables LLM fallback for complex queries)
If you want LLM support, install Ollama and pull the model:
ollama pull phi
Quickstart
querymind
You'll be prompted to:
- Enter a CSV or Excel file path
- Select sheets (Excel only)
- Map your metric and dimension columns
- Start asking questions
What it can do
| Query | What happens |
|---|---|
top 5 products by revenue |
Ranked bar chart in terminal |
which region had lowest sales |
Ascending comparison with insight |
average profit by category |
Mean aggregation per group |
sales trend over time monthly |
Monthly groupby on datetime column |
show sales in sheet Orders by region |
Sheet-scoped query |
which manager had the most sales |
Cross-sheet join (Orders + Users) |
sales by region in ascending order |
Explicit sort order |
Supported file formats
| Format | Extension |
|---|---|
| CSV | .csv, .tsv |
| Excel | .xlsx, .xls, .xlsm |
Auto-detects: encoding (UTF-8 BOM, latin-1), delimiter (comma, semicolon, tab, pipe), packed integer dates (DDMMYYYY, YYYYMMDD).
How it works
Your query
↓
InputGuard — blocks gibberish and sensitive input
↓
InterpreterAgent — rule-based intent extraction (fast, no LLM needed)
↓
LLMInterpreter — Ollama fallback for complex queries (optional)
↓
JoinResolver — auto-detects and performs cross-sheet joins
↓
Analyzer — pandas groupby / aggregation
↓
InsightGenerator — formats result + ASCII bar chart
Beta
QueryMind is in active development. If something breaks or a query gives a wrong answer, please open an issue with:
- Your query
- The column names in your file (no need to share actual data)
- The output you got
This feedback directly shapes what gets fixed next.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file querymind_cli-0.1.0.tar.gz.
File metadata
- Download URL: querymind_cli-0.1.0.tar.gz
- Upload date:
- Size: 34.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
133759aa5b8b19ec85bf6be2bdd9cb6467d1ce0bd20f2c68c7eca877464044a8
|
|
| MD5 |
58812fb6fe19b31c3f1cf0b4192ca8f7
|
|
| BLAKE2b-256 |
049b271e3ef352a457b02503cc2bd16c822823ebccdd4927dc48623bbeea9840
|
File details
Details for the file querymind_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: querymind_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0ec5b2d2e2138f52ae94a7cb7d7ae76c58ec7077db03d1e36361d06e21afc8d
|
|
| MD5 |
cf4f06387095799af0478a012274bc0d
|
|
| BLAKE2b-256 |
da42c741033349f424974d687c171db78eb9510ed2251fb605dfa9e43d4991a4
|