Style preserving TOML library
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
The dropdown lists show the available interpreters, ABIs, and platforms.
Enable javascript to be able to filter the list of wheel files.
Copy a direct link to the current filters
File details
    Details for the file tomlkit-0.13.3.tar.gz.
  
File metadata
- Download URL: tomlkit-0.13.3.tar.gz
- Upload date:
- Size: 185.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1 | |
| MD5 | b77382a3de2e0c1ab715ad456139e260 | |
| BLAKE2b-256 | cc180bbf3884e9eaa38819ebe46a7bd25dcd56b67434402b66a58c4b8e552575 | 
File details
    Details for the file tomlkit-0.13.3-py3-none-any.whl.
  
File metadata
- Download URL: tomlkit-0.13.3-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1014-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0 | |
| MD5 | b3947690f14611f3d7c6499a1fa3b487 | |
| BLAKE2b-256 | bd758539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85 |