4 ms·
Half my visits to HN are to check out a comment that explains the right uv inline dep syntax #!/usr/bin/env -S uv run --script # /// script # dependen
by athrowaway3z 9mo ago
Half my visits to HN are to check out a comment that explains the right uv inline dep syntax
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests, rich
# ... script goes here`
so i can tell claude to write a self contained script it can later use.
- wrs 9mo agoHuh. I just tell Claude “write a self contained uv script” and it does that fine by itself.