Spaces:
Running
Running
Download engine_requirements.py from mertkayacs/postkitty-api: direct link, hf CLI and curl.
- Browser
- Download file 379 Bytes
-
https://huggingface.co/spaces/mertkayacs/postkitty-api/resolve/main/engine_requirements.py
- Command line
-
hf download hf://spaces/mertkayacs/postkitty-api/engine_requirements.py
-
curl -L -o engine_requirements.py https://huggingface.co/spaces/mertkayacs/postkitty-api/resolve/main/engine_requirements.py
379 Bytes
| """Print the Python packages an engine checkout asks for, one per line, from its pyproject.toml. | |
| python engine_requirements.py /path/to/postkitty > engine-requirements.txt | |
| """ | |
| import sys | |
| import tomllib | |
| from pathlib import Path | |
| project = tomllib.loads((Path(sys.argv[1]) / "pyproject.toml").read_text(encoding="utf-8"))["project"] | |
| print("\n".join(project["dependencies"])) | |