querychat 
QueryChat facilitates safe and reliable natural language exploration of tabular data, powered by SQL and large language models (LLMs). For analysts, it offers an intuitive web application where they can quickly ask questions of their data and receive verifiable data-driven answers. For software developers, QueryChat provides a comprehensive Python API to access core functionality -- including chat UI, generated SQL statements, resulting data, and more. This capability enables the seamless integration of natural language querying into bespoke data applications.
Installation
Install the latest stable release from PyPI:
pip install querychat
Web Framework Extras
querychat supports Gradio, Dash, and Streamlit. Install with the extras you need:
pip install "querychat[gradio]"
pip install "querychat[dash]"
pip install "querychat[streamlit]"
Or install directly from GitHub:
pip install "querychat[gradio] @ git+https://github.com/posit-dev/querychat"
Quick start
The main entry point is the QueryChat class. It requires a data source (e.g., pandas, polars, etc) and a name for the data.
from querychat import QueryChat
from querychat.data import titanic
qc = QueryChat(titanic(), "titanic")
app = qc.app()
# app.run()
Custom apps
Build your own custom web apps with natural language querying capabilities, such as this one which provides a bespoke interface for exploring Airbnb listings:
Learn more
See the website to learn more.
Metadata
Release files for querychat 0.9.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 | |
|---|---|---|---|
| querychat-0.9.0.tar.gz | 152.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| querychat-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 332.2 kB
Release files / querychat-0.9.0.tar.gz
| Download URL | querychat-0.9.0.tar.gz |
|---|---|
| Size | 152.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bffefcb76801bd6c231310644fb08de80d608c6f7ed92bd86c1a1995526946da
|
|
BLAKE2b-256 checksum How to use checksums |
a1387515b6505420281d26318fc51a1947258e7b49c56d327c79fc8449e151ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency logRelease files / querychat-0.9.0-py3-none-any.whl
| Download URL | querychat-0.9.0-py3-none-any.whl |
|---|---|
| Size | 180.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e8cc95d4579be2db0c6793524110aef78d1a557a144558e74a369637942a1cd
|
|
BLAKE2b-256 checksum How to use checksums |
80d92cbc5ed87268230795af7746d1824e5b3ac3f6c84b0c8cd34c8ae5c5935c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 13, 2026.
Transparency log