Skip to main content

Approximate, streaming SQL engine

Project description

📊 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statql-0.3.0.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statql-0.3.0-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

Details for the file statql-0.3.0.tar.gz.

File metadata

  • Download URL: statql-0.3.0.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/5.15.154+

File hashes

Hashes for statql-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d99f2a596ec65ec6961dddb7069ba08826e33b5bffd1cca9ea0103d06008ca5d
MD5 1b06fdc3083478a1b7397a0e93b2a57f
BLAKE2b-256 ebd6ab9b5c009a825370e3cd47df6505502963cd75f8236dc16deb7a2c494374

See more details on using hashes here.

File details

Details for the file statql-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: statql-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 60.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.10 Linux/5.15.154+

File hashes

Hashes for statql-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53b8dc261e9039fd5b07e1a51d32ea58369c0d083167bf5640c445798aebf737
MD5 0e07ec9c625013f57fe4e210122e9422
BLAKE2b-256 57cf8ae8fd7f14300b072f5b83be76cb4ce8ed16d466dc8211c725bde08b6ddf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page