# Adopting/recommending a toml parser?

**URL:** <https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068>\
**Category:** Packaging\
**Created:** [May 3, 2020, 12:16pm UTC](https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068 "2020-05-03T12:16:40Z")\
**Posts on this page:** 1\
**Showing post:** 88

<div class="post-metadata">

**Author:** ![encukou](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/encukou/32/2461_2.png) [@encukou](https://discuss.python.org/u/encukou)\
**Post date:** [December 22, 2021, 11:17am UTC](https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068/88 "2021-12-22T11:17:15Z")

</div>

I’ve looked at `tomli`, I agree with its minimalist+strict philosophy, and I believe I’d be able to maintain it.  
@hukkinj1, if you want to do the heavy lifting of integrating tomli into the stdlib and maintaining it there (probably along with a backport on PyPI, à la [importlib\_resources](https://pypi.org/project/importlib-resources/), I can co-maintain (i.e. advise, merge your PRs, and take over in the worst-case scenario of you disappearing).

One thing that worries me is how future versions of TOML will be supported. There’s precedent in e.g. `json` and `pickle`, but it’ll need to be in the PEP, so everyone can agree on it.

> [@hukkinj1](#):
>
> Would it make sense to name squat `tomllib` and `tomlparser` just in case we end up wanting to use one of them?

Yes. I’d pick one, and when there’s a PEP draft, ask `@dustin` to reserve it. (Please don’t squat by uploading a placeholder.)

> [@pradyunsg](#):
>
> FWIW, I think it would make sense to make changes to `toml` on PyPI (potentially even some backwards incompatible on), to get it to a point where including it in the standard library would be sensible (getting it to parse + dump TOML 1.0.0, have it better match the `json` API and so on). It could certainly be disruptive and backwards incompatible; but the work for that can be undertaken before considering adding it to 3.11 or 3.12.

That has a major disadvantage: it would break anyone using a pinned version of `toml`.

---

_[View the full topic](https://discuss.python.org/t/adopting-recommending-a-toml-parser/4068)._
