Poetry

Poetry

 All about installing and using poetry for dependency management in python

https://python-poetry.org/

https://realpython.com/dependency-management-python-poetry/

Prerequisite

pipx must be installed on your system.

Installation

To install poetry open PowerShell if you are on Windows, or Terminal if you are on Mac, then type the following command.

pipx install poetry

Basic Usage

Create a new poetry project: poetry new poetry-demo
Add a package: poetry add package-name
Initialising an existing project:
cd project-directory
poetry init
Activate a poetry environment: poetry shell
Deactivate an environment: exit or deactivate
Install defined dependencies: poetry install

Comments