commit | 9ad65c305a8dedac03293066a3f10cb5e8053dc7 | [log] [tgz] |
---|---|---|
author | Frost Ming <me@frostming.com> | Mon Mar 27 09:57:25 2023 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:04:49 2023 -0700 |
tree | d283e4144e473f92ab453eb5d9f6cbfe24827b74 | |
parent | b808ae0e524f82991f0ade187534eeba9ee0b2b1 [diff] |
fix: error occurs when trying to get str(array) Signed-off-by: Frost Ming <me@frostming.com> GitOrigin-RevId: 02409956180fc528e8b1666134ab73ad965e4677 Change-Id: I491002a530b6f97be1c4a4e74c973d32b1cfc4de
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