python
Small helpers for working in Python trees. Honest framing: uv (uv run,
uv venv) is the primary Python workflow here — signal-mcp runs via uv — so
this plugin earns its keep with the file-hygiene helpers, which are
interpreter-agnostic and work fine alongside uv.
| Command | Does |
|---|---|
pyclean | delete *.pyc, __pycache__, .mypy_cache, .pytest_cache |
pyfind | find . -name "*.py" |
pygrep | grep -nr --include="*.py" |
pyserver | python3 -m http.server |
mkv / vrun | create / activate a venv |
Pro tips
pycleanis the keeper. Stale__pycache__and.pytest_cachecause the weirdest "but I changed that file" bugs; run it before filing any Python bug report. Takes a path argument (pyclean ~/src/foo).vrunauto-detectsvenvand.venv— so it activates environments created byuv venvtoo. But if the project is uv-managed, preferuv run <cmd>: no activation state to forget about.mkvusespython3 -m venv, which is the slow path. For anything new,uv venvis functionally identical and near-instant; treatmkvas legacy comfort.pyserver 8080is still the fastest "share this directory over HTTP on the LAN" — handy for tossing a file to a utility node.pygrep TODOrespects only.pyfiles — quicker than remembering ripgrep type flags for a one-off, thoughrg -t pyis the better habit.