myTemplate for poetry & dockerfile
# WSL, Linux
curl -sSL https://install.python-poetry.org | python3 -
# Powershell in Windows
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
~/.local/share/pypoetry
on Linux/Unix.%APPDATA%\pypoetry
on Windows.
$HOME/.local/bin
on Unix.%APPDATA%\Python\Scripts
on Windows.
poetry self update
poetry config virtualenvs.in-project true
poetry install
# Installing dependencies only
poetry install --no-root
# for venv environment
poetry shell
# run temporary
poetry run python main.py