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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tomlkit-0.12.4-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.12.4.tar.gz
  • Upload date:
  • Size: 191.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for tomlkit-0.12.4.tar.gz
Algorithm Hash digest
SHA256 7ca1cfc12232806517a8515047ba66a19369e71edf2439d0f5824f91032b6cc3
MD5 e182df9625d617692a9ae035266634fe
BLAKE2b-256 7d494c0764898ee67618996148bdba4534a422c5e698b4dbf4001f7c6f930797

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.12.4-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for tomlkit-0.12.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd82d48a3dd89dee1f9d64420aa20ae65cfbd00668d6f094d7578a78efbb77b
MD5 bbf64044f7abffea477651217c6e7793
BLAKE2b-256 07fac96545d741f2fd47f565e4e06bfef0962add790cb9c2289d900102b55eca

See more details on using hashes here.

Supported by

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