Skip to main content

🧠 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:

  1. Enter a CSV or Excel file path
  2. Select sheets (Excel only)
  3. Map your metric and dimension columns
  4. 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

What's New in v0.2.2

  • /export — save the last query result to CSV or Excel
    • /export → auto-named timestamped CSV
    • /export myfile.csv or /export myfile.xlsx → custom name and format
    • The original query is embedded in the exported file (comment lines in CSV, header cells in Excel)
  • All files saved to ~/querymind_sessions/

What's New in v0.2.0

  • /profile — instant dataset profile: row count, column types, null %, unique counts, min/avg/max stats per column. For Excel files shows overall summary + per-sheet breakdown.
  • /history — shows your last 5 queries inline in the TUI with the path to the full log
  • Persistent session history — every query saved to ~/querymind_sessions/querymind_history.md across all sessions forever
  • Sort order fix — "lowest sales in descending order" now correctly highlights the minimum while sorting high→low
  • Integer display fix — IDs like customer_id no longer show as 553.0

Session History

Every query and answer is automatically saved to:

~/querymind_sessions/querymind_history.md

This is a single persistent Markdown file — all sessions across all datasets append to it. Open it in any editor or view it on GitHub.

Inside the TUI, type /history to see your last 5 queries and the file path.


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

Metadata

Release files for querymind-cli 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for querymind-cli 0.2.2
File Size Uploaded Provenance Actions
querymind_cli-0.2.2.tar.gz 48.5 kB Without provenance Details for querymind_cli-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for querymind-cli 0.2.2
File Interpreter ABI Platform Actions
querymind_cli-0.2.2-py3-none-any.whl Python 3 none any Details for querymind_cli-0.2.2-py3-none-any.whl

Total release size: 104.9 kB

Release files / querymind_cli-0.2.2.tar.gz

Download URL querymind_cli-0.2.2.tar.gz
Size 48.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ebb9ff6546ced8aacbe05660f5c84c96a78a5e021abd5e682c0f970170ca3d14
BLAKE2b-256 checksum
How to use checksums
0ec6229c4999daf8399a214ce21a83db01e4add74d1fccac256505fc58cfd0f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / querymind_cli-0.2.2-py3-none-any.whl

Download URL querymind_cli-0.2.2-py3-none-any.whl
Size 56.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44532751ee98c1a70b3372de2a989b81a9e88f804d63bce8ebd2962169ea42ff
BLAKE2b-256 checksum
How to use checksums
dbdcbfe599a9b1b3546d94c5d222e36e90d1eb1c0eb2c5840bf89388d1cc228a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for querymind-cli 0.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page