Skip to main content

clang-format Python distribution

PyPI Release

This project packages the clang-format utility as a Python package. It allows you to install clang-format directly from PyPI:

python -m pip install clang-format

This projects intends to release a new PyPI package for each major and minor release of clang-format.

Use with pipx

You can use pipx to run clang-format, as well. For example, pipx run clang-format <args> will run clang-format without any previous install required on any machine with pipx (including all default GitHub Actions / Azure runners, avoiding requiring a pre-install step or even actions/setup-python).

Use from pre-commit

A pre-commit hook is also provided, use like this:

- repo: https://github.com/pre-commit/mirrors-clang-format
  rev: v23.1.1
  hooks:
  - id: clang-format
    types_or: [c++, c, cuda]

In contrast to many other pre-commit hooks, the versioning of the hook matches the versioning of clang-format.

If you are required to stick with a given major/minor version of clang-format with your pre-commit-hook, you can use this alternative hook repository that also receives backports of older versions of clang-format. Currently, all major/minor versions of LLVM >= 10 are supported. It is best to subscribe to releases of the hook repository to get notified of new backport releases, as pre-commit's auto-upgrade functionality will not work in that case.

Building new releases

The clang-format-wheel repository provides the logic to build and publish binary wheels of the clang-format utility.

In order to add a new release, the following steps are necessary:

Alternatively, the workflow can be triggered manually:

On manual triggers, the following input variables are available:

  • llvm_version: Override the LLVM version (default: "")
  • wheel_version: Override the wheel packaging version (default "0")
  • skip_emulation: Set which emulation builds to skip, e.g. "qemu" (default: "")
  • deploy_to_testpypi: Whether to deploy to TestPyPI instead of PyPI (default: false)

The repository with the precommit hook is automatically updated using a scheduled Github Actions workflow.

Acknowledgements

This repository extends the great work of several other projects:

  • clang-format itself is provided by the LLVM project under the Apache 2.0 License with LLVM exceptions.
  • The build logic is based on scikit-build-core which greatly reduces the amount of low level code necessary to package clang-format.
  • The scikit-build packaging examples of CMake and Ninja were very helpful in packaging clang-format.
  • The CI build process is controlled by cibuildwheel which makes building wheels across a number of platforms a pleasant experience (!)

Special thanks goes to mgevaert who initiated this project and maintained it until 2021.

We are grateful for the generous provisioning with CI resources that GitHub currently offers to Open Source projects.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clang_format-23.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

clang_format-23.1.1-py2.py3-none-win_arm64.whl (1.4 MB view details)

Uploaded Python 2Python 3Windows ARM64

clang_format-23.1.1-py2.py3-none-win_amd64.whl (1.5 MB view details)

Uploaded Python 2Python 3Windows x86-64

clang_format-23.1.1-py2.py3-none-win32.whl (1.4 MB view details)

Uploaded Python 2Python 3Windows x86

