A simple shell function to setup a Python project scaffold. It’s idempotent, so it won’t overwrite an existing folder or env.

pproj () {
    mkdir -p $1
    cd $1
    python -m venv env
    . env/bin/activate
}