This project has been archived by its maintainers, and is no longer receiving any updates.
QueryView
Project skeleton: Python backend (FastAPI + SQLModel) + Vite + React + TypeScript SPA frontend with Tailwind CSS, plus Playwright end-to-end tests.
Layout
.
├── backend/ # Python FastAPI + SQLModel app exposing /api/* (queryview package)
├── frontend/ # Vite + React + TS + Tailwind v4 SPA (npm workspace)
├── e2e/ # Playwright (pytest) browser tests
├── pyproject.toml # Backend deps + console script + e2e `test` group (uv)
└── package.json # npm workspace root: dev orchestration + frontend build
Prerequisites
- uv — runs the Python backend and the Playwright (pytest) e2e suite (it manages the Python toolchain and dependencies for you).
- Node.js 20+ (with npm) — runs the root tasks and the Vite frontend.
npm runs the frontend and the root task scripts; uv handles the backend's and e2e suite's Python virtualenv and dependencies.
Install
Install the backend's Python dependencies (uv reads the root pyproject.toml;
the package lives in backend/queryview):
uv sync
Install the JavaScript dependencies for the frontend workspace:
npm install
Install the e2e tooling (the test dependency group) and fetch the Playwright
browser:
uv sync --group test
uv run --group test playwright install chromium
Run dev servers
Run backend and frontend together:
npm run dev
Or individually:
npm run backend # uvicorn --reload on http://localhost:8000
npm run frontend # http://localhost:5173
The Vite dev server proxies /api/* to the FastAPI backend, so the SPA can call the API on the same origin.
Build & preview production
npm run build # produces frontend/dist/
npm run start # SERVE_STATIC=1, FastAPI serves dist/ + /api on :8000
npm run preview # build && start in one shot
In production there is no Vite — the FastAPI backend serves the bundled SPA from frontend/dist/ and falls back to index.html for any unknown non-/api path so client-side routing works. Override the dist location with STATIC_ROOT=/path/to/dist.
End-to-end tests
The e2e suite is pytest-playwright,
installed via the test dependency group and run through uv.
Start the dev servers (npm run dev) in one terminal, then in another:
uv run --group test pytest
Override the target URL with BASE_URL=http://localhost:4173 uv run --group test pytest (e.g. to test a built preview). To run the full suite against a real ClickHouse the way CI does, use scripts/setup.sh.
Release to PyPI
The Publish to PyPI workflow (.github/workflows/publish.yaml, manual
dispatch with a vX.Y.Z tag input) builds the SPA into the wheel
(queryview/static/), then gates the release on the installed wheel: an HTTP
smoke test, the packaged backend test suite (pytest --pyargs queryview), and
the Playwright e2e suite driving the packaged server (skippable via the
skip-e2e input for emergencies). It then publishes
aaibina via PyPI trusted publishing,
pushes the tag, and creates the GitHub release. The package version comes
from the tag (no version bump in pyproject.toml).
An installed wheel serves the bundled UI by default:
pip install aaibina
aaibina # API + SPA on http://localhost:8000
API
See docs/api.md for the full endpoint reference.
The single-page prompt UI is described in docs/queryview.md;
connecting (new <type> / connect <name>), SQLite persistence, and session
auto-connect are specified in docs/connect.md.
Connections are stored in SQLite (backend/queryview.db, override with
DB_PATH); the backend writes that file and a local password-encryption key
(backend/queryview.db.key, override with DB_KEY_PATH).
Release files for aaibina 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aaibina-0.0.1.tar.gz | 362.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aaibina-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 546.1 kB
Release files / aaibina-0.0.1.tar.gz
| Download URL | aaibina-0.0.1.tar.gz |
|---|---|
| Size | 362.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a8b354423ac3d532fe6b7159200bfc289c4ac8f0d8435bead44a852bc984195
|
|
BLAKE2b-256 checksum How to use checksums |
0f000392aa93896c2dd3d118b38f14234584d1d0fe1ab34450aad6874c9ef2a8
|
| 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 8, 2026.
Transparency logRelease files / aaibina-0.0.1-py3-none-any.whl
| Download URL | aaibina-0.0.1-py3-none-any.whl |
|---|---|
| Size | 183.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0d279f680b49de69d0378b5674f4912dc736f97a139d580c02408fa06b6b6b5
|
|
BLAKE2b-256 checksum How to use checksums |
be4ad19b5c9cc4ab5ee34519c58c2a3970327a44071ca2c34f05e7592d6b6cf3
|
| 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 8, 2026.
Transparency log