quai
Interactive Quarb — a session REPL where every line becomes a reusable query.
pip install quai
quai data.json
quai opens a session over one or more sources and holds it. Each
line you run is labelled &1, &2, … — and every label is a
reusable macro: not the printed value, but the query that produced
it, ready to continue through the pipe. It is the notebook loop, cell
by cell, except a cell is a path into your data.
&1 /teams/*/members/*
/teams/0/members/0 ⋮ (every member, across all teams, one path)
&2 &1 | [/langs/*:: = 'Go'] | /name::
ada
eu
&3 &1 @| count
6
&Nre-runs line N; continue with a pipe (&N | /key::,&N | [pred],&N @| count).&N#replays line N's output frozen, as it was when it ran.def &x: … ;adds a named fragment;:history,:reset,:help,:quitare the commands.
The engine rides in on the quarb dependency, so quai
reaches every local source quarb does — JSON, YAML, TOML, CSV, XML,
HTML, Markdown, SQLite, kaiv, the filesystem, git, archives, XLSX, and
source code — and several at once mount under one root for
cross-source <=> joins.
Try it in the browser at demo.quarb.org/quai (no install), and read the graph cookbook for the recipes.
License
Licensed under either of Apache License, Version 2.0 or the MIT license at your option.
Metadata
Release files for quai 0.22.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 | |
|---|---|---|---|
| quai-0.22.0.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quai-0.22.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.0 kB
Release files / quai-0.22.0.tar.gz
| Download URL | quai-0.22.0.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec07e205eec19b759f9cdf2e53dea1005dd254d242dc3c2ca0734d755ebab267
|
|
BLAKE2b-256 checksum How to use checksums |
f3d502984b51d964643f5489a0eb38ca42da96f23bf9583643b9877b0d0130d0
|
| 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 Aug 5, 2026.
Transparency logRelease files / quai-0.22.0-py3-none-any.whl
| Download URL | quai-0.22.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
83f791788cf603cdb3c22d852aef0c5bbed03aef77c031cc0469bba7d4d79db5
|
|
BLAKE2b-256 checksum How to use checksums |
47db0c674f4a059c46b8d2148202b5f0b0de32bd8e229d3be4a59cef97ed1b66
|
| 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 Aug 5, 2026.
Transparency log