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/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

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.13.3.tar.gz (185.2 kB view details)

Uploaded Source

Built Distribution

tomlkit-0.13.3-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.13.3.tar.gz
  • Upload date:
  • Size: 185.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1014-azure

File hashes

Hashes for tomlkit-0.13.3.tar.gz
Algorithm Hash digest
SHA256 430cf247ee57df2b94ee3fbe588e71d362a941ebb545dec29b53961d61add2a1
MD5 b77382a3de2e0c1ab715ad456139e260
BLAKE2b-256 cc180bbf3884e9eaa38819ebe46a7bd25dcd56b67434402b66a58c4b8e552575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.13.3-py3-none-any.whl
  • Upload date:
  • Size: 38.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.3 Linux/6.11.0-1014-azure

File hashes

Hashes for tomlkit-0.13.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c89c649d79ee40629a9fda55f8ace8c6a1b42deb912b2a8fd8d942ddadb606b0
MD5 b3947690f14611f3d7c6499a1fa3b487
BLAKE2b-256 bd758539d011f6be8e29f339c42e633aae3cb73bffa95dd0f9adec09b9c58e85

See more details on using hashes here.

Supported by

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