Skip to content

Conversation

@a-detiste
Copy link

"tomli" got later merged in the standard library as "tomllib"

"tomli" got later merged in the standard library as "tomllib"
@mjbear
Copy link
Collaborator

mjbear commented Nov 28, 2025

Hi @a-detiste!
Are you looking to move to tomli to follow the trend of other projects adopting tomli instead?

mwouts/jupytext#1195
https://dev.to/pypyr/comparison-of-python-toml-parser-libraries-595e

The current 2.3.0 version of tomli supports Python 3.8 and later so it's something that's compatible. 🙂

With tomli in the standard lib (since 3.11) sounds like something to keep in mind once 3.10 reaches EoL (Oct 2026).

@a-detiste
Copy link
Author

a-detiste commented Nov 28, 2025

  • Hi,

I ve been patching Debian and submiting patches upstream to remove usage of old libraries for a while

https://wiki.debian.org/Python/Backports

Ultimate goal is to replace tomli completely with tomllib, in a few years, but I try no to confuse upstream projets with PR that try to do too many things at once.

Replacing toml with tomli is a intermédiate step that makes it easier.

The API of tomli vs tomllib are identical

The API of toml not

After this PR the plan is to send a second one to make tomli optional on py3.11

@a-detiste
Copy link
Author

So I m not following a trend per se, rather trying to initiate/promote it 😁

@mjbear mjbear changed the title replace usage of older "toml" with current "tomli" Replace older toml lib with current tomli Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants