https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...
Plus inline deps mean you can pin python versions and 3rd party modules using pyproject.toml syntax in a comment of your script. This is not perfect locking, as it doesn't pin sub dependencies, but it's already more that any other tool out there.
If you want perfect locking, create a project, and use uv lock. You are already in a different category of code.
BiteCode_dev•2h ago
No? Well, you can:
uv run https://pastebin.com/raw/RrEWSA5F
And since yesterday, you can even run a github gist:
uv run https://gist.github.com/charliermarsh/ea9eab7f56b1b3d41e5196...
unglaublich•41m ago
> print("hi")' | uv run -
> curl https://pastebin.com/raw/RrEWSA5F | uv run -