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

Uploaded Source

Built Distribution

tomlkit-0.13.2-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.13.2.tar.gz
  • Upload date:
  • Size: 192.9 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.2.tar.gz
Algorithm Hash digest
SHA256 fff5fe59a87295b278abd31bec92c15d9bc4a06885ab12bcea52c71119392e79
MD5 0db1a3750c64b141720f05430df9b433
BLAKE2b-256 b109a439bec5888f00a54b8b9f05fa94d7f901d6735ef4e55dcec9bc37b5d8fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.13.2-py3-none-any.whl
  • Upload date:
  • Size: 38.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a974427f6e119197f670fbbbeae7bef749a6c14e793db934baefc1b5f03efde
MD5 192b3141d81f3f8a32093b53aa3599a2
BLAKE2b-256 f9b6a447b5e4ec71e13871be01ba81f5dfc9d0af7e473da256ff46bc0e24026f

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