Python 3.10+ · FastAPI · LangChain · PydanticAI · Django
Controlli Regolamento IA per Python e FastAPI
- 0 deps pip: spurvik_guard.py (stdlib)
- Log HMAC-SHA256 GDPR · 0 byte prompt
- Gate Art. 14 + badge.js in 24 lingue
Ospitato a Francoforte (fra1) · blocco 400 raw_content_rejected · MIT
Cockpit Python e FastAPI
fra1 · HMAC-SHA2561 · Scegli il tuo stack Python
2 · Lingua UE del visitatore
badge.js · it Stai interagendo con un'IA
3 · Piano Console
Avviso IA Art. 50(1) frontend · Backend inputHash: 9f3c…a41e (0 byte di prompt)
Le risposte sono generate automaticamente da un sistema di IA.
Anteprima Pro attiva: sblocca POST /api/v1/hitl (coda approvazione Art. 14), 90 giorni a Francoforte, riepilogo RPD/DPO (.md) e badge.js white-label:
from fastapi import FastAPI
from openai import OpenAI
from spurvik_guard import art50_badge_html, send_telemetry_event
app, ai = FastAPI(), OpenAI()
@app.post("/api/chat")
def chat(prompt: str) -> dict:
res = ai.chat.completions.create(model="gpt-4o", messages=[{"role": "user", "content": prompt}])
reply = res.choices[0].message.content or ""
send_telemetry_event(prompt, reply, model_provider="openai", model_version="gpt-4o")
return {"reply": reply, "badge": art50_badge_html(system_name="FastAPI Copilot", locale="it")}
0 extra pip deps · sends keyed HMAC-SHA256 digests to fra1
Aggiungi coda HITL + White-label · 19 €/meseTre controlli del Regolamento IA per backend Python
- 1
Scansiona i file
.pylocalmente connpx spurvik audit . - 2
Registra digest HMAC-SHA256 a Francoforte (
POST /api/v1/telemetry, 0 byte di prompt) - 3
Blocca rimborsi, cancellazioni e invii tramite
request_human_approval()+badge.js
Perché i CTO Python e RPD/DPO scelgono Spurvik rispetto ai log in chiaro
| Control | Log APM / print standard | spurvik_guard.py + Vault Francoforte |
|---|---|---|
| Prompt e dati personali (GDPR) | Prompt in chiaro nei log | Solo HMAC-SHA256 con chiave (HTTP 400 su testo grezzo) |
| Dipendenze pip aggiuntive | Wheel pesanti OpenTelemetry / Rust | 0 pacchetti pip (stdlib Python 3.10+) |
| Gate umano preventivo Art. 14 | DB custom + webhook Slack | POST /api/v1/hitl (solo nomi campi, Pro/Team) |
| Avviso IA frontend Art. 50(1) | Build frontend separato | art50_badge_html() in 24 lingue UE |
| Consegna a RPD e acquisti | Fogli di calcolo manuali | Report RPD .md (Pro) · Bozza Allegato IV (Team) |
Domande frequenti: Python, FastAPI e LangChain per il Regolamento IA
Spurvik funziona con Python, FastAPI, LangChain, PydanticAI e Django senza Node.js in produzione?
Sì. Inserisci spurvik_guard.py (spurvik.com/r/spurvik_guard.py, MIT, solo stdlib Python 3.10+) nel tuo servizio FastAPI, Django, LangChain o PydanticAI. Calcola i digest HMAC-SHA256 localmente con SPURVIK_CONTENT_HASH_SECRET e li invia a https://console.spurvik.com/api/v1/telemetry senza Node.js né pacchetti pip aggiuntivi.
I testi dei prompt, le risposte o i dati personali lasciano il nostro server Python?
No. SPURVIK_CONTENT_HASH_SECRET resta sul tuo server (>= 16 byte) e genera digest HMAC-SHA256 da 64 caratteri (inputHash, outputHash). L’endpoint di Francoforte rifiuta qualsiasi testo grezzo con HTTP 400 raw_content_rejected.
npx spurvik audit può scansionare repository Python (.py)?
Sì. npx -y spurvik@1.0.16 audit . scansiona offline file .py, .ts, .tsx e .js in locale o in GitHub Actions.
Quale piano scegliere per un team SaaS B2B in Python?
Free (0 €) include 10.000 eventi/mese e 30 giorni a Francoforte. Pro (19 €/mese o 190 €/anno) aggiunge 250.000 eventi/mese, 90 giorni, la coda Art. 14 (POST /api/v1/hitl), il riepilogo RPD (.md) e badge.js white-label. Team (79 €/mese o 790 €/anno) aggiunge 2.000.000 eventi/mese, 12 mesi, export webhook e la bozza dell’Allegato IV. Chiavi in mano (199 € una tantum) consegna una PR Python in 24h con 1 anno Pro incluso.