Skip to main content

Style preserving TOML library

Project description

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/sdispater/tomlkit.git. We need the submodule - toml-test for running the tests.

You can run the tests with poetry run pytest -q tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tomlkit-0.12.3.tar.gz (191.0 kB view details)

Uploaded Source

Built Distribution

tomlkit-0.12.3-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file tomlkit-0.12.3.tar.gz.

File metadata

  • Download URL: tomlkit-0.12.3.tar.gz
  • Upload date:
  • Size: 191.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/6.2.0-1015-azure

File hashes

Hashes for tomlkit-0.12.3.tar.gz
Algorithm Hash digest
SHA256 75baf5012d06501f07bee5bf8e801b9f343e7aac5a92581f20f80ce632e6b5a4
MD5 b40ad495dea8a424831ba61b8505643c
BLAKE2b-256 dffc1201a374b9484f034da4ec84215b7b9f80ed1d1ea989d4c02167afaa4400

See more details on using hashes here.

File details

Details for the file tomlkit-0.12.3-py3-none-any.whl.

File metadata

  • Download URL: tomlkit-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Linux/6.2.0-1015-azure

File hashes

Hashes for tomlkit-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a645a9156dc7cb5d3a1f0d4bab66db287fcb8e0430bdd4664a095ea16414ba
MD5 aae5a975f744585a66ce12ec0552b57f
BLAKE2b-256 6e43159750d32481f16e34cc60090b53bc0a14314ad0c1f67a9bb64f3f3a0551

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page