Skip to main content

Minimal Vulkan Python wrapper

Project description

vk

A minimal Vulkan Python package with a PyTorch-like import flow:

import vk

device = vk.create_device(device_index=0, enable_validation_layers=False)

The native extension is _vk and is loaded by vk/__init__.py.

Build and install (Windows PowerShell)

Set-Location "D:\projects\vk_project"
python -m pip install -U pip
python -m pip install -e .

Run example

Set-Location "D:\projects\vk_project"
python .\examples\create_device.py

Tutorials

Each tutorial can be opened directly in Google Colab, or built into a local Jupyter notebook via build_notebooks.bat (requires jupytext).

Tutorial Open in Colab
01 - Vulkan Devices Open In Colab
02 - Vectors and Matrices Open In Colab
03 - Basic Compute Open In Colab
04 - Basic Rasterization Open In Colab
05 - Vertex Buffers Open In Colab
06 - OBJ Viewer Open In Colab
07 - Texture Mapping Open In Colab
08 - Basic Raytracing Open In Colab
09 - Shadow Cast Open In Colab
10 - Whitted Raytracing Open In Colab

The notebooks themselves (tutorials/*.ipynb) must be committed/pushed to the repository for the Colab links to resolve.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vulky-0.1.0-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

vulky-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

vulky-0.1.0-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

vulky-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

vulky-0.1.0-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

vulky-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

File details

Details for the file vulky-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for vulky-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6a19a950d0e2c59e63d143001ef9551bda8617799001b2d16987f010154a664c
MD5 ccaa7e0ac1b9517e54cccae90c33bb7e
BLAKE2b-256 49c9b468bf611c3968a70a8612d9d5c649cd990d02e1e562f573b76e8c045d7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulky-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 313412bd339a402c4e8332b17440364045f2267f7697e430c71f1c2f70192266
MD5 bc5da5fd38bc6c11fe1116fb78f03310
BLAKE2b-256 91e5501284fd310189c53f91c5d8c8f3571f7f3ffcd4240f9a8443f1846398cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulky-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for vulky-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6405be380a08ce5bb6ba3d48782b8879f93b1454d223884f18416c06afa28bc5
MD5 2142da340c24e492a78eacddaf9b5b6a
BLAKE2b-256 2f85651036978dbdf7087f2c6f1b3dc69d7ec56b01f0f5997694baa79aae24e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulky-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 965ffa2a7ea8f3a1e64cb3434ac511991f2be90c7422462730b730f60dd5e166
MD5 6b11a8cfa2976c749d7a813674bc6d51
BLAKE2b-256 87583544c32f41cf5b724aebb9b7d1b4d3a4d969afadfcb29cb57f2b36ffa682

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulky-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for vulky-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 368d284e89a9d1419954d6e7273ef56d5f010608a2a6b0d3f6e1639d7f4ad5d4
MD5 f1bd6c6a57eca8d794a93afc3606ca47
BLAKE2b-256 6e66a7fe5c73e9d426037579cdafb88fd6f554243d62bf4dc162154a9ec5cc69

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulky-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c64ee22437728b517572b02de737af2593346471692faa7feb4868d5d4b8cabe
MD5 7acde03bd67c3fea3e19cf0e94f80216
BLAKE2b-256 f36409f18c2d4762239bab39978ef420fc8141311cee1a119d07d66ecebee432

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: cmake-multi-platform.yml on rendervous/vk_project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page