# ---------------------------------------------------------------------------
# NETORYX backend dependencies
# Getestet mit Python 3.10 - 3.12 (Ubuntu 22.04 / 24.04)
# ---------------------------------------------------------------------------

# --- Web framework / ASGI -------------------------------------------------
fastapi==0.162.0
# Paket vom 05.11.2026: Starlette ausdruecklich festgelegt (bekannte Luecken bis 1.3.0)
starlette==1.7.0
uvicorn[standard]==0.34.0
python-multipart==0.0.32

# --- Konfiguration / Validierung -----------------------------------------
pydantic==2.10.4
pydantic-settings==2.7.0
email-validator==2.2.0

# --- Persistenz -----------------------------------------------------------
SQLAlchemy==2.0.36

# --- Security -------------------------------------------------------------
PyJWT==2.15.1
bcrypt==4.2.1
cryptography==50.0.2          # Secrets in der DB, verschluesselte Sicherungen, Zertifikate
pyzipper==0.4.0               # passwortgeschuetzte Downloads (AES-256-ZIP)

# --- Anmeldung & Zugriff (v1.2) -------------------------------------------
# Beide reines Python. Fehlen sie, laeuft NETORYX trotzdem: ohne ldap3 ist
# die AD-Anbindung abgeschaltet, ohne segno zeigt die Zwei-Faktor-Einrichtung
# statt des QR-Codes das Geheimnis zum Abtippen. SSO (OIDC) und Duo Security
# (Auth API, signiert mit HMAC-SHA512) nutzen PyJWT + httpx.
ldap3==2.9.1                  # Active Directory / LDAP
segno==1.6.1                  # QR-Code fuer die Authenticator-App

# --- Monitoring-Protokolle -------------------------------------------------
icmplib==3.0.4                # ICMP / PING
httpx==0.28.1                 # HTTP(S)-Checks + Webhooks
ntplib==0.4.0                 # NTP
pysnmp==7.1.16                # SNMP v1/v2c/v3
# WinRM (Windows-Updates, Ressourcen) per PowerShell-Remoting – ab 1.9.2 statt
# pywinrm (WinRS), damit ein Konto in "Remote Management Users" genuegt
pypsrp>=0.8,<1                # NTLM, HTTP verschluesselt / HTTPS
# SMTP + TCP nutzen die Python-Standardbibliothek (smtplib / socket)

# --- Sicherungen auf dem NAS (1.8.7) ---------------------------------------
# Reines Python (dazu pyspnego): SMB 2/3 ohne mount und ohne root. Fehlt es,
# laeuft NETORYX trotzdem – nur der NAS-Spiegel meldet einen Fehler.
smbprotocol>=1.13,<2

# --- Tests (optional, nur fuer Entwicklung) -------------------------------
pytest==9.2.0
