diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-09-19 17:58:05 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-09-19 17:58:05 +0200 |
| commit | 1ec316035ce9aa656dd18a05889856bce9e3aba3 (patch) | |
| tree | b50e97f50d485ef2a88ce36fe4d7511d9fe3e288 /poc/spike2_hub.py | |
| parent | 171a3e175889ce30f201fcdf5c4632f480344ae6 (diff) | |
| parent | 95dd3dc13aecec85c2fd72410cd4d1f4ed582dfa (diff) | |
| download | meshbay-1ec316035ce9aa656dd18a05889856bce9e3aba3.tar.gz | |
Merge origin/main: the tree-wide ruff pass beside the Music reconnect work
Diffstat (limited to 'poc/spike2_hub.py')
| -rw-r--r-- | poc/spike2_hub.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/poc/spike2_hub.py b/poc/spike2_hub.py index f8c1b08..a0ebd6f 100644 --- a/poc/spike2_hub.py +++ b/poc/spike2_hub.py @@ -4,10 +4,15 @@ Minimal FastAPI hub: user registration, JWT issuance, node announcement. In-memory storage only — not persistent across restarts. """ -from fastapi import FastAPI, HTTPException, Depends, Header -from pydantic import BaseModel +import base64 +import os +import time +import uuid + +import jwt from cryptography.hazmat.primitives.kdf.argon2 import Argon2id -import jwt, uuid, os, time, base64 +from fastapi import Depends, FastAPI, Header, HTTPException +from pydantic import BaseModel app = FastAPI(title="MeshBay Hub POC", version="0.1.0") |