| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: tomlkit |
| 3 |
Version: 0.12.3 |
| 4 |
Summary: Style preserving TOML library |
| 5 |
Home-page: https://github.com/sdispater/tomlkit |
| 6 |
License: MIT |
| 7 |
Author: Sébastien Eustace |
| 8 |
Author-email: [email protected] |
| 9 |
Requires-Python: >=3.7 |
| 10 |
Classifier: License :: OSI Approved :: MIT License |
| 11 |
Classifier: Programming Language :: Python :: 3 |
| 12 |
Classifier: Programming Language :: Python :: 3.7 |
| 13 |
Classifier: Programming Language :: Python :: 3.8 |
| 14 |
Classifier: Programming Language :: Python :: 3.9 |
| 15 |
Classifier: Programming Language :: Python :: 3.10 |
| 16 |
Classifier: Programming Language :: Python :: 3.11 |
| 17 |
Classifier: Programming Language :: Python :: 3.12 |
| 18 |
Project-URL: Repository, https://github.com/sdispater/tomlkit |
| 19 |
Description-Content-Type: text/markdown |
| 20 |
|
| 21 |
[github_release]: https://img.shields.io/github/release/sdispater/tomlkit.svg?logo=github&logoColor=white |
| 22 |
[pypi_version]: https://img.shields.io/pypi/v/tomlkit.svg?logo=python&logoColor=white |
| 23 |
[python_versions]: https://img.shields.io/pypi/pyversions/tomlkit.svg?logo=python&logoColor=white |
| 24 |
[github_license]: https://img.shields.io/github/license/sdispater/tomlkit.svg?logo=github&logoColor=white |
| 25 |
[github_action]: https://github.com/sdispater/tomlkit/actions/workflows/tests.yml/badge.svg |
| 26 |
|
| 27 |
[![GitHub Release][github_release]](https://github.com/sdispater/tomlkit/releases/) |
| 28 |
[![PyPI Version][pypi_version]](https://pypi.org/project/tomlkit/) |
| 29 |
[![Python Versions][python_versions]](https://pypi.org/project/tomlkit/) |
| 30 |
[![License][github_license]](https://github.com/sdispater/tomlkit/blob/master/LICENSE) |
| 31 |
<br> |
| 32 |
[![Tests][github_action]](https://github.com/sdispater/tomlkit/actions/workflows/tests.yml) |
| 33 |
|
| 34 |
# TOML Kit - Style-preserving TOML library for Python |
| 35 |
|
| 36 |
TOML Kit is a **1.0.0-compliant** [TOML](https://toml.io/) library. |
| 37 |
|
| 38 |
It includes a parser that preserves all comments, indentations, whitespace and internal element ordering, |
| 39 |
and makes them accessible and editable via an intuitive API. |
| 40 |
|
| 41 |
You can also create new TOML documents from scratch using the provided helpers. |
| 42 |
|
| 43 |
Part of the implementation has been adapted, improved and fixed from [Molten](https://github.com/LeopoldArkham/Molten). |
| 44 |
|
| 45 |
## Usage |
| 46 |
|
| 47 |
See the [documentation](https://tomlkit.readthedocs.io/) for more information. |
| 48 |
|
| 49 |
## Installation |
| 50 |
|
| 51 |
If you are using [Poetry](https://poetry.eustace.io), |
| 52 |
add `tomlkit` to your `pyproject.toml` file by using: |
| 53 |
|
| 54 |
```bash |
| 55 |
poetry add tomlkit |
| 56 |
``` |
| 57 |
|
| 58 |
If not, you can use `pip`: |
| 59 |
|
| 60 |
```bash |
| 61 |
pip install tomlkit |
| 62 |
``` |
| 63 |
|
| 64 |
## Running tests |
| 65 |
|
| 66 |
Please clone the repo with submodules with the following command |
| 67 |
`git clone --recurse-submodules https://github.com/sdispater/tomlkit.git`. |
| 68 |
We need the submodule - `toml-test` for running the tests. |
| 69 |
|
| 70 |
You can run the tests with `poetry run pytest -q tests` |
| 71 |
|