| # /// 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() |