2026-08-04 15:17:15 +02:00
|
|
|
# `gabriel20xx-shared-backend`
|
|
|
|
|
|
|
|
|
|
Shared Python backend infrastructure for services using `asyncpg`:
|
|
|
|
|
|
|
|
|
|
- validated `DATABASE_URL` and pool settings;
|
|
|
|
|
- one async pool owner with ping and graceful shutdown;
|
|
|
|
|
- bcrypt password and secure session-token helpers;
|
2026-08-05 14:57:01 +02:00
|
|
|
- short-lived, one-time admin reset codes printed to the server console;
|
2026-08-04 15:17:15 +02:00
|
|
|
- common account/session persistence for the single-admin or optional multi-user model.
|
|
|
|
|
|
|
|
|
|
HTTP framework adapters stay in each service. Install this package from the
|
2026-08-06 16:55:51 +02:00
|
|
|
published index or directly from the shared repository with a subdirectory
|
2026-08-04 15:17:15 +02:00
|
|
|
install during development:
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-08-06 09:44:54 +02:00
|
|
|
pip install "git+https://repos.gfranz.ch/Gabriel20xx/shared@v0.1.0#subdirectory=packages/python-backend"
|
2026-08-04 15:17:15 +02:00
|
|
|
```
|