A Python package describes itself in pyproject.toml. The [project] table holds its name, version, supported Python versions, dependencies and the commands it installs. Build tools, installers and package indexes all read the same file, so a small mistake in it shows up far from where it was made.
You will read the file with tomllib, the standard library's TOML parser, and handle what real files do: optional fields that are missing, a version supplied dynamically by the build backend, names written with mixed capitals and separators, entry points that don't point at a function, and dependency strings that combine extras, version ranges and environment markers.
The workspace runs no installer or build backend. Each task receives the file as text and checks what your code reads from it.
Out: ('orbit', 'any'). Optional fields need a default.