commit | 3920560e6f8bebeb732d85ab9dbfa383d6778e81 | [log] [tgz] |
---|---|---|
author | Randy Döring <30527984+radoering@users.noreply.github.com> | Thu Jul 07 04:25:18 2022 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:02:11 2023 -0700 |
tree | 617f1f6a9839e04163f81e0cea6ff2fe92104ff8 | |
parent | f043e536a042e7dedb2ac970f925f88fd2147b5f [diff] |
Keep consistent line endings when changing files and use os.linesep as default for new files (#201) GitOrigin-RevId: 01e56ea366e5eea2b4b9ef436ad6c99a0b8569ec Change-Id: Ic149076bb58c7fbc5591a2dbc1a59637d8fdf371
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