commit | c7cb3b18557f2b76571e4a8f342571d70bc4669b | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Mon Nov 06 18:52:19 2023 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 06 02:58:02 2023 -0800 |
tree | 2b42a24c45e76233816b97c01c88b2c5db1c9537 | |
parent | 693b24b1f1d6758d750418679a63fc83ea0478e1 [diff] |
fix: Newline lost when updating a table (#323) GitOrigin-RevId: e9ccbe7f3eacbbe3e39d68d9bb4c3f0552f1b8f2 Change-Id: I8d6733b7d2133dce4f94752e8a1cace30c042697
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