Skip to content
BEAD

pyproject.toml Parser

Parse Python pyproject.toml — project metadata, dependencies, optional groups, build system, tool sections.

Name
my-package
Version
1.2.3
Python
>=3.10
Dependencies
3
Optional groups
2
Build backend
hatchling.build
Dependencies (3)
  • requests>=2.32
  • pydantic>=2.6
  • fastapi>=0.110,<1.0
Optional dependency groups
dev (2)
  • pytest>=8.0
  • ruff>=0.4
docs (1)
  • sphinx>=7.0
[tool.*] sections
tool.ruff 2 keystool.ruff.lint 2 keystool.mypy 2 keys

What we parse

[project] metadata, dependencies (PEP 621 list form and Poetry table form), optional dependency groups, build-system backend, and tool-specific tables like [tool.poetry], [tool.ruff], [tool.mypy].

Note

Focused TOML parser like our Cargo.toml tool — covers the shapes that show up in real-world pyproject.toml files.

You might also like