mirror of
https://github.com/zvx-echo6/central.git
synced 2026-05-21 18:14:44 +02:00
Central - data hub spine. Adapters -> NATS/JetStream -> archive.
- Python 90.5%
- HTML 9.1%
- PLpgSQL 0.4%
feat(gui): generic adapter edit form - Add form_descriptors.py with describe_fields() for Pydantic-to-HTML mapping - Update routes.py with generic GET/POST handlers using field descriptors - Delete per-adapter templates (nws, firms, usgs_quake) - Adding new adapters no longer requires GUI template work db: add last_error column to adapters table - Migration 015 with IF NOT EXISTS for idempotency refactor(gui): clean up flagged issues - Move discover_adapters to adapter_discovery.py (GUI no longer imports nats) - Use dynamic cadence validation via AdapterConfig field constraint (ge=10) - Remove dead code in form_descriptors.py refactor(wizard): use dynamic cadence validation - Wizard POST handler uses same dynamic pattern as edit form |
||
|---|---|---|
| docs | ||
| etc-templates | ||
| scripts | ||
| sql | ||
| src/central | ||
| systemd | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Central
Central is the data hub spine for the infrastructure. Adapters normalize upstream sources into a canonical event shape, publish CloudEvents to NATS/JetStream, and archive to TimescaleDB for historical query. Single-LXC deployment.
Status
Phase 0 — scaffold. Not yet operational.
Architecture
- Python 3.12 (uv-managed)
- NATS + JetStream for live event bus
- TimescaleDB + PostGIS for archive and geospatial query
- One supervisor process managing adapter lifecycle
- One archive consumer process persisting events to TimescaleDB
- Both processes systemd-managed
Testing
See docs/test-database.md for test database setup.
License
MIT. See LICENSE.