toml-fmt-common
toml-fmt-common is an internal utility library providing common logic for TOML formatters within the `toml-fmt` project, such as `pyproject-fmt` and `tox-toml-fmt`. While a PyPI package exists (current version 1.3.2), its primary purpose is as a dependency for other tools, not for direct end-user interaction. The development of its code has moved into the `tox-dev/toml-fmt` monorepo, where it is actively maintained as part of a larger ecosystem with frequent releases for its consuming projects.
Warnings
- gotcha This library is explicitly noted as 'meant to only be used by that project' (referring to the toml-fmt umbrella). Direct import and usage by end-users is not recommended and may lead to unexpected behavior or API instability, as its internal structure can change without warning.
- deprecated The standalone `tox-dev/toml-fmt-common` GitHub repository is deprecated. Its code and development have been migrated into the `tox-dev/toml-fmt` monorepo. While the PyPI package `toml-fmt-common` still exists and is updated, active development happens within the monorepo structure.
- gotcha Past issues have included panics when encountering non-array nodes in array operations and unintended write checks in `--check` and `--stdout` modes. While fixes have been applied, this highlights the potential for internal logic quirks if directly interacting with the library's components outside of its intended `toml-fmt` ecosystem.
Install
-
pip install toml-fmt-common
Quickstart
# toml-fmt-common is primarily an internal library and not designed for direct end-user import or standalone quickstart usage.