I thought uvx was cool but this is even better - lazy self-installing scripts with uv!😎
https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
(via https://bsky.app/profile/savannah.dev/post/3ldo6uthml227)
I thought uvx was cool but this is even better - lazy self-installing scripts with uv!😎
https://treyhunner.com/2024/12/lazy-self-installing-python-scripts-with-uv/
(via https://bsky.app/profile/savannah.dev/post/3ldo6uthml227)
@sean Very interesting. Managing multiple venv is such a pain. Does it work with modules that are only on github but not on pip?
@weiming I suspect it will work with any package that you can install with pip.
disclaimer: I have not tried them all ;)
@sean I see. Reason I'm asking is that sometimes I have my own modules only on github but not on pypi and I usually install them using git+ssh rather pip install. I guess I will just need to try it then.
@weiming I've not tried this but since pip supports git+ssh like `pip install git+ssh://git@github.com/you/your-repo.git` you could probably do something like this with a uv script:
```
# dependencies = [
# "git+ssh://git@github.com/you/your-repo.git",
# ]
```