Download pyproject.toml from Vignesh38/meta-hack: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/spaces/Vignesh38/meta-hack/resolve/main/pyproject.toml
- Command line
-
hf download hf://spaces/Vignesh38/meta-hack/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/spaces/Vignesh38/meta-hack/resolve/main/pyproject.toml
2.57 kB
| [build-system] | |
| requires = ["setuptools>=68", "wheel"] | |
| build-backend = "setuptools.backends.legacy:build" | |
| [project] | |
| name = "prompt-injection-triage-env" | |
| version = "1.0.0" | |
| description = "OpenEnv RL environment for training AI agents to detect, classify, and mitigate prompt injection attacks." | |
| readme = "README.md" | |
| license = { text = "Apache-2.0" } | |
| requires-python = ">=3.11" | |
| authors = [ | |
| { name = "Muhammed Al Hameed M" }, | |
| { name = "Vignesh Anbalagan" }, | |
| { name = "A. Shameer" }, | |
| ] | |
| keywords = ["prompt-injection", "ai-safety", "reinforcement-learning", "openenv", "cybersecurity"] | |
| # ββ Dependencies βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| dependencies = [ | |
| "openenv-core>=0.2.0", # required by openenv validate | |
| "fastapi==0.135.3", | |
| "uvicorn[standard]==0.43.0", | |
| "pydantic==2.12.5", | |
| "openai==2.30.0", | |
| "httpx==0.28.1", | |
| "gradio==6.11.0", | |
| ] | |
| [project.optional-dependencies] | |
| test = [ | |
| "pytest==9.0.2", | |
| "pytest-asyncio==1.3.0", | |
| "anyio==4.13.0", | |
| ] | |
| # ββ Entry points βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # "server" script is required by openenv validate multi-mode check | |
| [project.scripts] | |
| server = "server.app:main" | |
| [tool.setuptools.packages.find] | |
| where = ["."] | |
| include = ["server*"] | |
| # ββ OpenEnv multi-mode deployment βββββββββββββββββββββββββββββββββββββββββββββ | |
| [tool.openenv] | |
| name = "prompt-injection-triage-env" | |
| version = "1.0.0" | |
| [tool.openenv.modes.server] | |
| description = "FastAPI environment server (RL loop endpoints: /reset /step /state /health)" | |
| command = "uvicorn server.app:app --host 0.0.0.0 --port 7860" | |
| port = 7860 | |
| health_check = "/health" | |
| [tool.openenv.modes.ui] | |
| description = "Gradio visual interface for judges" | |
| command = "python app.py" | |
| port = 7862 | |
| [tool.openenv.modes.inference] | |
| description = "Baseline inference agent" | |
| command = "python inference.py" | |
| # ββ Pytest ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| [tool.pytest.ini_options] | |
| asyncio_mode = "auto" | |
| testpaths = ["tests"] | |
| python_files = ["test_*.py"] | |
| python_classes = ["Test*"] | |
| python_functions = ["test_*"] | |