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.0
  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.0.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.0-py2.py3-none-win_arm64.whl (1.4 MB view details)

Uploaded Python 2Python 3Windows ARM64

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

Uploaded Python 2Python 3Windows x86-64

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

Uploaded Python 2Python 3Windows x86

clang_format-23.1.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-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.0-py2.py3-none-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

clang_format-23.1.0-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.0.tar.gz.

File metadata

  • Download URL: clang_format-23.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 e751ffb23793d32660fab868bc6bc6f84a2c93bd9c2dc56d87059d091e24c62f
MD5 3613e82094f9c1d1fae8a9b9753f9190
BLAKE2b-256 7c5deef0c105ee0acf44cb28578db43df12e318102d649f677a7d22f0135c9a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0.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.0-py2.py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 6b565baa8d478eaac44a8a68802cce1e6e998e9c80680d222862761d1afe62e1
MD5 efe6ec7f967a8a0ae8382f8c9c23030d
BLAKE2b-256 8be0d44445801720bb21d9d8fb6a2c16f78065dc1f0d7c9379c5214dd07a2db8

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 c10a99dc55a5630bbf6135f004e057d1a3153e4f54cda3f67e0c0b5a150d1cdd
MD5 ec31e964c61c02b3e6a47e6e597184f8
BLAKE2b-256 9519501001c2aa10dff69eb3ec3802851abafbdd3adeb06db152fef553b5ef00

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-win32.whl.

File metadata

  • Download URL: clang_format-23.1.0-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.0-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 8fa176b2a4d994fdd1b26a7b016ceb09555a12ada5d4eefe75af7f550aef11e9
MD5 cbdf5fc580ae6af870187bc581f5ace1
BLAKE2b-256 539b51c725a240285d684936d25cd316775186dbc44bdb6e3bc43b2ccb438b5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 152d66ebaf333b920cd5a13b678976885d673cccfc647ee4e144dce97ad4b452
MD5 8e4a641f2100f32514838e86bac0a601
BLAKE2b-256 4d5a9d0304b2d454e255b75bc09ee83110864436dbf8014f42eb6ff5100952a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_s390x.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_s390x.whl
Algorithm Hash digest
SHA256 ef808d62b4af3de09710df602fea7b5c3e8e8eb0f515762eeafee35b2cba8384
MD5 56d3f10ba2c980d75ccc73cb311f1f23
BLAKE2b-256 9ab2411f94da09590226f8719ba82b94af79105011cbaae73522f55bd65d6f7e

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_ppc64le.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_ppc64le.whl
Algorithm Hash digest
SHA256 b8e46f4ca14991df82a8319ee598656e50228be58595e02a3e1b175dd6928d75
MD5 ff67e32b9af0b22df26f7398fca3497f
BLAKE2b-256 ea3792024a11ae51c70bf03a686b90b4ae898e12702749a96e13f0ea65a39d55

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 1d484e435c9b11db2bb69a6c485eced1667e06f24ef61260511a9abc283e5f76
MD5 2e018ff7fe4cef82ca8e7c92aabb44bd
BLAKE2b-256 87de2e17b643e70cff08508abfe97c9c36a9295346870c10880cd2116f90d9f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 7e469dade8f5796bc82eb35a497216d84971c881092e148bba217324bc3fb518
MD5 fdd4b0e978833ce33a0fbf30ee949e05
BLAKE2b-256 72eec6d0b705abce554854be6d232cc4cb003ee0fe1c1daebdd598a1c61ac343

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 42739bd675c7299beef49bb7ee6978bd427a4669cfc8c70d197582227ddd6dce
MD5 0e3ab16c2b338770629576eca5c9e6cb
BLAKE2b-256 df9773d91fe11f62525b711e37c96696e0dd6ad2fb40ce24cd36dc16f420e932

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_31_armv7l.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_31_armv7l.whl
Algorithm Hash digest
SHA256 421ad1b40b4d31a3a61b95a5feb0359a2fba7e708d0251f905ffa01c7f2a9c8e
MD5 ac9255046e86928fbaab1dee79e4d28b
BLAKE2b-256 c33bc2ae0a242d37bc3b318ea7bb6dac146f31023e641266fadd078121219a8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9c8e732d10689d23d59854d47efa048b0f87191113d1bc7df4286a5f960ecd17
MD5 c36634496786c8754cfa5236c2a8f145
BLAKE2b-256 d65e0cec4027161a74c9b04769a9e157463deee9ccbef672a2d13d9ab58bd7c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_26_s390x.manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 eee435dd5f1f31e750799421525a898b44ea05e7db4e6260ea4d21f51321d359
MD5 e4949bb8d957b8460e3fcb051bb9300b
BLAKE2b-256 bee7944031631cf257c64bf2241dbc786ed071c109cb0f6caa2727bd085a8d81

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 0e7a424dc53bba459d4fd61ed7e108534127f7c906ea6a12548e8cbf8f07f35d
MD5 782c2dd4b974463186399fc0874c49c2
BLAKE2b-256 e72fd2340cd312504e3add2b46f499618173da45b298b28754a085dec4129873

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_26_i686.manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 c41b7c35323865ea0743ea13473a78ffba0ee8fe01fe78ec3b01808372e418e1
MD5 d6ff144d0d5dabf5771578625877c120
BLAKE2b-256 baea3eed5fd7180a195bc7ef94c3f8c489b51ed383dced619c9a8ddc6ec313d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8935aae9adf87ccf462de0b2243dce0b1aee9e14ef67846b5389fd54fe44f8df
MD5 22a546c4d9ae1ca83a71d2a6e62eb724
BLAKE2b-256 563cafcc9c3a9ec5c1e8862ca96ce28e8f8f0155ec0f6f155e1c5ff9eb2eefc1

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 863177cce9b288d9d3d5035c14e914d2f40997acd2c5f601057857200b4f922f
MD5 b7885a7bce3b57204601681a8f225a24
BLAKE2b-256 6ced2499a06276607649189aea4dcf335c6145ec3e5df0a2653c5b00d27a7ef0

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for clang_format-23.1.0-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b2bf38c6de0a0a7a18a92ce9c37b7db83939f631b575f6fb5b62b3aae25d989c
MD5 47ddacc902f80482dac1d91e443d05e0
BLAKE2b-256 391219aa8e660d5bb464a624d99f4f580805ed69b0996d955ebab7b64b0290d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for clang_format-23.1.0-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.0 This release

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