Metadata-Version: 2.4
Name: jatszoter-api
Version: 1.0.0
Summary: Control plane for jatszoter: agents, scenarios, deployments, links and recordings
License-Expression: MIT
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: alembic>=1.20.0
Requires-Dist: fakeredis>=2.40.0
Requires-Dist: fastapi>=0.149.0
Requires-Dist: httpx>=0.28.1
Requires-Dist: jsonschema>=4.26.0
Requires-Dist: pydantic-settings>=2.16.0
Requires-Dist: python-multipart>=0.0.32
Requires-Dist: python-statemachine>=3.2.2
Requires-Dist: pyyaml>=6.0.3
Requires-Dist: sqlmodel>=0.0.48
Requires-Dist: valkey>=6.2.0
Provides-Extra: server
Requires-Dist: psycopg[binary]>=3.3.6; extra == "server"
Requires-Dist: uvicorn[standard]>=0.54.0; extra == "server"

# jatszoter-api

The control plane of jatszoter, a self-hosted training and exam stand for
Linux troubleshooting. It is a [FastAPI](https://fastapi.tiangolo.com/) app
that keeps agents, leases, scenarios, deployments, links, recordings and
checks, and applies its database migrations when it starts.

## Install

```bash
pip install "jatszoter-api[server]"
```

## Run

```bash
export JATSZOTER_DATABASE_DSN="sqlite:///jatszoter.db"
export JATSZOTER_MASTER_KEYS='{"alpha": "<64 hex characters>"}'
export JATSZOTER_MASTER_KID=alpha
uvicorn --factory jatszoter_api.app:create_app --host 0.0.0.0 --port 8080
```

## Container

```bash
docker run --rm -p 8080:8080 \
    -e JATSZOTER_DATABASE_DSN -e JATSZOTER_MASTER_KEYS -e JATSZOTER_MASTER_KID \
    ghcr.io/<owner>/jatszoter-api:latest
```

The architecture and every setting are described in `docs/project/` of the
repository.
