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

Windows Windows AArch64 Linux MacOS Linux Arm Linux AArch64 Linux Alpine

The repository contains code that 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, and adds packaging scripts to make it a valid Python package, the uploads the package to pypi. To make the libclang available without install 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-15.0.3.tar.gz (39.0 kB view details)

Uploaded Source

Built Distributions

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

libclang-15.0.3-py2.py3-none-win_arm64.whl (19.6 MB view details)

Uploaded Python 2Python 3Windows ARM64

libclang-15.0.3-py2.py3-none-win_amd64.whl (23.2 MB view details)

Uploaded Python 2Python 3Windows x86-64

libclang-15.0.3-py2.py3-none-musllinux_1_2_x86_64.whl (21.6 MB view details)

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

libclang-15.0.3-py2.py3-none-manylinux2014_armv7l.whl (17.8 MB view details)

Uploaded Python 2Python 3

libclang-15.0.3-py2.py3-none-manylinux2010_x86_64.whl (21.5 MB view details)

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

libclang-15.0.3-py2.py3-none-macosx_10_9_x86_64.whl (25.0 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: libclang-15.0.3.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for libclang-15.0.3.tar.gz
Algorithm Hash digest
SHA256 f7b94426fd72a1a10897452dec90ce2f30bd0acb2c9c96225ae2d96706c61c4e
MD5 5191e06516e4325292d21506a01986af
BLAKE2b-256 de0b1b36587fd992873846f0bc827a13a9f879673be3203e120207254cf1ec0a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for libclang-15.0.3-py2.py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 fa3e73a8bd85c87e9a1a0dc0c50d60ed457d90788aa793ab344e131be8e733d2
MD5 26baf10c78872079c3601ef7e72eac3d
BLAKE2b-256 d6c300c024ba1e0d6a1ecd5b71be4ccc1474dde694b82848c84d5b4ca4610357

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for libclang-15.0.3-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f2ee3556b06b46a412a0eb2266dbc916ec954d1fce785c3f21f8044f2d229262
MD5 dbb4ec8c75c5a704dd83151ecbaa6bd1
BLAKE2b-256 cd2f5a2f99689dde5a878abf6547c4aebc68304345581514c266223fe6524b3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-15.0.3-py2.py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0f26020d29576c8b2b94538b7e130e022962ee32282c6c08fe16c1228f2054e9
MD5 64b6c7bbd8dd4d0e3fc69354e42f77ba
BLAKE2b-256 44834990842021270a8b517fa02cab1deded2f8328c79761f1a1ab4b33da190b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-15.0.3-py2.py3-none-manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 9c5535e430eea1840fef1cbdfa942e2016d89d9599781254260920dae16618ea
MD5 a8ebcda4aa82d737874668c7fde76da5
BLAKE2b-256 7bf5d9d7466d97a62f1a7b8ffe0745ecec68dba0bf4b9de5a1ff221ca31ec6c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-15.0.3-py2.py3-none-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2eb0507828003438cc72129b71538141fd9d221f84055ccc51fe451b9499ce6a
MD5 c69062b103a28f197677a1deaa60839e
BLAKE2b-256 5ed55f0a6ea32937a21b6b3e3e340a21254ad46f58679fb5d5ea0ab070cb0c62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for libclang-15.0.3-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7df5361bd26d60c54775412cc4c88fe429329d23e851014273b5ed8d7a89541c
MD5 5e64c11db6d401b819a06486f810ca12
BLAKE2b-256 c2820d25426eb3d5e676b000e928c911944f1310923b1d944c49569d62f0413c

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