Spaces:
Sleeping
Sleeping
Download fixture_generator.py from Humanlearning/CyberSecurity_OWASP: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/Humanlearning/CyberSecurity_OWASP/resolve/main/fixture_generator.py
- Command line
-
hf download hf://spaces/Humanlearning/CyberSecurity_OWASP/fixture_generator.py
-
curl -L -o fixture_generator.py https://huggingface.co/spaces/Humanlearning/CyberSecurity_OWASP/resolve/main/fixture_generator.py
537 Bytes
| """Fixture helpers for scenario compilers.""" | |
| from __future__ import annotations | |
| from typing import Any | |
| def visible_workspace_summary(files: list[str], public_hint: dict[str, Any]) -> dict[str, Any]: | |
| return { | |
| "framework": "fastapi_style_python", | |
| "editable_files": files, | |
| "routes": [ | |
| {"method": "GET", "path": "/health", "public": True}, | |
| {"method": "GET", "path": "/invoices/{invoice_id}", "public": False}, | |
| ], | |
| "domain": public_hint.get("domain", "invoices"), | |
| } | |