Style preserving TOML library
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file tomlkit-0.12.2.tar.gz
.
File metadata
- Download URL: tomlkit-0.12.2.tar.gz
- Upload date:
- Size: 190.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df32fab589a81f0d7dc525a4267b6d7a64ee99619cbd1eeb0fae32c1dd426977 |
|
MD5 | ec49a4b68e3b63f1fb4ec12972990e48 |
|
BLAKE2b-256 | 9b9393f12cdd3b9da81e94f2435d01fe6b3e9edc7704a25d4ad260ce7906ca62 |
File details
Details for the file tomlkit-0.12.2-py3-none-any.whl
.
File metadata
- Download URL: tomlkit-0.12.2-py3-none-any.whl
- Upload date:
- Size: 37.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeea7ac7563faeab0a1ed8fe12c2e5a51c61f933f2502f7e9db0241a65163ad0 |
|
MD5 | ee3e08f7681b94f91600e671edb2f18d |
|
BLAKE2b-256 | 1527c53c6505ae6c94b7e11521e19855d7838396b9da09a519cf5f107df359a4 |