Need help with tomlkit?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

sdispater
357 Stars 42 Forks MIT License 245 Commits 17 Opened issues

Description

Style-preserving TOML library for Python

Services available

!
?

Need anything else?

Contributors list

# 2,118
Python
depende...
Shell
timezon...
163 commits
# 15,902
unix
virtual...
cython
jython
31 commits
# 102,065
Git
conemu
ssh-age...
c-plus-...
3 commits
# 9,555
Scala
apache-...
Apache ...
q
1 commit
# 68,370
Flask
Swift
JavaScr...
custom-...
1 commit
# 137,325
HTML
Rust
datastr...
swagger
1 commit
# 5,500
Visual ...
Common ...
jupyter
python-...
1 commit
# 173,044
Rust
Shell
Go
binary-...
1 commit
# 111,559
Shell
pypy
cython
jython
1 commit

GitHub Release PyPI Version Python Versions License
Tests

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 as 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/sdispater/tomlkit.git
. We need the submodule -
toml-test
for running the tests.

You can run the tests with

poetry run pytest -q tests

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.