Poetry Core
Poetry Core is the PEP 517 build backend and core utilities for the Poetry dependency management and packaging tool. The current version is 2.3.1, released on March 27, 2026. Poetry Core is actively maintained with regular updates.
Warnings
- breaking Dropped support for Python 3.9 in version 2.3.0.
- deprecated The 'project' section in pyproject.toml is now required as per PEP 621.
Install
-
pip install poetry-core
Imports
- PoetryCore
from poetry.core import PoetryCore
Quickstart
import os
from poetry.core import PoetryCore
# Initialize PoetryCore with project directory
project_dir = os.path.abspath(os.path.dirname(__file__))
poetry = PoetryCore(project_dir)
# Access project metadata
print(f"Project Name: {poetry.name}")
print(f"Project Version: {poetry.version}")