commit | b24d9f7dfb780649d10228ab84f619c02f082dab | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Sun Jan 29 16:31:58 2023 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:04:31 2023 -0700 |
tree | a061f82ae7f743928dd08df756f305c10b5d3b07 | |
parent | 0a4ae7466ca13c1298e46bf69667f21726066c59 [diff] |
fix: unwrap() for container children values (#266) GitOrigin-RevId: 713443620b1ac52f0070144bcb88c844f963b1a8 Change-Id: I1287f592a3dfc760565a66b737c96d87cf0092fd
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