Upload test_uv_script_v2.py with huggingface_hub
Browse files- test_uv_script_v2.py +25 -0
test_uv_script_v2.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# /// script
|
2 |
+
# requires-python = ">=3.10"
|
3 |
+
# dependencies = [
|
4 |
+
# "httpx",
|
5 |
+
# ]
|
6 |
+
# ///
|
7 |
+
"""Advanced UV script demonstrating table updates."""
|
8 |
+
|
9 |
+
import httpx
|
10 |
+
import sys
|
11 |
+
|
12 |
+
def main():
|
13 |
+
print("Hello from UV script v2!")
|
14 |
+
print(f"Python version: {sys.version}")
|
15 |
+
print(f"Command line args: {sys.argv[1:]}")
|
16 |
+
|
17 |
+
# Test that dependencies work
|
18 |
+
with httpx.Client() as client:
|
19 |
+
response = client.get("https://api.github.com")
|
20 |
+
print(f"GitHub API status (via httpx): {response.status_code}")
|
21 |
+
|
22 |
+
print("✅ Script v2 completed successfully!")
|
23 |
+
|
24 |
+
if __name__ == "__main__":
|
25 |
+
main()
|