To run a python script which has dependencies, with uv without extra steps, just execute it.
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = [<array of string names of required modules>]
# ///
# and the rest of the script goes here.