commit | 545200ab3bd076c9eb33229aa21d1f6d62bf097d | [log] [tgz] |
---|---|---|
author | Oleg Höfling <hoefling@users.noreply.github.com> | Thu Oct 27 09:18:12 2022 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:03:43 2023 -0700 |
tree | 0405c6cca53c812a3e24baee3cc1472bfb6c0a39 | |
parent | 81e02492fd9ffd495e83819e071d10a43697b43c [diff] |
fix: allow broader type for toml file path value (#243) * allow broader type for toml file path value Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * reuse strpath from typeshed Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> GitOrigin-RevId: cb822da80a53497033b5f66817fb2bbf0479fbe6 Change-Id: I73f0fa17655f8183b4dbfe014b2e05248bfe4b31
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