Opinionated Python + venv template for new scripts.
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-python-venv-scriptor
npx degit github:joaopalmeiro/template-python-venv-script --force- Search for
template-python-venv-scriptand replace it with the project name. - Search for
Opinionated [Python](https://www.python.org/) + [venv](https://docs.python.org/3.10/library/venv.html) template for new scripts.and replace it with the (short) project description. - Search for
João Palmeiroand replace it with the author's name. - Open the requirements.txt file and add the project-specific dependencies.
- Delete the TEMPLATE.md file.
- Delete the
Getting Startedsection.
Install pyenv (if necessary).
pyenv install && pyenv versionspip config set global.require-virtualenv truepip config listpython -m venv --clear venvsource venv/bin/activatepython --version && pip --versionpip install -r requirements.txtor
pip install --index-url https://pypi.org/simple -r requirements.txtruff check .ruff check --fix .ruff format .python 01.pydeactivate