Download test_uv_script.py from davanstrien/test-multi-scripts: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/datasets/davanstrien/test-multi-scripts/resolve/main/test_uv_script.py
- Command line
-
hf download hf://datasets/davanstrien/test-multi-scripts/test_uv_script.py
-
curl -L -o test_uv_script.py https://huggingface.co/datasets/davanstrien/test-multi-scripts/resolve/main/test_uv_script.py
545 Bytes
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "requests", | |
| # ] | |
| # /// | |
| """Test UV script for hfjobs uv run command.""" | |
| import requests | |
| import sys | |
| def main(): | |
| print("Hello from UV script!") | |
| print(f"Python version: {sys.version}") | |
| print(f"Command line args: {sys.argv[1:]}") | |
| # Test that dependencies work | |
| response = requests.get("https://api.github.com") | |
| print(f"GitHub API status: {response.status_code}") | |
| print("✅ Script completed successfully!") | |
| if __name__ == "__main__": | |
| main() |