commit | 8028ca7787349d67f0f7e880c069223b22db861e | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Tue Feb 27 10:48:01 2024 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Feb 26 18:53:45 2024 -0800 |
tree | 08aeffeedd50f8a3d2f1a327594c2e90ecee9c42 | |
parent | c8040bdd8c0d4504c05932aa1426ab9cdd1d9cd9 [diff] |
fix: `|=` does not work as expected on TOMLDocumentFixes #331Signed-off-by: Frost Ming <me@frostming.com> * fix: `|=` does not work as expected on TOMLDocument Fixes #331 Signed-off-by: Frost Ming <me@frostming.com> GitOrigin-RevId: 0c2c30d9ac854ec58aa61512acb60d81de3eff97 Change-Id: Icee4531bd6f62910f829e9eed80cb70bf2695271
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