Development¶
Prerequisites¶
- Python 3.12+
- uv package manager
Install Dependencies¶
This installs everything — dev tools, docs, UI, Flight SQL drivers, and type stubs.
Run Tests¶
uv run pytest # all tests
uv run pytest tests/unit/ # unit tests only
uv run pytest tests/integration/ # integration tests only
uv run pytest -k "test_revenue" # by name pattern
Code Quality¶
Build Documentation¶
Project Structure¶
src/orionbelt/
api/ REST API (FastAPI routers, middleware, schemas)
ast/ SQL AST node definitions (frozen dataclasses)
compiler/ Compilation pipeline (resolution, star, cfl, codegen)
dialect/ 8 SQL dialect implementations (self-registering)
models/ Pydantic v2 models (semantic model, query, errors)
obsl/ OBSL-Core RDF graph exporter and SPARQL engine
parser/ YAML loader, reference resolver, semantic validator
service/ Session manager, model store
ui/ Gradio web interface