This short tutorial is a summary of the official poetry
documentation. For more information, see the
official documentation.
When you want to add a new dependency to the project, you can run the following command:
poetry add <DEPENDENCY>Where <DEPENDENCY> is the name of the dependency you want to add.
In case you want to add a development dependency, you can run the following
poetry add --dev <DEPENDENCY>To install the dependencies of the project, you can run the following command:
poetry installTo activate the virtual environment, you can run the following command:
poetry shellTo run a script, you can use the following command:
poetry run <SCRIPT>Where <SCRIPT> is the name of the script you want to run.