tomllib
Parse TOML files such as pyproject.toml (read-only, 3.11+).
Easy
import tomllib
with open("pyproject.toml", "rb") as f:
project = tomllib.load(f)["project"]
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.