pyproject-fmt
Format your pyproject.toml file
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained (release 2 days ago), has zero known vulnerabilities, supports modern Python versions (3.10–3.15), and solves a real problem—keeping pyproject.toml formatting consistent with minimal configuration overhead. The permissive MIT license and lack of runtime dependencies make it low-risk. Medium install friction from compiled wheels is standard for modern Python tools and not a blocker.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or higher to run.
- Medium install friction due to compiled wheels across many platforms (cp310-abi3 through cp315-cp315t, multiple OS/architecture combinations), but actively maintained with a release just 2 days ago and no runtime dependencies to resolve.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this tool freely with minimal restrictions.
last release 2026-08-12 (2 days) · last repo commit 2026-08-12 · 85 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 908,448 downloads/mo, #4,752 on PyPI
Alternatives
Verify before relying
# Install via pipx or uv (recommended)
uv tool install pyproject-fmt
# Or use as a Python module
from pyproject_fmt import run
exit_code = run(["path/to/pyproject.toml"])- Whether the tool handles all TOML syntax edge cases beyond the documented configuration options.
- Performance characteristics on very large or deeply nested pyproject.toml files.
- Compatibility with non-standard or custom tool sections in pyproject.toml.
What it is and what it does
pyproject-fmt is a command-line formatter and Python library that applies consistent, opinionated formatting to pyproject.toml files while preserving comments. It follows the philosophy of tools like Black: minimal configuration by design, trading flexibility for predictability and smaller diffs. The tool can be used as a CLI (via pipx or uv), integrated into pre-commit hooks, or called directly from Python code via the run() function.
It offers configuration through a [tool.pyproject-fmt] table in your pyproject.toml or a standalone pyproject-fmt.toml file, with options to control column width, indentation, table formatting style (short/long), spacing between tables, and automatic Python version classifier generation. The formatter normalizes your project metadata layout, handles dependency specifiers, and can expand or collapse nested table structures according to your preferences.
Use it for
- Enforce consistent pyproject.toml formatting across a team or monorepo using a shared pyproject-fmt.toml configuration file.
- Integrate into pre-commit hooks to automatically format pyproject.toml on every commit.
- Programmatically format pyproject.toml files from within build scripts or CI/CD pipelines using the Python API.
- Auto-generate Python version classifiers based on your requires-python setting to keep metadata up-to-date.
- Standardize table formatting (collapsed dotted keys vs. expanded sections) across multiple projects.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained (release 2 days ago), has zero known vulnerabilities, supports modern Python versions (3.10–3.15), and solves a real problem—keeping pyproject.toml formatting consistent with minimal configuration overhead. The permissive MIT license and lack of runtime dependencies make it low-risk. Medium install friction from compiled wheels is standard for modern Python tools and not a blocker.
Install
pyproject-fmt on PyPI
Before you install
Medium install friction due to compiled wheels across many platforms (cp310-abi3 through cp315-cp315t, multiple OS/architecture combinations), but actively maintained with a release just 2 days ago and no runtime dependencies to resolve.
Requires Python 3.10 or higher to run.
License in practice
MIT license (permissive) means you can use, modify, and distribute this tool freely with minimal restrictions.
Quickstart
# Install via pipx or uv (recommended)
uv tool install pyproject-fmt
# Or use as a Python module
from pyproject_fmt import run
exit_code = run(["path/to/pyproject.toml"])
Verify before relying
- Whether the tool handles all TOML syntax edge cases beyond the documented configuration options.
- Performance characteristics on very large or deeply nested pyproject.toml files.
- Compatibility with non-standard or custom tool sections in pyproject.toml.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 908,448 / month, #4,752 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: Free Threading :: 1 - Unstable |
Evidence: pyproject_fmt-2.27.1-cp310-abi3-macosx_10_12_x86_64.whl; pyproject_fmt-2.27.1-cp310-abi3-macosx_11_0_arm64.whl; pyproject_fmt-2.27.1-cp310-abi3-manylinux_2_28_aarch64.whl; pyproject_fmt-2.27.1-cp310-abi3-manylinux_2_28_x86_64.whl; pyproject_fmt-2.27.1-cp310-abi3-manylinux_2_31_riscv64.whl; pyproject_fmt-2.27.1-cp310-abi3-musllinux_1_2_aarch64.whl; pyproject_fmt-2.27.1-cp310-abi3-musllinux_1_2_x86_64.whl; pyproject_fmt-2.27.1-cp310-abi3-win_amd64.whl; pyproject_fmt-2.27.1-cp310-abi3-win_arm64.whl; pyproject_fmt-2.27.1-cp314-cp314t-macosx_10_12_x86_64.whl; pyproject_fmt-2.27.1-cp314-cp314t-macosx_11_0_arm64.whl; pyproject_fmt-2.27.1-cp314-cp314t-manylinux_2_28_aarch64.whl; pyproject_fmt-2.27.1-cp314-cp314t-manylinux_2_28_x86_64.whl; pyproject_fmt-2.27.1-cp314-cp314t-musllinux_1_2_aarch64.whl; pyproject_fmt-2.27.1-cp314-cp314t-musllinux_1_2_x86_64.whl; pyproject_fmt-2.27.1-cp314-cp314t-win_amd64.whl; pyproject_fmt-2.27.1-cp314-cp314t-win_arm64.whl; pyproject_fmt-2.27.1-cp315-cp315t-macosx_10_12_x86_64.whl; pyproject_fmt-2.27.1-cp315-cp315t-macosx_11_0_arm64.whl; pyproject_fmt-2.27.1-cp315-cp315t-manylinux_2_28_aarch64.whl
Tags
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 › “pyproject.toml formatter”
- pyproject-fmtFormats pyproject.toml files with consistent, opinionated style and…
- uv-sortAlphabetically sorts dependencies in uv's pyproject.toml…
- tox-toml-fmtFormats tox.toml files with consistent style and comment…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also tox-toml-fmt · toml-fmt-common · uv-sort · tomlrt · toml-sort · sphinx-pyproject · validate-pyproject · pyproject-parser · tomlkit · Flake8-pyproject