tomlkit
Style-preserving TOML library for Python (by python-poetry)
pytoml
A TOML-0.4.0 parser/writer for Python. (by avakar)
Our great sponsors
tomlkit | pytoml | |
---|---|---|
3 | 3 | |
623 | 129 | |
2.6% | - | |
7.0 | 10.0 | |
15 days ago | almost 5 years ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tomlkit
Posts with mentions or reviews of tomlkit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-14.
- Configuration file format that supports hex and comments?
-
Confiig file
I like to use TOML files. I find the syntax to be more palatable than YAML, and you can load them quite easily with tomlkit. I believe there's a PEP to add a parser to the standard library too, since they're used for pyproject.toml now.
- Comparison of Python TOML parser libraries
pytoml
Posts with mentions or reviews of pytoml.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-21.
-
TOML: Tom's Obvious Minimal Language
Funny thing: TOML author/inventor calls it a mistake:
> TOML is a bad file format. It looks good at first glance, and for really really trivial things it is probably good. But once I started using it and the configuration schema became more complex, I found the syntax ugly and hard to read.
> I personally abandoned TOML and as such, I'm not planning on adding any new features
https://github.com/avakar/pytoml/issues/15#issuecomment-2177...
-
Comparison of Python TOML parser libraries
pytoml Abandoned by the creator for eminently sensible reasons (interesting read too... https://github.com/avakar/pytoml/issues/15) But let's not get into an argument over whether a shiny new fashion in config formats is in fact doing anything better than the previous fashions in config management...
What are some alternatives?
When comparing tomlkit and pytoml you can also consider the following projects:
tomli - A lil' TOML parser
rtoml - A fast TOML library for python implemented in rust.
toml - Tom's Obvious, Minimal Language
toml - Python lib for TOML
mypy - Optional static typing for Python
pip - The Python package installer
qtoml - Another Python TOML encoder/decoder
pytomlpp - A python wrapper for tomlplusplus
JSON6 - JSON for Humans (ES6)