Style preserving TOML library
Project Links
Meta
Author: Sébastien Eustace
Requires Python: >=3.9
Classifiers
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
TOML Kit - Style-preserving TOML library for Python
TOML Kit is a 1.0.0-compliant TOML library.
It includes a parser that preserves all comments, indentations, whitespace and internal element ordering, and makes them accessible and editable via an intuitive API.
You can also create new TOML documents from scratch using the provided helpers.
Part of the implementation has been adapted, improved and fixed from Molten.
Usage
See the documentation for more information.
Installation
If you are using Poetry,
add tomlkit to your pyproject.toml file by using:
poetry add tomlkit
If not, you can use pip:
pip install tomlkit
Running tests
Please clone the repo with submodules with the following command:
git clone --recurse-submodules https://github.com/python-poetry/tomlkit.git
The toml-test submodule is required for running the tests.
You can then run the tests with
poetry run pytest -q tests
0.14.0
Jan 13, 2026
0.13.3
Jun 05, 2025
0.13.2
Aug 14, 2024
0.13.1
Aug 14, 2024
0.13.0
Jul 10, 2024
0.12.5
May 08, 2024
0.12.4
Feb 27, 2024
0.12.3
Nov 15, 2023
0.12.2
Nov 02, 2023
0.12.1
Jul 27, 2023
0.12.0
Jul 27, 2023
0.11.8
Apr 27, 2023
0.11.7
Mar 27, 2023
0.11.6
Oct 27, 2022
0.11.5
Sep 28, 2022
0.11.4
Aug 13, 2022
0.11.3
Aug 10, 2022
0.11.2
Aug 08, 2022
0.11.1
Jul 07, 2022
0.11.0
May 24, 2022
0.10.2
Apr 24, 2022
0.10.1
Mar 27, 2022
0.10.0
Feb 18, 2022
0.9.2
Feb 08, 2022
0.9.1
Feb 07, 2022
0.9.0
Feb 01, 2022
0.8.0
Dec 20, 2021
0.7.2
May 20, 2021
0.7.1
May 19, 2021
0.7.0
Jul 31, 2020
0.6.0
Apr 15, 2020
0.5.11
Feb 29, 2020
0.5.10
Feb 28, 2020
0.5.9
Feb 28, 2020
0.5.8
Oct 11, 2019
0.5.7
Oct 04, 2019
0.5.6
Oct 04, 2019
0.5.5
Jul 01, 2019
0.5.4
Jun 30, 2019
0.5.3
Nov 19, 2018
0.5.2
Nov 09, 2018
0.5.1
Nov 08, 2018
0.5.0
Nov 07, 2018
0.4.6
Oct 16, 2018
0.4.5
Oct 12, 2018
0.4.4
Sep 01, 2018
0.4.3
Aug 28, 2018
0.4.2
Aug 06, 2018
0.4.1
Aug 06, 2018
0.4.0
Jul 23, 2018
0.3.0
Jul 20, 2018
0.2.0
Jul 18, 2018
0.1.1
Jul 10, 2018
0.1.0
Jul 10, 2018
Wheel compatibility matrix
Files in release
No dependencies