Get the latest tech news

Fun with uv and PEP 723


How to use uv and the Python inline script metadata proposal PEP 723 to run scripts seamlessly.

If you are not a Pythonista (or one possibly living under a rock), uv is an extremely fast Python package and project manager, written in Rust. uvx takes care of creating a (cached) disposable virtual environment, setting up the right Python version and installing all the dependencies before running. We can combine things we covered in the previous sections to create a simple executable script that can extract YouTube transcripts.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PEP 723

PEP 723