Skip to main content

Helps you add functionality missing from libclang Python bindings

Project description


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.

MIT License Continuous Integration Coverage Testing Results


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

                        [Type, c_uint],



The only requirements are libclang and the python bindings for libclang.


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.


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.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
cymbal-1.0.0-py2.py3-none-any.whl (5.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3
cymbal-1.0.0.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page