# Install Poetry Python Package manager (as of 2020-05)
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
# python3
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
# python2
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
# Install Poetry Python using this command the others are deprecated
curl -sSL https://install.python-poetry.org/ | python3
curl -sSL https://install.python-poetry.org | python3 -
# install
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
# setup
poetry new <name> # new project
poetry init # existign project
poetry install
# requirements.txt
poetry add `cat requirements.txt`
poetry export --output requirements.txt
# venv
poetry run python your_script.py # single script
poetry shell # venv sub shell
# dependencies
poetry show --tree
poetry add <name>
poetry remove <name>
poetry update
# build and publish
poetry build
poetry config http-basic.pypi username password
poetry publish
#Windows
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
# On Windows PowerShell:
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
curl -sSL https://install.python-poetry.org | POETRY_HOME=/etc/poetry python3 -
poetry install
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py -UseBasicParsing).Content | python -
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -