I collect my notes on uv, from release coverage and Python CLI development to discussions of its broader effects and AI-assisted utility scripts. These workflows connect to python packaging and development and installing python cli tools.
I called @treyhunner’s post about uv run a great post, sharing it as an example of using uv for standalone Python scripts with dependencies.
I shared custom instructions I use with Claude Artifacts to produce mobile-friendly, single-page HTML apps that run without a build step; this is another way I use uv alongside my single file web tool patterns.
@treyhunner’s standalone-script example uses this `uv run` shebang:
#!/usr/bin/env -S uv run --quiet --script
# /// script
# dependencies = [
# "openai==0.27.2",
# ]
# ///
I suggested an alternative way to try the o1 development branch of my LLM project: uvx --with http''s://github.com/simonw/llm/archive/refs/heads/o1.zip llm -m o1 hi. I presented this as something that might work, not as a confirmed result; this connects to my notes on openai reasoning models.
I praised Aider’s unconventional installation mechanism as kind of brilliant because it addresses the isolated Python virtual environment problem by bundling uv as a dependency.
I found a recipe I like for running uvx tool-name in GitHub Actions without downloading a fresh copy of the package every time.
I shared @treyhunner’s post at https://t.co/E8bfC2RQYZ.
I linked to my earlier post about Claude Artifacts at https://t.co/PXqLfKIvPL.
I also shared the link included in @treyhunner’s quoted post: https://t.co/2Sf6EHI8Nx.
I linked to my notes on Aider’s installation mechanism at https://t.co/V8NnVDXsWE and https://t.co/95FsVeHIXu.
I shared the recipe for caching uvx in GitHub Actions at https://t.co/YgvhD1giFZ.
I published some more detailed notes on the huge new uv release, framed as “Cargo, for Python.”
I described a Mastodon conversation about uv and its risks and benefits for Python overall as very high quality.
I gathered notes and illustrative quotes about that conversation and shared them.
I finally have a procedure in place I like for hacking on Python CLI apps, using a development environment managed by uv.
I figured out a prompting pattern for getting Claude to produce fully self-contained Python scripts that execute with “uv run” and use PEP 723 inline script dependencies.
With that prompting pattern, I can one-shot useful Python tools.
My CLI development procedure and Claude-generated scripts are different ways I use uv in Python development; the latter pairs uv run with PEP 723 inline script dependencies.
Related: testing python projects with uv, installing python cli tools, everyday llm tooling