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

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

On this day

2024-07-02

1 year later

A nice read by Stuart on Python development tools. This introduced me to the pyproject.toml configuration file, which is more comprehensive than a...