Comment

Comment by singularity2001

uv add --script wordlookup.py httpx

# /// script # requires-python = ">=3.13" # dependencies = [ # "httpx", # ] # ///

import httpx

That seems pretty redundant. Why can't UV just infer the dependencies from the import statements?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton