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.1-cp312-cp312-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.12Windows x86-64

vulky-0.1.1-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.1-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

vulky-0.1.1-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.1-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

vulky-0.1.1-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.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.1-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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8c0ae0e225c19b37c761ab9096295408ecab6fda0895abb9f9226786bf3b200e
MD5 24f1a8b09be08a20f3c856e5729e9aa1
BLAKE2b-256 3be020a699afe9ee9d7924913091cf2367aaecc6e5f274ca6adc2a85f829f8b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 233a1a470f7800553d2a52994b05e98c9113ba4e2bdd79396de9be9bedad16a3
MD5 801a0246271f1ae0c658e942b03cd216
BLAKE2b-256 cd73deade3c347dc34c7dba85ca5fef5de175cd15696ef9a2273641c50cf9586

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 39e0a2de04df0b5de4f49b6afbde17dee5449e9e9e2b50dd910b5fc54f3fa79e
MD5 b3c8effc13878161a09429fda6547c63
BLAKE2b-256 a117fe6d9bff118acd00cbfc4a4e6641e8f65a49c793a086637ada483eee67c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71952f36bd1f43e9fcb12ef658189ae1ffe0cbd6b82b059f8e072a1fe570797e
MD5 7c822ab06df28b167c3581ad4273f979
BLAKE2b-256 e3eab7ffa496de6a552b500aa8cf2915655b5ceaccc8492f8fbd873650d1cf18

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: vulky-0.1.1-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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fca6518de7e79a26cac66a872b19a93239a7494c4cc622ba825f13a2d943033e
MD5 dccaf41131cad4a0ed09ae98298813c2
BLAKE2b-256 fe4ffbd571c1594632196806f02f754f2c8b199bd54eb66fde4c9afd5484721d

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for vulky-0.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a042cf9298e7eb05ba9c923f445488653526440bf810a5a662a8d45ee8d8769c
MD5 88339518bfe53b0c78d6f8fd84d88f6a
BLAKE2b-256 6a9196073c6b9d8f82aa2ef6eef0e944e407cb8eaf4bad6a272a4c517235d50c

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulky-0.1.1-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