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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file libclang-18.1.1.tar.gz
.
File metadata
- Download URL: libclang-18.1.1.tar.gz
- Upload date:
- Size: 39.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1214966d08d73d971287fc3ead8dfaf82eb07fb197680d8b3859dbbbbf78250 |
|
MD5 | e860d9e9ffab51345eb70c12af4e9fae |
|
BLAKE2b-256 | 6e5cca35e19a4f142adffa27e3d652196b7362fa612243e2b916845d801454fc |
File details
Details for the file libclang-18.1.1-py2.py3-none-win_arm64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-win_arm64.whl
- Upload date:
- Size: 22.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0e1f49f04d3cd198985fea0511576b0aee16f9ff0e0f0cad7f9c57ec3c20e8 |
|
MD5 | b0c31f835fc0861c832c6deeae1c9aec |
|
BLAKE2b-256 | 71cfe01dc4cc79779cd82d77888a88ae2fa424d93b445ad4f6c02bfc18335b70 |
File details
Details for the file libclang-18.1.1-py2.py3-none-win_amd64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-win_amd64.whl
- Upload date:
- Size: 26.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dd2d3b82fab35e2bf9ca717d7b63ac990a3519c7e312f19fa8e86dcc712f7fb |
|
MD5 | 3c9c5eefe82232d31e2c8d795c90fd7e |
|
BLAKE2b-256 | 0b2d3f480b1e1d31eb3d6de5e3ef641954e5c67430d5ac93b7fa7e07589576c7 |
File details
Details for the file libclang-18.1.1-py2.py3-none-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 24.9 MB
- Tags: Python 2, Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f8eb8f65c279e765ffd28aaa7e9e364c776c17618af8bff22a8df58677ff4f |
|
MD5 | 8ebdf74be6e88728760be734fe3eec16 |
|
BLAKE2b-256 | 2dc2de1db8c6d413597076a4259cea409b83459b2db997c003578affdd32bf66 |
File details
Details for the file libclang-18.1.1-py2.py3-none-manylinux2014_armv7l.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-manylinux2014_armv7l.whl
- Upload date:
- Size: 20.3 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf4a99b05376513717ab5d82a0db832c56ccea4fd61a69dbb7bccf2dfb207dbe |
|
MD5 | 202a2dd0d101909cc944bceb69a962e3 |
|
BLAKE2b-256 | fe2fd920822c2b1ce9326a4c78c0c2b4aa3fde610c7ee9f631b600acb5376c26 |
File details
Details for the file libclang-18.1.1-py2.py3-none-manylinux2014_aarch64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-manylinux2014_aarch64.whl
- Upload date:
- Size: 23.8 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54dda940a4a0491a9d1532bf071ea3ef26e6dbaf03b5000ed94dd7174e8f9592 |
|
MD5 | 954e82cd4660e2041fa494710559b0e1 |
|
BLAKE2b-256 | 3c3df0ac1150280d8d20d059608cf2d5ff61b7c3b7f7bcf9c0f425ab92df769a |
File details
Details for the file libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-manylinux2010_x86_64.whl
- Upload date:
- Size: 24.5 MB
- Tags: Python 2, Python 3, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c533091d8a3bbf7460a00cb6c1a71da93bffe148f172c7d03b1c31fbf8aa2a0b |
|
MD5 | 17a0f1f0bd0d5616abb1a60a130cd0ad |
|
BLAKE2b-256 | 1dfc716c1e62e512ef1c160e7984a73a5fc7df45166f2ff3f254e71c58076f7c |
File details
Details for the file libclang-18.1.1-py2.py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 26.4 MB
- Tags: Python 2, Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83ce5045d101b669ac38e6da8e58765f12da2d3aafb3b9b98d88b286a60964d8 |
|
MD5 | efcf7e59c5970d4bcec8fb7482abded6 |
|
BLAKE2b-256 | dbed1df62b44db2583375f6a8a5e2ca5432bbdc3edb477942b9b7c848c720055 |
File details
Details for the file libclang-18.1.1-py2.py3-none-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: libclang-18.1.1-py2.py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 26.5 MB
- Tags: Python 2, Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f14c3f194704e5d09769108f03185fce7acaf1d1ae4bbb2f30a72c2400cb7c5 |
|
MD5 | c9d4b9eed6162ec528626fde307d6eee |
|
BLAKE2b-256 | e2e5fc61bbded91a8830ccce94c5294ecd6e88e496cc85f6704bf350c0634b70 |
File details
Details for the file libclang-18.1.1-1-py2.py3-none-macosx_11_0_arm64.whl
.
File metadata
- Download URL: libclang-18.1.1-1-py2.py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 25.8 MB
- Tags: Python 2, Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b2e143f0fac830156feb56f9231ff8338c20aecfe72b4ffe96f19e5a1dbb69a |
|
MD5 | fd4d853609aa224d36b457e1a98df943 |
|
BLAKE2b-256 | 4b49f5e3e7e1419872b69f6f5e82ba56e33955a74bd537d8a1f5f1eff2f3668a |