Adding New Dependencies
For adding a new module to your project you can use the following command, i.e. If we want to add two new modules namely pygame and pyautogui to our project then we can simply use these commands to add them to our project.
$ poetry add pygame
$poetry add pyautogui
This will add them in your pyproject.toml with the latest version. After this your pyproject.toml should look like this:
Using Poetry Dependency Management tool in Python
In this article, we are going to study the poetry dependency management tool in python which will help you to manage the libraries of your next project so it will be easy to download, install, and set up your project.