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 as 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.10.1.tar.gz (183.7 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.10.1-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tomlkit-0.10.1.tar.gz
  • Upload date:
  • Size: 183.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for tomlkit-0.10.1.tar.gz
Algorithm Hash digest
SHA256 3c517894eadef53e9072d343d37e4427b8f0b6200a70b7c9a19b2ebd1f53b951
MD5 fab0b03c333fa0e96927a019e39bf0b1
BLAKE2b-256 60cd21a4dd7545350968e544f785e6be4273e6b58cc40a1ab1010d3ce573bc5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tomlkit-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 34.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.10 Linux/5.11.0-1028-azure

File hashes

Hashes for tomlkit-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3eba517439dcb2f84cf39f4f85fd2c3398309823a3c75ac3e73003638daf7915
MD5 1ea022f9ed658ae4c2b192b59e67e97c
BLAKE2b-256 77bc6dc5f4517f42ea7b8851f8ee31f6d6e61a8a9d3d70f45dd18318b16ce213

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