commit | a17ce38ebaa9cfd409d64f4bd0c4df95f99c6754 | [log] [tgz] |
---|---|---|
author | Frost Ming <mianghong@gmail.com> | Wed Jun 28 13:36:29 2023 +0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Oct 25 14:05:37 2023 -0700 |
tree | 8a1e345b388813dd459a42afcfc54335bf4f83f7 | |
parent | 3640491d6376e349c896eac5962e138999426a03 [diff] |
feat: allow users to register custom encoders (#296) GitOrigin-RevId: a3cb8a2b71bd70001d13e5455177d5fe96208256 Change-Id: Icd8a59cb81cbae9d5f2394da71e89735e12b3095
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