Remix.run Logo
athrowaway3z 3 hours 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 3 hours ago | parent [-]

Huh. I just tell Claude “write a self contained uv script” and it does that fine by itself.