commit | e6244edcdee26507c6b4332051ee86a1e3d36fc8 | [log] [tgz] |
---|---|---|
author | Frost Ming <me@frostming.com> | Thu Apr 27 16:51:18 2023 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:05:11 2023 -0700 |
tree | 000980e4860bab25e43a7d56133e4544801b1ade | |
parent | 15f0353798d168af6e4adc7409ba497e6752dbe6 [diff] |
fix(#256): remove the extra indentation added when parsing Close #2576 Signed-off-by: Frost Ming <me@frostming.com> GitOrigin-RevId: a766d3a2a25476186bfa3e5ac3b357d8b4549e4b Change-Id: I1e933db34601de0eeb97cd64bee3a8d7001d5306
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.
See the documentation for more information.
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
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