$npx skillfedfor your agent

toml-sort

Toml sorting library

Worth itPyPI UtilitiesReleased Mar 2026723.4K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — toml_sort-0.24.4-py3-none-any.whl
v0.24.4 · released 2026-03-24 · Python >=3.9 · 1 runtime deps: tomlkit

Yes. The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real problem for projects using TOML configuration files. It is useful both as a CLI tool for ad-hoc formatting and as part of automated workflows. The permissive MIT license poses no barrier.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later.
  • Low friction install with a single runtime dependency (tomlkit).
  • Active maintenance with recent releases and no known vulnerabilities.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions.

last release 2026-03-24 (143 days) · last repo commit 2026-03-30 · 116 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 723,427 downloads/mo, #5,226 on PyPI

Verify before relying

pip install toml-sort

# Command line
toml-sort input.toml -o output.toml

# Or in-place
toml-sort --in-place input.toml

# Check without modifying
toml-sort --check input.toml
  • Whether the library API (as opposed to CLI) is documented and stable for programmatic use.
  • Performance characteristics on large TOML files or deeply nested structures.
Same gist for agents: .md · .json

What it is and what it does

toml-sort is a command-line utility and Python library for sorting and formatting TOML configuration files. It sorts tables and arrays of tables, optionally sorts keys within tables, and preserves comments and whitespace structure where possible. The tool can be used as a standalone CLI tool, integrated into build workflows for linting, or called as a Python library from other code.

The package handles four types of comments (header, footer, inline, and block) with fine-grained control over which to preserve or strip. It supports configuration via pyproject.toml with per-key overrides using glob-style wildcards, making it suitable for projects that want consistent TOML formatting across multiple files or as part of a CI/CD pipeline.

Use it for

  • Normalize and sort TOML files in a project as part of pre-commit hooks or CI linting.
  • Automatically organize pyproject.toml or other config files to a consistent structure.
  • Batch-format multiple TOML files with consistent rules via CLI or programmatic API.
  • Check whether TOML files conform to a sorted format without modifying them.
  • Configure per-section sort rules for complex TOML structures using overrides.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a real problem for projects using TOML configuration files. It is useful both as a CLI tool for ad-hoc formatting and as part of automated workflows. The permissive MIT license poses no barrier.

Install

toml-sort on PyPI

Before you install

Low friction install with a single runtime dependency (tomlkit). Active maintenance with recent releases and no known vulnerabilities.

Requires Python 3.9 or later.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions.

Quickstart

pip install toml-sort

# Command line
toml-sort input.toml -o output.toml

# Or in-place
toml-sort --in-place input.toml

# Check without modifying
toml-sort --check input.toml

Verify before relying

  • Whether the library API (as opposed to CLI) is documented and stable for programmatic use.
  • Performance characteristics on large TOML files or deeply nested structures.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
tomlkit
MaintenanceActively maintained 143 days since the last release
Last repo commit
First released
Downloads723,427 / month, #5,226 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: ConsoleLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Code GeneratorsTopic :: UtilitiesTyping :: Typed

Evidence: toml_sort-0.24.4-py3-none-any.whl

Tags

Capabilities
toml file sortingtoml formattersort toml filestoml lintertoml configuration formatterorganize toml structuretoml table sorter
Topics
cli-tooltoml-formattercode-quality
PyPI keywords
tomlsortcliunixutility

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “toml file sorting”

  • toml-sortCommand-line utility and Python library to sort and format TOML files…
  • uv-sortAlphabetically sorts dependencies in uv's pyproject.toml…
  • mdformat-front-mattersA plugin for mdformat that normalizes YAML, TOML, and JSON front…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also sort-lines · toml · tox-toml-fmt · tomlkit · rtoml · tomlrt · pyproject-fmt · tomli-w · natsort · toml-cli