libclang


Namelibclang JSON
Version 18.1.1 PyPI version JSON
download
home_pagehttps://github.com/sighingnow/libclang
SummaryClang 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.
upload_time2024-03-17 15:00:26
maintainer
docs_urlNone
authorTao He
requires_python
licenseApache License 2.0
keywords clang python bindings
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            libclang-for-pip
================

[![PyPI](https://img.shields.io/pypi/v/libclang)](https://pypi.org/project/libclang)
![Python](https://img.shields.io/pypi/pyversions/libclang)
![Downloads](https://img.shields.io/pypi/dw/libclang)
[![License](https://img.shields.io/pypi/l/libclang)](https://github.com/sighingnow/libclang/blob/master/LICENSE.TXT)

[![Arch: x86\_64](https://img.shields.io/badge/arch-x86__64-brightgreen)](https://pypi.org/project/libclang/#files)
[![Arch: aarch64](https://img.shields.io/badge/arch-aarch64-yellowgreen)](https://pypi.org/project/libclang/#files)
[![Arch: arm](https://img.shields.io/badge/arch-arm-orange)](https://pypi.org/project/libclang/#files)

[![Linux](https://github.com/sighingnow/libclang/workflows/libclang-linux-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-amd64.yml)
[![Linux Arm](https://github.com/sighingnow/libclang/workflows/libclang-linux-arm/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-arm.yml)
[![Linux AArch64](https://github.com/sighingnow/libclang/workflows/libclang-linux-aarch64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-aarch64.yml)
[![Linux Alpine](https://github.com/sighingnow/libclang/workflows/libclang-alpine-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-alpine-amd64.yml)

[![MacOS Intel](https://github.com/sighingnow/libclang/workflows/libclang-macosx-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-macosx-amd64.yml)
[![MacOS M1](https://img.shields.io/cirrus/github/sighingnow/libclang?label=libclang-macosx-arm64)](https://cirrus-ci.com/github/sighingnow/libclang)

[![Windows](https://github.com/sighingnow/libclang/workflows/libclang-windows-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-windows-amd64.yml)
[![Windows AArch64](https://github.com/sighingnow/libclang/workflows/libclang-windows-aarch64/badge.svg)](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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sighingnow/libclang",
    "name": "libclang",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Clang Python Bindings",
    "author": "Tao He",
    "author_email": "sighingnow@gmail.com",
    "download_url": "",
    "platform": "any",
    "description": "libclang-for-pip\n================\n\n[![PyPI](https://img.shields.io/pypi/v/libclang)](https://pypi.org/project/libclang)\n![Python](https://img.shields.io/pypi/pyversions/libclang)\n![Downloads](https://img.shields.io/pypi/dw/libclang)\n[![License](https://img.shields.io/pypi/l/libclang)](https://github.com/sighingnow/libclang/blob/master/LICENSE.TXT)\n\n[![Arch: x86\\_64](https://img.shields.io/badge/arch-x86__64-brightgreen)](https://pypi.org/project/libclang/#files)\n[![Arch: aarch64](https://img.shields.io/badge/arch-aarch64-yellowgreen)](https://pypi.org/project/libclang/#files)\n[![Arch: arm](https://img.shields.io/badge/arch-arm-orange)](https://pypi.org/project/libclang/#files)\n\n[![Linux](https://github.com/sighingnow/libclang/workflows/libclang-linux-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-amd64.yml)\n[![Linux Arm](https://github.com/sighingnow/libclang/workflows/libclang-linux-arm/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-arm.yml)\n[![Linux AArch64](https://github.com/sighingnow/libclang/workflows/libclang-linux-aarch64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-linux-aarch64.yml)\n[![Linux Alpine](https://github.com/sighingnow/libclang/workflows/libclang-alpine-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-alpine-amd64.yml)\n\n[![MacOS Intel](https://github.com/sighingnow/libclang/workflows/libclang-macosx-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-macosx-amd64.yml)\n[![MacOS M1](https://img.shields.io/cirrus/github/sighingnow/libclang?label=libclang-macosx-arm64)](https://cirrus-ci.com/github/sighingnow/libclang)\n\n[![Windows](https://github.com/sighingnow/libclang/workflows/libclang-windows-amd64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-windows-amd64.yml)\n[![Windows AArch64](https://github.com/sighingnow/libclang/workflows/libclang-windows-aarch64/badge.svg)](https://github.com/sighingnow/libclang/actions/workflows/libclang-windows-aarch64.yml)\n\nThe repository contains code taken from [the LLVM project][1], to make it easier to install\nclang's python bindings.\n\nThe repository copies necessary Python binding files from LLVM repo, adds packaging scripts\nto make it a valid Python package and finally uploads the package to [pypi][2]. To make the libclang\navailable without installing the LLVM toolkits, this package provides bundled static-linked libclang\nshared library for different platforms, which, should work well on OSX, Windows, as well as\nusual Linux distributions.\n\nThe aim of this project is to make the `clang.cindex` (aka., Clang Python Bindings)\navailable for more Python users, without setting up the LLVM environment. To install the package,\nyou just need to run\n\n```bash\npip install libclang\n```\n\nNote that the library is named `libclang`, the package `clang` on PyPi is another package and\ndoesn't bundle the prebuilt shared library.\n\nInternals\n---------\n\nUpdate class variable `library_path` of `Config` in `cindex.py` as:\n\n```python\n    library_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'native')\n```\n\nLicense\n-------\n\nThis repository follows the license agreement of the LLVM project, see [Apache-2.0 WITH LLVM-exception](./LICENSE.TXT).\n\n[1]: https://github.com/llvm/llvm-project/tree/main/clang/bindings/python\n[2]: https://pypi.org/project/libclang\n\n\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "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.",
    "version": "18.1.1",
    "project_urls": {
        "Documentation": "https://libclang.readthedocs.io",
        "Homepage": "https://github.com/sighingnow/libclang",
        "Source": "https://github.com/sighingnow/libclang",
        "Tracker": "https://github.com/sighingnow/libclang/issues"
    },
    "split_keywords": [
        "clang",
        "python",
        "bindings"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dbed1df62b44db2583375f6a8a5e2ca5432bbdc3edb477942b9b7c848c720055",
                "md5": "efcf7e59c5970d4bcec8fb7482abded6",
                "sha256": "83ce5045d101b669ac38e6da8e58765f12da2d3aafb3b9b98d88b286a60964d8"
            },
            "downloads": -1,
            "filename": "libclang-18.1.1-py2.py3-none-macosx_11_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "efcf7e59c5970d4bcec8fb7482abded6",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 26420207,
            "upload_time": "2024-03-17T15:00:26",
            "upload_time_iso_8601": "2024-03-17T15:00:26.630215Z",
            "url": "https://files.pythonhosted.org/packages/db/ed/1df62b44db2583375f6a8a5e2ca5432bbdc3edb477942b9b7c848c720055/libclang-18.1.1-py2.py3-none-macosx_11_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-17 15:00:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sighingnow",
    "github_project": "libclang",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "libclang"
}
        
Elapsed time: 0.20942s