commit | 6cf040c7be433fe9842b56a7fcb2e3a946b3c886 | [log] [tgz] |
---|---|---|
author | Frost Ming <me@frostming.com> | Wed May 08 17:54:56 2024 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri May 10 13:43:47 2024 -0700 |
tree | b3c5d54af3e4d3deb414937f3ed618f684216627 | |
parent | a7c81ca88767c388337e38fc3adc9fe9759872c4 [diff] |
fix: Construction of OutOfOrderTableProxy can cause newlines to be inserted (#347) Fixes #343 Signed-off-by: Frost Ming <me@frostming.com> GitOrigin-RevId: c2611c555261e41e1219a675cef14dd24229c607 Change-Id: I16371dd8b6be17575ab8c91b7c683c7a9601efbd
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