Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 988 Bytes

File metadata and controls

48 lines (31 loc) · 988 Bytes

Basic poetry usage

This short tutorial is a summary of the official poetry documentation. For more information, see the official documentation.

Adding a dependency

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>

Installing dependencies

To install the dependencies of the project, you can run the following command:

poetry install

Activating the virtual environment

To activate the virtual environment, you can run the following command:

poetry shell

Running a script

To run a script, you can use the following command:

poetry run <SCRIPT>

Where <SCRIPT> is the name of the script you want to run.