Heavily inspired by autoenv. pyautoenv2 activates a Poetry or venv Python environment when you cd into the directory that defines that environment (i.e., when a directory, or any of its parents, ...
The full Python venv lifecycle is five commands: create, activate, install, run, deactivate. With uv, it's one: uv run main.py. Here's a handbook how-to for readers stuck in the five-command version: ...
As a developer passionate about clean, efficient coding practices, I've often found that managing Python projects can get messy without proper isolation. That's where virtual environments come in.