commit | 669d78891c9fb9eab3ca7f19a2c32d075a4209de | [log] [tgz] |
---|---|---|
author | Frost Ming <me@frostming.com> | Fri May 24 08:46:41 2024 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Sat May 25 13:43:59 2024 -0700 |
tree | a072af89f56e46335a268b7e614129506d46fcdf | |
parent | 671ee8d563755b42acee2dd2a83cd412f2697b7b [diff] |
fix: Revert "fix: Construction of OutOfOrderTableProxy can cause newlines to be inserted (#347)" (#353) GitOrigin-RevId: 30a22f711f10b5c6715d4c11f8d699f4fd033ef6 Change-Id: I5c7a20ead3031d0eabababe3589e956729ca7b0c
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