Wednesday, August 2, 2023

What is Python Poetry

Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Poetry offers a lockfile to ensure repeatable installs, and can build your project for distribution.


The installer script is available directly at install.python-poetry.org, and is developed in its own repository. The script can be executed directly (i.e. ‘curl python’) or downloaded and then executed from disk (e.g. in a CI environment).

Linux, macOS, Windows (WSL)

curl -sSL https://install.python-poetry.org | python3 -

This was mostly a straight forward installation 

export PATH="/Users/retheesh/.local/bin:$PATH"

poetry --version

Poetry (version 1.5.1)

references:

https://python-poetry.org/docs/#installing-with-the-official-installer


No comments:

Post a Comment