commit | 62d2c35915b9938bdd06cda02c11a74722b93daf | [log] [tgz] |
---|---|---|
author | Frost Ming <me@frostming.com> | Wed Aug 14 10:04:50 2024 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Aug 14 13:44:58 2024 -0700 |
tree | 9f234589372709dfe2be1e7621d7b12603696e9c | |
parent | 9ef8f5467d0bd087ca4ef1e5385bb5ab8083f99a [diff] |
fix: Empty table dumped when number of subtables > 1 (#378) Fixes #377 Signed-off-by: Frost Ming <me@frostming.com> GitOrigin-RevId: 28fe6ec7386e3923a3e87efae8ab580138f6fcbc Change-Id: I80fe9df2b7c95bee1f0e4bcd5e7b9a7b0701a235
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