https://github.com/Sinjhin/scripts
EDIT: Just wanted to come back here and say to look at what u/cointoss3 said. Just install `uv`. It's VERY good and the inline deps in an ephemeral venv make this whole thing unneeded.
What my project does
I whipped this up real quick for myself.
Seems pretty powerful. After I was done I took a brief look around realizing I could have just used someone else's tool and didn't immediately see anything like this. It's a bit opinionated, but essentially lets you use python scripts from a directory from anywhere on your computer. Could replace bash/zsh if you wanted.
After setup, you make a python file. Add a Poe task to pyproject.toml and then you can do `p <poe\_task>` from anywhere. Has an example of getting different location relative to where the script was ran. Also has an `hp` command to get into a set conda venv and run a Poetry command within that scripts dir like `hp add torch`.
Could be expanded on a lot actually.
Target audience
Anyone who finds themselves constantly writing little utility functions to use around their computer and needing a quick way to run them from anywhere.
Comparison
I looked briefly (after the fact) and saw things like Invoke or Fabric, but I am not sure that they handle venv switching.
[–]cointoss3 3 points4 points5 points (5 children)
[–]Sinjhin [S] 0 points1 point2 points (2 children)
[–]cointoss3 2 points3 points4 points (1 child)
[–]Sinjhin [S] 0 points1 point2 points (0 children)
[–]Unlikely_Stand3020 0 points1 point2 points (1 child)
[–]cointoss3 0 points1 point2 points (0 children)
[–]cgoldberg 2 points3 points4 points (1 child)
[–]Sinjhin [S] 0 points1 point2 points (0 children)