setuptools does not explicitly list which functions are part of the exposed API and therefore users tend to consider everything public.
As pointed out in #3231, some users might try to reach out for a function to parse the TOML file.
Since pyproject.toml uses a data format that maps directly to Python builtin types (dicts, arrays, etc), it can be directly parsed by a TOML library, such as tomli or future tomllib.
Therefore my opinion is that we can explicitly sign that the modules used to parse pyproject.toml are internal by prefixing them with _.
setuptoolsdoes not explicitly list which functions are part of the exposed API and therefore users tend to consider everything public.As pointed out in #3231, some users might try to reach out for a function to parse the TOML file.
Since
pyproject.tomluses a data format that maps directly to Python builtin types (dicts, arrays, etc), it can be directly parsed by a TOML library, such astomlior futuretomllib.Therefore my opinion is that we can explicitly sign that the modules used to parse
pyproject.tomlare internal by prefixing them with_.