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-17.0.6.tar.gz (39.9 kB view details)

Uploaded Source

Built Distributions

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

libclang-17.0.6-py2.py3-none-win_arm64.whl (21.9 MB view details)

Uploaded Python 2Python 3Windows ARM64

libclang-17.0.6-py2.py3-none-win_amd64.whl (25.8 MB view details)

Uploaded Python 2Python 3Windows x86-64

libclang-17.0.6-py2.py3-none-musllinux_1_2_x86_64.whl (23.8 MB view details)

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

libclang-17.0.6-py2.py3-none-manylinux2014_armv7l.whl (19.4 MB view details)

Uploaded Python 2Python 3

libclang-17.0.6-py2.py3-none-manylinux2014_aarch64.whl (22.7 MB view details)

Uploaded Python 2Python 3

libclang-17.0.6-py2.py3-none-manylinux2010_x86_64.whl (23.4 MB view details)

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

libclang-17.0.6-py2.py3-none-macosx_11_0_arm64.whl (25.2 MB view details)

Uploaded Python 2Python 3macOS 11.0+ ARM64

libclang-17.0.6-py2.py3-none-macosx_10_9_x86_64.whl (25.4 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: libclang-17.0.6.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for libclang-17.0.6.tar.gz
Algorithm Hash digest
SHA256 b85bfe161c341f761dbeb07548216fefe206f27980a83279496d9358f341039f
MD5 5eb80156df8575e13b60b5901449a2eb
BLAKE2b-256 0e0af049847e1c56ebe859392f50532159deb2eba9b41523b223dc8411427e1e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for libclang-17.0.6-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 d47b60b60fd09d3eb601c0f3ad02180957bcf1d29708bb97dc3ff076b4b92bbd
MD5 2bc3d60bdf0eaf21bc9696c9d4890242
BLAKE2b-256 66d6cb35ffc25c1cc1bf7dc9980181b1f442e3af3f7727cac15e0f96783d1c9c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for libclang-17.0.6-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ec7a46a7f44603a89338d2275b9da979ba8d13216df47340bb4c03cf155fda78
MD5 95184bdf3a0473e703f218fb6eb908f0
BLAKE2b-256 7db5e917ffbdfeb0fbca82c7a2e908d62f18b7e1e6c61646c01e195add3a5067

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3349ad7f0b7e0bc221f6889264246c70112c457ad7da4fd42f706996cc773133
MD5 c8c576ac4a3ce18cc879a855aeb77c81
BLAKE2b-256 7075d4725c10587f4b1a56d4a880829572246b3e07a7cb342c4f9200a620e552

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 bdf57d08c32ef2e4689ffd1065ca3c8944b72b014a811228e57baf3f85b4bac1
MD5 a221e7527492b2ffe6d814c5f062de9a
BLAKE2b-256 919c3720269cc4945aec1c9b073dc5ec6f930f55604148698f4e06d870d08777

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f8436334baf0a15aabc49b09fa08ff6ee41d5b0ee9f19481e4df114e28fd8518
MD5 179b0bc0f8a0fb85504af6db2e369be4
BLAKE2b-256 93efdec89b877256c118d57ffc80bb4feaea1853dbfa5a17370ce2232791d1f4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3113a4f977a0bd52f25b8c9457854eaa77cfc0ba9cead7fc1f9bb74160b01fbd
MD5 c304faaee2240f13695ef04e03972f0c
BLAKE2b-256 032872d761f4343d1c7e788f293d9188fd2276051fde0d08e66b5831d1785636

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51616903bf6f3529d18591063e66b74d5f9622453eebbe280272a1595f56b7ca
MD5 74a969d8faec795df4989863174d6c73
BLAKE2b-256 c293e4b75e016e67d2e05580ddd15b843ba4013dd7fe649e7bb9742cfc172f53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-17.0.6-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f3229206612d870ecb7536abbcfcfa249e70c4dc36cefcfce437ba76a64c0417
MD5 1a93eb21f33d487c04779f84c745cb28
BLAKE2b-256 6ce9b83bdacdf35011d5d027c47c7a7df1588d4efb0bb2601f9c6e5f4ae60e1b

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