Clone this repo:
  1. c6223a2 chore(deps-dev): bump setuptools from 70.0.0 to 78.1.1 (#453) by dependabot[bot] · 3 weeks ago main
  2. 1819145 chore: bump version to 0.14.0 in pyproject.toml and __init__.py by Frost Ming · 3 weeks ago
  3. 4199481 chore(deps-dev): bump urllib3 from 2.2.2 to 2.6.3 (#452) by dependabot[bot] · 3 weeks ago
  4. 1b490e4 chore: update pre-commit hooks and refactor imports for consistency by Frost Ming · 3 weeks ago
  5. 67ed358 chore: update Python version and GitHub Actions to use latest versions (#451) by Frost Ming · 3 weeks ago

GitHub Release PyPI Version Python Versions License
Tests

TOML Kit - Style-preserving TOML library for Python

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.

Usage

See the documentation for more information.

Installation

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

Running tests

Please clone the repo with submodules with the following command:

git clone --recurse-submodules https://github.com/python-poetry/tomlkit.git

The toml-test submodule is required for running the tests.

You can then run the tests with

poetry run pytest -q tests