Get the latest tech news

Uv: Running a script with dependencies


A guide to using uv to run Python scripts, including support for inline dependency metadata, reproducible scripts, and more.

Typically, creating virtual environments is recommended to isolate packages required by each script. Python recently added a standard format for inline script metadata. uv supports locking dependencies for PEP 723 scripts using the uv.lock file format.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of script

script

Photo of Dependencies

Dependencies

Related news:

News photo

uv Running a Script with Dependencies

News photo

Supply chain attacks surge with orgs 'flying blind' about dependencies

News photo

Microsoft shares script to restore inetpub folder you shouldn’t delete