Skip to main content

C Vulkan Wrapper

Project description

CVulkan is a C extension for Vulkan. It leverages power of Vulkan with simplicity of Python.


CVulkan is a complete Vulkan wrapper. It keeps the original Vulkan API and try to limit the differences induced by Python.

How to install


You can install directly CVulkan with pip:

pip install cvulkan

Manual install

You can install it manually if you want the last version:

git clone
cd cvulkan
python install

How to contribute

To contribute, you should first read the How it works section. Any contribution is welcome and I answer quickly.

 How it works

CVulkan is a C module generated by a Python script. To proceed, the script computes a model of Vulkan API based on vk.xml (the file from Kronos describing the API) and then uses jinja2 templates to write the vulkanmodule.c file.

Here the basic steps:

  • Load vk.xml

  • Use xmltodict to parse the xml document

  • Generate a good data model from it

  • Pass the model to the jinja2 template engine

  • The template engine generate the final c file

Project details

Download files

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

Source Distribution

cvulkan-1.2.0.tar.gz (169.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page