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

Uploaded Source

Built Distribution

tomlkit-0.13.1-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.13.1.tar.gz
  • Upload date:
  • Size: 192.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for tomlkit-0.13.1.tar.gz
Algorithm Hash digest
SHA256 1be06879860054a26faba7acf2af62b45c94aa43b00a5f87fc445c5f930ad754
MD5 181419554e0a1f1b5d49214d481c0847
BLAKE2b-256 3e4a5b5a13efd33514374e872a084de9968a384c87fbfeb8959ca90551c0e2f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.13.1-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for tomlkit-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb12e89373b28f3cd6679035324770123d6df04488431e1c7bcecf17820ee2e4
MD5 aaa2959bf7d1ba0e2e23edd47d41c7e1
BLAKE2b-256 2c11385cbe44dc3ed0929c93e93053014462b003080c0c3c1fb66fd518d8db17

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