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

Uploaded Source

Built Distribution

tomlkit-0.11.4-py3-none-any.whl (35.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.11.4.tar.gz
  • Upload date:
  • Size: 187.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-1014-azure

File hashes

Hashes for tomlkit-0.11.4.tar.gz
Algorithm Hash digest
SHA256 3235a9010fae54323e727c3ac06fb720752fe6635b3426e379daec60fbd44a83
MD5 d0edd43143c7840deb88185685cea8dd
BLAKE2b-256 8451092a8b945edc3b93f2de091ab9596006673caac063e3fac14f0fa6c69b1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.11.4-py3-none-any.whl
  • Upload date:
  • Size: 35.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.15.0-1014-azure

File hashes

Hashes for tomlkit-0.11.4-py3-none-any.whl
Algorithm Hash digest
SHA256 25d4e2e446c453be6360c67ddfb88838cfc42026322770ba13d1fbd403a93a5c
MD5 5696552c3dcd9c003de811de1714bc87
BLAKE2b-256 18312a87f292f752d39c6c207f9e44137e3e1d4250da880a9fbc0bbf630138e0

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