I finally have a procedure in place I like for hacking on Python CLI apps using a development environment managed by uv - full notes here:https://
-
I finally have a procedure in place I like for hacking on Python CLI apps using a development environment managed by uv - full notes here:
https://til.simonwillison.net/python/uv-cli-apps -
Quinn Comendantreplied to Simon Willison last edited by
@simon Then, for scripts you run frequently, do you just add to your.bashrc `alias demo=“uv run python -m demo_app”`?
My few python CLI apps each have a .venv directly, but it’s tiresome to have to juggle activations: `source ~/bin/demo/.env/activate && demo && deactivate’. 🫠
-
Simon Willisonreplied to Quinn Comendant last edited by
@com once I'm done developing the tool I'll install it permanently, probably using the version I ship to PyPI (so I guess I'll use "uv tool install name-of-package")
Copyright © 2024 NodeBB | Contributors