With this header, uv
automatically creates and manages a dedicated virtual environment for your script.
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "package-name>=1.0.0",
# "another-package",
# ]
# ///
# Rest of the script...