A little python 'poetry'. From Node.js 'back' to Python

I got to peek into a Python code and make it run after three years of not using the language. I have to say, even prior to that point three years ago, I almost never used Python. So after barely using the language in a while, I noticed Python now has dependency management called poetry .

Poetry

Poetry is a dependency management system in Python similar to what NPM is for Node.js. From the change history, its initial release was in February of 2018. I am not certain if it is the only package management system.

Poetry makes use of pyproject.toml . And just like what package.json is for NPM, it records important meta data about the project that helps publishing the project as a package and installing dependencies.

Poetry dependencies

To install list of dependencies described in the pyproject.toml, use the command poetry install

To group dependencies based on environment:

[tool.poetry.group.dependencies] 
Django = "==3.1.1"

[tool.poetry.group.dev.dependencies]

For older versions of poetry

Older versions uses
[tool.poetry.dependencies]
Django = "==3.1.1"

[tool.poetry.dev-dependencies]

Because of the way poetry handles package management, it is a lot easier for people with a Node background to pickup a python project faster.