clang-format
Clang-Format is an LLVM-based code formatting tool
Decision gist · record as of 2026-08-14
Yes, if you need clang-format in a Python environment or CI pipeline. The package is actively maintained, has no runtime dependencies, carries a permissive license, and offers broad platform support. Install friction is moderate due to platform-specific wheels, but that is expected and handled transparently by pip. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Medium install friction due to platform-specific binary wheels for multiple architectures (x86_64, ARM, ppc64le, s390x, and others across Linux, macOS, Windows).
- Package is actively maintained with a release 34 days ago and no runtime dependencies to manage.
License · maintenance · safety
Apache 2.0 (permissive) — Licensed under Apache 2.0 with LLVM exceptions (permissive). Safe for commercial and private use; you may use, modify, and distribute it freely provided you include the license notice.
last release 2026-07-11 (34 days) · last repo commit 2026-08-14 · 39,797 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,314,047 downloads/mo, #2,333 on PyPI
Alternatives
Verify before relying
pip install clang-format
python -m clang_format --help
# Or use with pipx: pipx run clang-format --help- Exact Python version compatibility (requires_python is unspecified in metadata)
- Whether the package works on Python 2 despite py2 wheel names (modern clang-format may require Python 3)
- Performance characteristics and formatting rule customization options
What it is and what it does
clang-format is a Python distribution of the LLVM clang-format utility, which automatically formats C, C++, and CUDA code according to a style guide. Instead of downloading and installing clang-format separately from your system package manager, you can install it directly from PyPI as a Python package, making it easier to pin a specific version and use in CI/CD pipelines or development workflows.
The package provides pre-built binaries for many platforms (Linux on x86_64, ARM, ppc64le, s390x; macOS on Intel and Apple Silicon; Windows on x86 and ARM64). It integrates well with pre-commit hooks and can be run via pipx for one-off invocations without a full installation. The versioning of the package matches the underlying clang-format release, so version 22.1.8 corresponds to LLVM clang-format 22.1.8.
Use it for
- Enforce consistent C/C++ code style in CI/CD pipelines by installing a pinned clang-format version without system dependencies
- Use as a pre-commit hook to automatically format staged C++ files before commit
- Run clang-format on demand via pipx in GitHub Actions or other CI runners without pre-installation steps
- Distribute a development environment where all team members use the same clang-format version regardless of OS
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need clang-format in a Python environment or CI pipeline.
The package is actively maintained, has no runtime dependencies, carries a permissive license, and offers broad platform support. Install friction is moderate due to platform-specific wheels, but that is expected and handled transparently by pip. No known vulnerabilities.
Install
clang-format on PyPI
Before you install
Medium install friction due to platform-specific binary wheels for multiple architectures (x86_64, ARM, ppc64le, s390x, and others across Linux, macOS, Windows). Package is actively maintained with a release 34 days ago and no runtime dependencies to manage.
License in practice
Licensed under Apache 2.0 with LLVM exceptions (permissive). Safe for commercial and private use; you may use, modify, and distribute it freely provided you include the license notice.
Quickstart
pip install clang-format
python -m clang_format --help
# Or use with pipx: pipx run clang-format --help
Verify before relying
- Exact Python version compatibility (requires_python is unspecified in metadata)
- Whether the package works on Python 2 despite py2 wheel names (modern clang-format may require Python 3)
- Performance characteristics and formatting rule customization options
Package facts
| License | Apache 2.0 permissive |
| Python support | Not specified |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 34 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,314,047 / month, #2,333 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: CProgramming Language :: C++Topic :: Software Development :: Quality Assurance |
Evidence: clang_format-22.1.8-py2.py3-none-macosx_10_9_x86_64.whl; clang_format-22.1.8-py2.py3-none-macosx_11_0_arm64.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; clang_format-22.1.8-py2.py3-none-manylinux_2_31_armv7l.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_aarch64.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_armv7l.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_i686.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_ppc64le.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_s390x.whl; clang_format-22.1.8-py2.py3-none-musllinux_1_2_x86_64.whl; clang_format-22.1.8-py2.py3-none-win32.whl; clang_format-22.1.8-py2.py3-none-win_amd64.whl; clang_format-22.1.8-py2.py3-none-win_arm64.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 › “clang-format python package”
- clang-formatPackages the clang-format code formatter as a Python-installable…
- yapfYAPF automatically reformats Python code to conform to a specified…
- lintrunner-adaptersProvides adapter integrations for lintrunner, enabling unified…
Give your agent the search over MCP, or paste the wish link into any chat.
More Quality Assurance packages
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
Ruff is a Python linter and code formatter written in Rust that combines linting, formatting, and code fixing into a single tool, replacing Flake8, Black, isort, and related utilities.
Pexpect spawns and controls interactive console applications by sending input and matching output patterns, automating tasks that would otherwise require manual interaction.
Black reformats Python source code to a consistent style by parsing entire files and rewriting them according to an opinionated, deterministic set of rules, eliminating manual formatting decisions.
pytest-xdist distributes pytest tests across multiple CPU cores or machines to speed up test execution, with the simplest usage being `pytest -n auto` to spawn workers equal to available CPUs.
Install it if your test suite takes long enough that parallelization would save meaningful time.
Validates AWS CloudFormation templates in YAML or JSON format against resource provider schemas and best practices, checking property values and configuration correctness.
Install it if you work with CloudFormation templates.
See also clang-tidy · shfmt-py · cppyy-cling · llvm-testing-tools · clang · cmake · libclang · scikit-build · pre-commit-uv · reformat-gherkin