File size: 604 Bytes
d3f9119 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# /// 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() |