Skip to main content

📊 StatQL

StatQL is a desktop‑first SQL engine that streams fast, approximate answers from your data sources - without spinning up a server.

Initial release ships with connectors for PostgreSQL, Neo4j, Redis and the local Filesystem. More catalogs - cloud object storage, OLAP warehouses, REST APIs - are on the roadmap.


Quick start

To launch StatQL, install it and start up the local server:

pip install statql
python -m statql            # launches the Streamlit server

Then in your browser, navigate to http://localhost:8501

Integrate your data sources in the Integrations page, then start running your queries!


Usage examples

StatQL emits a fresh result table every 0.5 – 1 s. Each numeric cell is formatted as value ± error, where error is the absolute 95 % confidence‑interval half‑width. As more of the population is sampled, the estimates tighten.

1️⃣ Row count per order status (single table)

SELECT l_linestatus, COUNT() AS rows
FROM pg.local.tpch.public.lineitem
GROUP BY l_linestatus;
l_linestatus rows
F 3 172 481 ± 46 892.7
O 3 181 633 ± 46 744.2

2️⃣ Total PNG footprint in /data/images (filesystem)

SELECT divide(SUM(size), 1_073_741_824) AS gib
FROM fs.media_fs.entries
WHERE get_file_ext(path) = 'png';
gib
118.6 ± 5.3

3️⃣ Row counts across all databases in a cluster (wildcards)

SELECT @db, COUNT() AS rows
FROM pg.us-cluster-4.?.public.lineitem
GROUP BY @db
ORDER BY rows DESC;
@db rows
sales 12 945 002 ± 99 811.4
hr 6 088 551 ± 74 225.9
… …

Video Tutorial

StatQL Tutorial

👉 Full docs → docs/index.md

Metadata

Release files for statql 0.3.0

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

Source distribution (sdist)

Source distribution for statql 0.3.0
File Size Uploaded
statql-0.3.0.tar.gz 37.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for statql 0.3.0
File Interpreter ABI Platform
statql-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.5 kB

Release files / statql-0.3.0.tar.gz

Download URL statql-0.3.0.tar.gz
Size 37.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d99f2a596ec65ec6961dddb7069ba08826e33b5bffd1cca9ea0103d06008ca5d
BLAKE2b-256 checksum
How to use checksums
ebd6ab9b5c009a825370e3cd47df6505502963cd75f8236dc16deb7a2c494374
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.10 Linux/5.15.154+

Release files / statql-0.3.0-py3-none-any.whl

Download URL statql-0.3.0-py3-none-any.whl
Size 60.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53b8dc261e9039fd5b07e1a51d32ea58369c0d083167bf5640c445798aebf737
BLAKE2b-256 checksum
How to use checksums
57cf8ae8fd7f14300b072f5b83be76cb4ce8ed16d466dc8211c725bde08b6ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.10 Linux/5.15.154+

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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