Installation

Introduction | Documentation | Poetry - Python dependency management and packaging made easy

Installation is fine. What is completions?

Poetry manages Python packages and project dependencies, similar to tools like pip and pipenv, but with a focus on simplifying the process of creating, managing, and publishing Python projects. Completions in this case help developers quickly access Poetry commands by pressing the Tab key, making it easier to use the tool without typing out full commands.

To enable shell completions for Poetry, you'd typically run:

poetry completions bash >> ~/.bash_completion

This would add completions for the Bash shell, and there are similar options for zsh and fish shells.

Basic Usage

Basic usage | Documentation | Poetry - Python dependency management and packaging made easy

The docs is not to my liking (skill issue?)

Expected a simple python code that needs some dependencies that’s set-up using poetry.

I still don’t understand what poetry.lock is for.

I don’t know if I call poetry install inside or outside the poetry shell.

Finding the Virtual Environment

To locate the virtual environment for your Poetry project, you can use the following command:

poetry env info --path