Python API reference

Reference for the backend package app, generated from the docstrings. There is one page per module. Narrative pages link here with :mod: rather than repeating what the docstrings say.

Top-level modules

Application wiring, configuration and cross-cutting helpers. Everything that is not part of a package below lives here.

Authentication

Bearer-token validation, the dev-token path, push tokens and the role-based permission rules.

Domain

The pure domain core: record parsing, validation, hashing and the approval rules. It does no I/O.

Routers

The HTTP layer. Each module owns one group of routes and delegates to services.

Schemas

Pydantic request and response models of the HTTP API.

Services

Business orchestration over the domain, the source ports and the storage port.

Sources

The provider-neutral source port and its filesystem and GitLab adapters.

Storage

The storage port and its PostgreSQL implementation.