https://github.com/sighingnow/libclang
(Unofficial) Release libclang (clang.cindex) on pypi.
https://github.com/sighingnow/libclang
Last synced: 3 months ago
JSON representation
(Unofficial) Release libclang (clang.cindex) on pypi.
- Host: GitHub
- URL: https://github.com/sighingnow/libclang
- Owner: sighingnow
- License: other
- Created: 2020-08-06T11:43:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T09:07:02.000Z (8 months ago)
- Last Synced: 2025-07-09T05:32:55.524Z (3 months ago)
- Language: Python
- Homepage: https://pypi.org/project/libclang
- Size: 153 KB
- Stars: 93
- Watchers: 3
- Forks: 24
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
Awesome Lists containing this project
README
libclang-for-pip
================[](https://pypi.org/project/libclang)


[](https://github.com/sighingnow/libclang/blob/master/LICENSE.TXT)[](https://pypi.org/project/libclang/#files)
[](https://pypi.org/project/libclang/#files)
[](https://pypi.org/project/libclang/#files)[](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-amd64.yml)
[](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-arm.yml)
[](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-aarch64.yml)
[](https://github.com/sighingnow/libclang/actions/workflows/libclang-alpine-amd64.yml)[](https://github.com/sighingnow/libclang/actions/workflows/libclang-macosx-amd64.yml)
[](https://cirrus-ci.com/github/sighingnow/libclang)[](https://github.com/sighingnow/libclang/actions/workflows/libclang-windows-amd64.yml)
[](https://github.com/sighingnow/libclang/actions/workflows/libclang-windows-aarch64.yml)The repository contains code taken from [the LLVM project][1], 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][2]. 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```bash
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:
```python
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](./LICENSE.TXT).
[1]: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python
[2]: https://pypi.org/project/libclang