test-multi-scripts / test_uv_script_v2.py
davanstrien's picture
davanstrien HF Staff
Upload test_uv_script_v2.py with huggingface_hub
d3f9119 verified
raw
history blame contribute delete
604 Bytes
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "httpx",
# ]
# ///
"""Advanced UV script demonstrating table updates."""
import httpx
import sys
def main():
print("Hello from UV script v2!")
print(f"Python version: {sys.version}")
print(f"Command line args: {sys.argv[1:]}")
# Test that dependencies work
with httpx.Client() as client:
response = client.get("https://api.github.com")
print(f"GitHub API status (via httpx): {response.status_code}")
print("✅ Script v2 completed successfully!")
if __name__ == "__main__":
main()