Python- + HTTP-API
Dasselbe Vokabular auf beiden Seiten. Pydantic-Modelle auf der Leitung; FullOutput-Pydantic in Python. OpenAPI-Spezifikation automatisch generiert unter /openapi.json.
Python (in-process)
# Submit a SMILES, get a signed .mfsig.json
curl -X POST https://api.mfsig.com/v1/sigma_profile \
-H "Authorization: Bearer $MFSIG_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"smiles": "CC(=O)Oc1ccccc1C(=O)O",
"tier": "pro",
"solvent": "water"
}'
# → 202 Accepted
# { "job_id":"job_8K2…", "status":"queued",
# "eta_s": 22 }HTTP (FastAPI-Service)
# Poll, or supply a webhook_url and we POST on completion.
curl https://api.mfsig.com/v1/jobs/job_8K2... \
-H "Authorization: Bearer $MFSIG_API_KEY"
# → 200 OK
# { "status": "done",
# "mfsig_url":"https://mfsig.com/d/aspirin.mfsig.json",
# "sha256": "e3b0c44298fc1c14...",
# "gates": {"scf":true,"sigma":true,"audit":true,
# "geometry":true} }Routen
Liveness-Probe. Gibt immer 200 zurück, wenn der Prozess läuft. Als Kubernetes-livenessProbe verwenden.
Readiness-Probe. 503, wenn kein Backend importierbar ist.
Verfügbarkeitsmatrix der Stufen: Pro / Platinum / Reference + Versionen + Presets.
Die Hauptroute – σ-Profil für ein SMILES. Pro- / Platinum- / Reference-Stufen mit vollem Optionsvokabular.
Konformer-Ensemble-σ-Profil für flexible Gerüste. Boltzmann-gewichtete Ausgabe. Derselbe .mfsig-Audit-Trail pro Molekül.
Vendor-.cosmo → MolForge-FullOutput-JSON. Inhalt inline oder über server_path übergeben. Vendor automatisch erkennen oder explizit angeben.
MolForge-JSON → Vendor-Textformat. Turbomole / COSMOtherm σ / JSON / CSV.
Serverseitige Batch-Verzeichnismigration. Idempotent, fortsetzbar, Diagnostik pro Datei im ConversionReport.
Verpackt ein σ-Profil-Ergebnis in .mfsig.json v2.0-apex – SHA-256-Audit + Reproduzierbarkeit + optionaler legacy_vault.
Verifiziert den SHA-256-Trust-Hash. Manipulationssicher.
Maschinenlesbare OpenAPI-3.x-Spezifikation.
Swagger-UI für interaktive Erkundung.
Redoc-UI für lesefreundliches Durchstöbern.
Authentifizierung + Sicherheit
Observability
{
"ts": "2026-05-12T01:24:01Z",
"level": "INFO",
"logger": "molforge_sigma.api",
"msg": "sigma_profile smiles='O' method='dft' wall=12.4s n_atoms=3 n_segments=1432"
}