Poetry declares, resolves, and installs Python project dependencies from a single pyproject.toml file. It replaces scattered setup and requirements files with one workflow for develop, build, and publish.
Overview
Poetry centralizes Python packaging around pyproject.toml instead of separate setup.py, requirements.txt, setup.cfg, MANIFEST.in, or Pipfile files. The tool resolves dependency graphs deterministically and writes lock metadata so environments stay consistent across machines.
Day-to-day commands add packages, show dependency trees, and list outdated libraries. Building produces source distributions and wheels with one invocation, and publishing uploads artifacts to PyPI or private indexes. Virtual environments are created or reused according to configuration so projects stay isolated from the system Python.
The CLI is designed around sensible defaults with optional configuration and a plugin extension point. Core packaging logic lives in a separate poetry-core package, with companion projects handling requirements.txt export, virtualenv integration, and installation scripting.
Official documentation and releases are published on the project website. Poetry targets teams that want one tool to manage dependencies, packaging, and publication without hand-maintaining multiple manifest formats.
Key features
- Single pyproject.toml manifest
- Deterministic dependency resolver
- Lock file for reproducible installs
- Build sdist and wheel artifacts
- Publish to PyPI or private repos
- Isolated virtual environments
- Dependency tree inspection
- Extensible via plugins
Use cases
- Managing Python library dependencies
- Publishing packages to PyPI
- Reproducible application environments
- Replacing requirements.txt workflows
- Tracking outdated dependencies