Title: Provide a toml module in the standard library
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, dstufft, mgorny, njs, pradyunsg, xtreak
Priority: normal Keywords:

Created on 2020-03-25 06:54 by mgorny, last changed 2020-03-25 18:24 by xtreak.

Messages (3)
msg364979 - (view) Author: Michał Górny (mgorny) * Date: 2020-03-25 06:54
PEP 518 uses the TOML format to specify build system requirements.  AFAIU this means that all new build systems will require a TOML parser.  Could you consider adding one to the standard library to reduce the number of chicken-egg problems?

The referenced PEP states that 'pytoml TOML parser is ~300 lines of pure Python code', so I don't think integrating it would be a large maintenance cost.

msg364983 - (view) Author: Karthikeyan Singaravelan (xtreak) * (Python committer) Date: 2020-03-25 07:15
Relevant python-dev discussion : . The format has still not reached 1.0. Issue to track the 1.0 release candidate :
msg365000 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2020-03-25 16:53
The plan is to start discussing adding a TOML parser once the spec reaches 1.0 (which we will know about as one of the pip contributors also manages TOML).
Date User Action Args
2020-03-25 18:24:08xtreaksetnosy: + pradyunsg
2020-03-25 16:53:21brett.cannonsetmessages: + msg365000
2020-03-25 07:15:57xtreaksetnosy: + xtreak
messages: + msg364983
2020-03-25 06:54:21mgornycreate