# Poetry

Python project dependency management and packaging with lockfiles and environments\.

ID: Q623 · Revision: 671

Type: software · License: MIT[^poetry-license] · Status: active

Website: https://python-poetry.org/



Poetry manages dependencies and packaging for Python projects\. Its workflow declares project requirements in pyproject\.toml and records resolved package versions in poetry\.lock\. It can manage a virtual environment for the project and supports a non\-package mode for users who need dependency management without building or publishing a distribution\.[^poetry-basic]

## Requirements and resolved versions

Version constraints describe the acceptable dependencies; the lockfile records the selected versions\. When no lockfile exists, installation resolves the project and writes one\. Retaining the lockfile in version control lets collaborators use the recorded dependency set rather than independently selecting versions from the available ranges\.[^poetry-basic]

## Interpreter and environment selection

Poetry can use an already active virtual environment or manage one for the project\. The chosen interpreter must satisfy the project's Python requirement, and users can explicitly select an interpreter\. Environment activation and command execution are separate conveniences; the former poetry shell command now belongs to a plugin rather than the core environment interface\.[^poetry-env]

## Package repositories

Poetry uses PyPI implicitly when no primary package source is configured\. Adding a primary source disables that implicit source unless PyPI is added explicitly\. Installation sources are project\-level settings and differ from repository configuration used for publishing\. A migration involving private packages should consequently inspect both discovery and publication configuration\.[^poetry-repo]

## Package metadata limits

Poetry\-specific package sources are not included in the core metadata produced by poetry\-core\. Installing the resulting project through another installer therefore does not automatically preserve those source rules\. A package can be structurally installable while still requiring independent repository configuration to resolve its dependencies as intended\.[^poetry-repo]

## Modes and licensing

Poetry is MIT\-licensed\. Package mode supports the project as a distributable package; non\-package mode installs dependencies without installing the project itself and does not build or publish a distribution\. These modes distinguish managing an application environment from preparing a package for other users\.[^poetry-license][^poetry-basic]

## Substitution considerations

Poetry can replace [Pipenv](/pipenv) for project dependency management when a pyproject\-centered workflow or package\-building support is useful\. Pipfile\-based requirements and environment conventions need translating\. The overlap is managing dependencies for development; preserving lock semantics, repository choices and deployment configuration requires explicit review\.[^poetry-basic][^pipenv][^poetry-repo]

## Capabilities and substitutions

### Dependency and package workflows — supported

Offers package mode and dependency\-only non\-package mode\.[^poetry-basic]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

### Repository rules in built metadata — unsupported

Poetry\-specific package sources are not preserved in core package metadata\.[^poetry-repo]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

### [Substitute for Pipenv](/pipenv) — limited

Project dependency management with optional packaging; Pipfile and environment conventions need translating\.[^poetry-basic][^pipenv]

Use case: Dependency and environment management · Platforms: Windows, macOS, Linux · Region: Package availability and runtime requirements apply

## References

[^poetry-license]: [Poetry license](<https://github.com/python-poetry/poetry/blob/main/LICENSE>) — MIT permission conditions (vendor; retrieved 2026-10-07T04:32:28Z)

[^poetry-basic]: [Poetry basic usage](<https://python-poetry.org/docs/basic-usage/>) — Package/non\-package modes; pyproject and lockfile; virtual environments (vendor; retrieved 2026-10-07T04:32:28Z)

[^poetry-env]: [Poetry environments](<https://python-poetry.org/docs/managing-environments/>) — Interpreter choice; existing virtualenvs; shell moved to plugin (vendor; retrieved 2026-10-07T04:32:51Z)

[^poetry-repo]: [Poetry repositories](<https://python-poetry.org/docs/repositories/>) — Primary source disables implicit PyPI; source settings absent from package metadata (vendor; retrieved 2026-10-07T04:32:42Z)

[^pipenv]: [Pipenv introduction](<https://pipenv.pypa.io/en/latest/>) — Unified pip/virtualenv workflow; platform support (vendor; retrieved 2026-10-07T04:33:04Z)

Source revision: https://substitutefor.net/entities/Q623?revision=671
