Poetry Core

2.3.1 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

A basic example demonstrating how to import and use PoetryCore to access project metadata.

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}")

view raw JSON →