Overview
Cymbal makes it easy to add functionality missing from libclang Python bindings
The Clang libclang python bindings use ctypes to invoke functions present in libclang dynamic library. In some cases, only a subset of the C functions are available, because the platform or version specific Python bindings omit functions. Cymbal simplfies the process of dynamically adding those methods to Types and Cursors.
Usage
Import Cymbal, monkeypatch any required functions, adding appropriate ctypes annotations as necessary.
import clang.cindex
from clang.cindex import *
import cymbal
from ctypes import *
# add functions omitted from the pip installable clang packages on OSX
cymbal.monkeypatch_type('get_template_argument_type',
'clang_Type_getTemplateArgumentAsType',
[Type, c_uint],
Type)
cymbal.monkeypatch_type('get_num_template_arguments',
'clang_Type_getNumTemplateArguments',
[Type],
c_int)
Requirements
The only requirements are libclang and the python bindings for libclang.
Contributing
If you experience problems with Cymbal, log them on GitHub. If you want to contribute code, please fork the code and submit a pull request.
Licensing
This project builds on the work of the LLVM team and the University of Illinois at Urbana-Champaign, but is no way affiliated with either group.
Metadata
Release files for cymbal 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cymbal-1.0.0.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cymbal-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 10.1 kB
Release files / cymbal-1.0.0.tar.gz
| Download URL | cymbal-1.0.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c79a00190bc8646505392b904e6e76410e98018f96f247ff7d363365241e2e0
|
|
BLAKE2b-256 checksum How to use checksums |
43171c6a47859d59743941480d1709aa003a78fbbd8c0903b14ff4e7f9a775a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cymbal-1.0.0-py2.py3-none-any.whl
| Download URL | cymbal-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5ff334e1be271ba895c9f4ed8c0bf6e4aff4f011cf6cbc61a5d9edf3319a4e86
|
|
BLAKE2b-256 checksum How to use checksums |
bac74eac7b0cb1f21938e69688c0b314f9691ad21aafabe186f9e8f0afbf9834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cymbal 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.