For years, pipx did almost all the work that I needed it to do for safely running utility scripts.
uv has replaced that for me, and has replaced most other tools that I used with the (tiny amount of) Python that I write for production.