Skip to main content

Clang Python Bindings, mirrored from the official LLVM repo: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python, to make the installation process easier.

Project description

libclang-for-pip

PyPI Python Downloads License

Arch: x86_64 Arch: aarch64 Arch: arm

Linux Linux Arm Linux AArch64 Linux Alpine

MacOS Intel MacOS M1

Windows Windows AArch64

The repository contains code taken from the LLVM project, to make it easier to install clang's python bindings.

The repository copies necessary Python binding files from LLVM repo, adds packaging scripts to make it a valid Python package and finally uploads the package to pypi. To make the libclang available without installing the LLVM toolkits, this package provides bundled static-linked libclang shared library for different platforms, which, should work well on OSX, Windows, as well as usual Linux distributions.

The aim of this project is to make the clang.cindex (aka., Clang Python Bindings) available for more Python users, without setting up the LLVM environment. To install the package, you just need to run

pip install libclang

Note that the library is named libclang, the package clang on PyPi is another package and doesn't bundle the prebuilt shared library.

Internals

Update class variable library_path of Config in cindex.py as:

    library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'native')

License

This repository follows the license agreement of the LLVM project, see Apache-2.0 WITH LLVM-exception.

Project details


Download files

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

Source Distribution

libclang-16.0.6.tar.gz (39.5 kB view details)

Uploaded Source

Built Distributions

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

libclang-16.0.6-py2.py3-none-win_arm64.whl (20.8 MB view details)

Uploaded Python 2Python 3Windows ARM64

libclang-16.0.6-py2.py3-none-win_amd64.whl (24.4 MB view details)

Uploaded Python 2Python 3Windows x86-64

libclang-16.0.6-py2.py3-none-musllinux_1_2_x86_64.whl (23.1 MB view details)

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

libclang-16.0.6-py2.py3-none-manylinux2014_armv7l.whl (18.7 MB view details)

Uploaded Python 2Python 3

libclang-16.0.6-py2.py3-none-manylinux2014_aarch64.whl (22.2 MB view details)

Uploaded Python 2Python 3

libclang-16.0.6-py2.py3-none-manylinux2010_x86_64.whl (22.9 MB view details)

Uploaded Python 2Python 3manylinux: glibc 2.12+ x86-64

libclang-16.0.6-py2.py3-none-macosx_11_0_arm64.whl (20.6 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

libclang-16.0.6-py2.py3-none-macosx_10_9_x86_64.whl (24.5 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

libclang-16.0.6-1-py2.py3-none-manylinux2014_armv7l.whl (18.7 MB view details)

Uploaded Python 2Python 3

libclang-16.0.6-1-py2.py3-none-manylinux2014_aarch64.whl (22.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file libclang-16.0.6.tar.gz.

File metadata

  • Download URL: libclang-16.0.6.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for libclang-16.0.6.tar.gz
Algorithm Hash digest
SHA256 4acdde39dfe410c877b4ccc0d4b57eb952100e4ee26bbdf6cfdb88e2033a7d31
MD5 fffb0029127aa45bbdc46da944a97693
BLAKE2b-256 c201ec65dffc8c94bd8cafd359a76992f3212a239a80ead05522995c105432b8

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-win_arm64.whl.

File metadata

  • Download URL: libclang-16.0.6-py2.py3-none-win_arm64.whl
  • Upload date:
  • Size: 20.8 MB
  • Tags: Python 2, Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for libclang-16.0.6-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 4a9acbfd9c135a72f80d5dbff7588dfb0c81458244a89b9e83526e8595880e0a
MD5 66ba01ebeb21091725cf580c6c9e8804
BLAKE2b-256 a9ace314353fd6e2d0110d4f8e03c2e6da6b72ce653206cb6a2dbc0ef16c73f8

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: libclang-16.0.6-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 24.4 MB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for libclang-16.0.6-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 daab4a11dae228f1efa9efa3fe638b493b14d8d52c71fb3c7019e2f1df4514c2
MD5 7eeae41c855497ba6e2d407c2f9e6790
BLAKE2b-256 028cdc970bc00867fe290e8c8a7befa1635af716a9ebdfe3fb9dce0ca4b522ce

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 f04e3060ae1f207f234d0608900c99c50edcb743e5e18276d78da2ddd727d39f
MD5 ba64b6b6d3ed300b671f42f1567a2abb
BLAKE2b-256 494616d980ced74d5188985518d04b71f33733dc18c1d9ce4adc9e9d51380f20

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 1e940048f51d0b0999099a9b78629ab8a64b62af5e9ff1b2b062439c21ee244d
MD5 e9e616ba076797ba47aed560ea438b5a
BLAKE2b-256 83e92223373884495fe9e5b83ed322dfc69b2b050ed2235eeb751e86bc9acb95

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8130482120500476a027171f8f3c8dfc2536b591716eea71fc5da22cae13131b
MD5 bf8bb2b4a079e9ee50bb7563a4be96ec
BLAKE2b-256 d066b4e67a05a00b54dab6af06e04b3e5dd8231c2b7a363df2f86f1a47808321

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9dcdc730939788b8b69ffd6d5d75fe5366e3ee007f1e36a99799ec0b0c001492
MD5 6b3c838cc473b7b0dc40fe9dbee3f906
BLAKE2b-256 eadf55525e489c43f9dbb6c8ea27d8a567b3dcd18a22f3c45483055f5ca6611d

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1a5ad1e895e5443e205568c85c04b4608e4e973dae42f4dfd9cb46c81d1486b
MD5 1465d90cb4dd458a3ff63b4f25542f1e
BLAKE2b-256 321f981809b77b71972beec34b3ff5422c1b1f7e519daac7b3cbd055c05ba2cf

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 da9e47ebc3f0a6d90fb169ef25f9fbcd29b4a4ef97a8b0e3e3a17800af1423f4
MD5 f4da3a7527ce7007bd7be0aa55ece310
BLAKE2b-256 c9eafe2a69cc6cfebf7c7ee8a6357566fc1cbb91632bde5869b669a396accb5f

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-1-py2.py3-none-manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-1-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 d80ed5827736ed5ec2bcedf536720476fd9d4fa4c79ef0cb24aea4c59332f361
MD5 8d6fb196fe59e92994f374aec187fac7
BLAKE2b-256 72ca6d2fa410dcbb5dfa0f59f89993f6e5fd02bed23d30d70ea8639dccd837c9

See more details on using hashes here.

File details

Details for the file libclang-16.0.6-1-py2.py3-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for libclang-16.0.6-1-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 88bc7e7b393c32e41e03ba77ef02fdd647da1f764c2cd028e69e0837080b79f6
MD5 15caa27ee5608527b9b5832de20bb823
BLAKE2b-256 fdc0c0a49651de49940cd096b3c44af639c4b9b65aad9ffe19d399db552e6b23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page