Home Knowledge Base Poetry

Poetry

Overview Poetry is a modern tool for dependency management and packaging in Python. It provides a deterministic way to manage libraries, virtual environments, and project metadata in a single pyproject.toml file.

Why use Poetry?

Basic Commands

**Start new project**
poetry new my-app

**Add a library**
poetry add pandas
**(Automatically updates pyproject.toml, installs to venv, updates lockfile)**

**Developer Tools**
poetry add --group dev black pytest

**Run**
poetry run python main.py

**Shell**
poetry shell

vs Pip

It is the closest thing Python has to npm or cargo.

poetrydependencypackage

Related Topics

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.