Posts tagged: uv

All posts with the tag "uv"

7 posts latest post 2026-02-16
Publishing rhythm
Feb 2026 | 1 posts
uvx.sh | Astral Install Python tools with a single command. Powered by uv. uvx.sh [1] astral silently dropped a clever uvx.sh to help builders reach a wider audience, no longer does a user need to have python installed prior to installing a python cli. It does have a hard requirement on having curl or wget available. Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://uvx.sh/ [2]: /thoughts/
uv run for running tests on versions of Python Using uv run with make to replace tox or nox for testing multiple versions of Python locally. https://daniel.feldroy.com · daniel.feldroy.com [1] Such a fantastic use of uv, its so fast and flexible and does everything I need that next time I go to set up some more complex testing like this I’m going to lean towards it more than i would something like tox. In the post Daniel sets up matrix testing for testing out different versions of python with the same pytest test suite. Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://daniel.feldroy.com/posts/2025-07-uv-run-for-testing-python-versions [2]: /thoughts/
uv cache prune If you're running low on disk space and are a uv user, don't forget about uv cache prune: uv cache prune removes all unused cache entries. For example, the cache … Simon Willison’s Weblog · simonwillison.net [1] Good point to check on your uv cache if you are running low on disk space. I checked mine today, and it wasn’t too bad so I left it alone. du -sh `uv cache dir` Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://simonwillison.net/2025/Jul/8/uv-cache-prune/#atom-everything [2]: /thoughts/
Building Python tools with a one-shot prompt using uv run and Claude Projects I’ve written a lot about how I’ve been using Claude to build one-shot HTML+JavaScript applications via Claude Artifacts. I recently started using a similar pattern to create one-shot Python uti... Simon Willison’s Weblog · simonwillison.net [1] This is really interesting, the lazy uv scripts are really becoming quite appealing, especially for something like this to just pop out of an llm ready to run. The article features several examples of these one-shot prompt ideas that I suggest you give a try, and a prompt for creating them. Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://simonwillison.net/2024/Dec/19/one-shot-python-tools/ [2]: /thoughts/
Switching from virtualenvwrapper to direnv, Starship, and uv Earlier this week I considered whether I should finally switch away from virtualenvwrapper to using local .venv managed by direnv. I’ve never … treyhunner.com [1] I’ve kinda fallen out of using direnv now that a lot of my projects use hatch, I generally just hatch shell into them. I just need to make sure I go through all of them and make my installer uv. Now I’ve been thinking about making uv my only needed dependency to run a python project and leaning more to something like uv run --with . uvicorn myapp --reload Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://treyhunner.com/2024/10/switching-from-virtualenvwrapper-to-direnv-starship-and-uv/ [2]: /thoughts/
Lazy self-installing Python scripts with uv I frequently find myself writing my own short command-line scripts in Python that help me with day-to-day tasks. It’s so easy to throw together … treyhunner.com [1] I really like Trey’s steps to making an executable python script with uv his old process seems to be the same with a new shebang - Add an appropriate shebang line above the first line in the file (e.g. #!/usr/bin/env python3) - Aet an executable bit on the file (chmod a+x my_script.py) - Place the script in a directory that’s in my shell’s PATH variable (e.g. cp my_script.py ~/bin/my_script) And here is the new format the the shebang followed by the metadata comment block defined in PEP 723. #!/usr/bin/env -S uv run --script # /// script # requires-python = ">=3.12" # dependencies = [ # "ffmpeg-normalize", # ] # /// Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/ [2]: /thoughts/
Installing and managing Python | uv A guide to using uv to install Python, including requesting specific versions, automatic installation, viewing installed versions, and more. docs.astral.sh [1] uv now can install python for you. uv is inspired by rust’s cargo, an all in one fast package and installation manager. uv is so fast and becoming feature complete, it’s really changing the python packaging ecosystem. uv python install uv python install 3.12 uv python list Note This post is a thought [2]. It’s a short note that I make about someone else’s content online #thoughts References: [1]: https://docs.astral.sh/uv/guides/install-python/ [2]: /thoughts/