clang_format-23.1.1-py2.py3-none-musllinux_1_2_x86_64.whl (2.9 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ x86-64

clang_format-23.1.1-py2.py3-none-musllinux_1_2_s390x.whl (3.3 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ s390x

clang_format-23.1.1-py2.py3-none-musllinux_1_2_ppc64le.whl (3.2 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ ppc64le

clang_format-23.1.1-py2.py3-none-musllinux_1_2_i686.whl (3.1 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ i686

clang_format-23.1.1-py2.py3-none-musllinux_1_2_armv7l.whl (2.6 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ ARMv7l

clang_format-23.1.1-py2.py3-none-musllinux_1_2_aarch64.whl (2.8 MB view details)

Uploaded Python 2Python 3musllinux: musl 1.2+ ARM64

clang_format-23.1.1-py2.py3-none-manylinux_2_31_armv7l.whl (1.7 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.31+ ARMv7l

clang_format-23.1.1-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

clang_format-23.1.1-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl (2.2 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.26+ s390xmanylinux: glibc 2.28+ s390x

clang_format-23.1.1-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl (2.2 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.26+ ppc64lemanylinux: glibc 2.28+ ppc64le

clang_format-23.1.1-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl (2.0 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.26+ i686manylinux: glibc 2.28+ i686

clang_format-23.1.1-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl (1.8 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.26+ ARM64manylinux: glibc 2.28+ ARM64

clang_format-23.1.1-py2.py3-none-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

clang_format-23.1.1-py2.py3-none-macosx_10_9_x86_64.whl (1.6 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

File details

Details for the file clang_format-23.1.1.tar.gz.

File metadata

  • Download URL: clang_format-23.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for clang_format-23.1.1.tar.gz
Algorithm Hash digest
SHA256 0cd866591d6cce31a6bf4b216a5810be3893cec1ad8213b746f21f5bee6d18bb
MD5 263555e629883dcedb8ec36b1703200f
BLAKE2b-256 015b50e0d309817837c872544459ae508307669987605fd336f8acc8e1b4ed1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1.tar.gz:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 7f81856d845b6274b888d0d5f51a1f819f38f080a5b9637a38873f6e0e2cde3b
MD5 c0316293d1e863b288ed941e3f6c965b
BLAKE2b-256 904c3ae3671f91d181bfda6148c684c3514c878767c0fbbb3793d4d804103d3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-win_arm64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 eaf3075d7e2bf477c150c6d53bfff040eca851365c0429a06b9bec0de65186d5
MD5 da32ca0855635f1753ad4cf948c522f5
BLAKE2b-256 4e98bcf1d46d62b63f92e8ee513dc2c3caa5c3168206af3785ada76ce994c96b

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-win_amd64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-win32.whl.

File metadata

  • Download URL: clang_format-23.1.1-py2.py3-none-win32.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 8109e5d13028987912f4477c43afcefa242a016a4212b8ed34dc10395177448b
MD5 8b8e054504b741871aaa20b84b619d76
BLAKE2b-256 fcb47c5f597be1df0db958294e53b375ca606fbbc4a741725e938cf187739d15

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-win32.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f351726f4706aea605225978484986386167edafa3f85a467bad4a44bfdfa97f
MD5 0fb17f4bf558819020c704c40e4c329b
BLAKE2b-256 67d06507318b8c3d3175066d02ba8322de2724b352c8df5153b4e512fba7de28

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_x86_64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_s390x.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_s390x.whl
Algorithm Hash digest
SHA256 6d896cd6c6b32dc31a16c9ba0714e1ea4c0359719552462d12aef80a8e45dcb3
MD5 bddde5f3455f625ad941fabf307df776
BLAKE2b-256 eb644fb8cfeb3ec6f3ed30a4ac9a36d8c7cc245cf48964a92272227e578331e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_s390x.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_ppc64le.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_ppc64le.whl
Algorithm Hash digest
SHA256 b71734b64d7b7ec7d4e4e167a67b34d0462dd83de5aa74af5de3af3a9d7546de
MD5 cd5536f38421092b56bb9685771d8152
BLAKE2b-256 bd79f23bb5c9f17e6464e86ca3bc1dbcd11705fd620a69d0379465cb4f4f6b98

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_ppc64le.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 68521e74541e34f4a299b82f07735981bb3bce4b0d455ce7a60beb8d9ab4decc
MD5 04df517884186272a64834cc3b489940
BLAKE2b-256 bfe7055d26ea53be9cb4ebecc98714deda9d16beed991c314e86b46955cac7e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_i686.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 a401297fe45f04ae0152f6b5f4c372ad602830be524c2e69469d700abdee1637
MD5 7e9bb8e7d889d040fff03c7d768b8bc8
BLAKE2b-256 7b0f705db2b7aab2c87e0f06a1fe9fcbb4828df6c9c944bfddc9f9f8422f05d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_armv7l.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 64edd9e43e1c6065239056ea1d8f091aa551379dd96ee311f9b1a973cabfcdde
MD5 285f6fc582d6ff5ea10a469b12a045d0
BLAKE2b-256 a7e7d4127a650065cc67322026be76a7ce2efe4635e61d9151f6cc0a58668871

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-musllinux_1_2_aarch64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_31_armv7l.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_31_armv7l.whl
Algorithm Hash digest
SHA256 8b2e286c8e7070609fbfbd511aed54ba2906a9a348237ba54b3fcab278c6eb78
MD5 6f9df31e9e9921aae1c61ddfebcee8f2
BLAKE2b-256 6f4f69fb11c496fbdad0924ba82ed45c631a3842bc26a6ad766070d8784e771d

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_31_armv7l.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 64900462c1203cee2fec364536c2dda708baf0619e15b52ceda926648cc82f56
MD5 12782451e0eec4a86a03968dffb53120
BLAKE2b-256 42ef3f8e215916e79ecd435b5bc20810443f80fce3fb8bbfe6d2783ceb775c1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 f965f1e50de06cb86af8ac23d55748b87876c12e7a156a53ec4417d91a6fe656
MD5 debbe8efd0eeeea69d783a04182a7281
BLAKE2b-256 70e67b1a41605228a6b58e670fc1ede2728a93a230906833bd1242eb0b2f0b8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 29a70106390a32ec552591e73fec4d9b3c892668fe28fe5c2c47bf68d550fe55
MD5 3d673896eeb17bc0d9215edb5eaed860
BLAKE2b-256 f14b70cc4a70e48ed4f992851e96da53a94dfed806179e2e6100f3a133268f4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 965c8bd87cabb26942a336bceb99186a2de6874a7d3f734e540090e634195726
MD5 ebd9795701806f68ee5fb93eacad9d51
BLAKE2b-256 186fc4b0520fb413632828a86a1ba1ed4629e7f80ac59b403b77a7baa7c2fd79

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 09af54d2ef51680b34e36ed71b9f510bd399fb7b10b29a2a40843cd0e0344228
MD5 cfbea3ec5e3090cb7af96fb4ea001677
BLAKE2b-256 0eb61a162e427d912b88653a66e99a22414d798eb885b761ffddb74dbc13963f

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d64a1788759c4cbc08a0aca21dd2bd38605c0758543aa15b8c0636508f0ebae7
MD5 fc849b4e8069265c65ca26aa2f7600f4
BLAKE2b-256 29daf354b637650ae04854d9096c252d08f03ccda7044b1f005861a4ddba28cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file clang_format-23.1.1-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8f8ea1e02f7cab8dace82a0d56733e532ffc3e6e41e658edc28261029e94c499
MD5 b4c89747b2a9f8d99ea6e975ee3c644b
BLAKE2b-256 45a3e45ab75ae0fbe8f90a637af146978d1ef3799c26252163a8068b19a46e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.1-py2.py3-none-macosx_10_9_x86_64.whl:

Publisher: release.yml on ssciwr/clang-format-wheel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

23.1.1 This release

18 files

23.1.0

18 files

22.1.8

18 files

22.1.5

18 files

22.1.4

18 files

22.1.3

18 files

22.1.2

18 files

22.1.1

18 files

22.1.0

18 files

21.1.8

18 files

21.1.7

18 files

21.1.6

18 files

21.1.5

18 files

21.1.2

18 files

21.1.1

18 files

21.1.0

18 files

20.1.8

18 files

20.1.7

16 files

20.1.6

16 files

20.1.5

16 files

20.1.4

16 files

20.1.3

15 files

20.1.0

15 files

19.1.7

15 files

19.1.6

15 files

19.1.5

15 files

19.1.4

15 files

19.1.3

15 files

19.1.2

15 files

19.1.1

15 files

19.1.0

15 files

18.1.8

15 files

18.1.7

15 files

18.1.6

15 files

18.1.5

15 files

18.1.4

15 files

18.1.3

15 files

18.1.2

15 files

18.1.1

15 files

18.1.0

15 files

17.0.6

15 files

17.0.5

15 files

17.0.4

15 files

17.0.3

14 files

17.0.2

14 files

17.0.1

14 files

16.0.6

14 files

16.0.5

14 files

16.0.4

14 files

16.0.3

14 files

16.0.2

14 files

16.0.1

14 files

16.0.0

14 files

15.0.7

8 files

15.0.6

8 files

15.0.4

8 files

14.0.6

9 files

14.0.5

9 files

14.0.4

9 files

14.0.3

9 files

14.0.1

9 files

14.0.0

9 files

13.0.1.1

9 files

13.0.1

9 files

13.0.0

9 files

12.0.1.2

9 files

12.0.1.1

9 files

12.0.1

9 files

11.1.0.2

9 files

11.1.0.1

9 files

11.1.0

6 files

11.0.1.2

9 files

11.0.1.1

9 files

11.0.1

6 files

10.0.1.1

9 files

10.0.1

6 files

9.0.0

1 file

8.0.1

1 file

7.1.0

1 file

6.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page