Skip to main content

Practice · 1 of 2

Read the Contract

CHALLENGE
Difficulty: intermediate+25 XP

Implement read_project(pyproject_text) that parses TOML text (tomllib.loads) and returns a dict with keys name, version, and scripts (the [project.scripts] table).

Back to lesson: Practice: pyproject.toml Drills