PyOptiX
Python bindings for NVIDIA OptiX ray tracing SDK.
PyOptiX provides high-performance Python bindings for NVIDIA OptiX, enabling GPU-accelerated ray tracing in Python applications. OptiX is a high-performance ray tracing API designed for optimal performance on NVIDIA GPUs.
Quick Installation
Installation of the OptiX 9.1 Python bindings can be performed directly via pip.
pip install pyoptix
Source Installation
For a local build and installation from source, including building against legacy OptiX releases, first clone this repository. Then follow instructions below.
git clone https://github.com/NVIDIA/otk-pyoptix
Dependencies
Python
Python versions 3.9+ are supported.
CUDA Toolkit
Install CUDA Toolkit version 10.0 or newer.
Note: OptiX headers are automatically fetched during build. You do NOT need to install the OptiX SDK separately to build the optix Python module. However, the SDK will need to be installed to run the examples.
Build system requirements:
Building PyOptiX from source
Once the otk-pyoptix repository has been cloned and all dependencies satisfied:
cd otk-pyoptix
pip install .
Advanced Options:
- Additional CMake arguments can be passed via
PYOPTIX_CMAKE_ARGSenvironment variable
Examples programs
Several example programs are included in the github repository to allow testing of the API and a starting point for user applications.
Dependencies
To run the PyOptiX examples or tests, the python modules specified in otk-pyoptix/requirements.txt must be installed:
- pytest
- cupy
- numpy
- Pillow
- cuda-python (12.0 or newer recommended for OptiX 9.1)
In addition, the OptiX SDK must be installed to allow JIT compilation of the example shaders.
Virtual Environment
In most cases, it makes sense to setup a python environment. Below are examples of how to setup your environment with required example dependencies via eitherConda or venv.
venv Virtual Environment
Create and activate a new virtual environment, then install pre-requisites:
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
Conda Environment
Create and activate an environment containing pre-requisites:
conda create -n pyoptix python pytest conda-forge::cupy numpy pillow cuda-python
conda activate pyoptix
Running the example programs
Run the hello sample:
cd otk-pyoptix/examples
python hello.py
If the example runs successfully, a green square will be rendered.
Running the Test Suite
Test tests are using pytest and can be run from the test directory like this:
cd test
python -m pytest
Metadata
Release files for pyoptix 9.1.1
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 | Actions |
|---|---|---|---|---|
| pyoptix-9.1.1.tar.gz | 8.9 MB | With provenance | Details for pyoptix-9.1.1.tar.gz |
Built distributions (wheels)
Total release size: 14.2 MB
Release files / pyoptix-9.1.1.tar.gz
| Download URL | pyoptix-9.1.1.tar.gz |
|---|---|
| Size | 8.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7255570544a5fdf2885998231172edc1978bce1fe883f86e9940a0ff2192f791
|
|
BLAKE2b-256 checksum How to use checksums |
623419c969b2c557c6244a3c83f74b61ad2d5aaf798a29926908a6252f9c9649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp312-cp312-win_amd64.whl
| Download URL | pyoptix-9.1.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 457.9 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
822f9bc6280b04e950cf3dc8afa89650c41cb0bc97a5e58b5c5d15c011425ad3
|
|
BLAKE2b-256 checksum How to use checksums |
46395c41eb8b0f9a450bf6e3ab8afd42a92acd60298977e7211ac734a135962f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyoptix-9.1.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 818.0 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
e8438e7a02b4b89333c6ba3e034d299ad40d62835b8792f3d9b4761e82c860a1
|
|
BLAKE2b-256 checksum How to use checksums |
72b0da72e66b8ede0db8ab586a824c7aec584e6b9ee2243c884207868f8b45b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp311-cp311-win_amd64.whl
| Download URL | pyoptix-9.1.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 463.9 kB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7f810f340618421d05ab72938f1db24729683a5940fcd45129a758e7f6a0e908
|
|
BLAKE2b-256 checksum How to use checksums |
586bdf9610c61f3be0d14469197f96e43fbeeec390ac3f13dd8d42f0ca0bbfac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyoptix-9.1.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 810.7 kB |
| Tags | CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
bf59a79889c753817636bc262388165866851dbd31950272e46e0706609e7ba2
|
|
BLAKE2b-256 checksum How to use checksums |
4217dc884bf7042c79151ea266283d52e1574d93558e0d036f1a4ac3bfea6fd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp310-cp310-win_amd64.whl
| Download URL | pyoptix-9.1.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 463.2 kB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
16ee78d10161de4189ddc8c8c5a178f8a8bbf5a07a8f29ecab67b354b119b3d3
|
|
BLAKE2b-256 checksum How to use checksums |
970cca51bc9bdfccf21329dbdbb314162a52288f619e2f88940bbcd246faec9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyoptix-9.1.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 809.4 kB |
| Tags | CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
0c29194525075859a845121f6e4b4a0c33e6735a58ff25a7c139cf4eb0bca65d
|
|
BLAKE2b-256 checksum How to use checksums |
9e2e653a40153814267dea886f870b29793b53b56e20d927abf6d1b85e226cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp39-cp39-win_amd64.whl
| Download URL | pyoptix-9.1.1-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 616.5 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cf6f8e8fc95eec1712368e3263f69242c6c26dc16d9105bfc9f53694482faf98
|
|
BLAKE2b-256 checksum How to use checksums |
0856c9acce7da670bcdb1a58ab2e54f5cdbfcd1dd8dfa496f5e56c5124aef126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / pyoptix-9.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | pyoptix-9.1.1-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 809.9 kB |
| Tags | CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
fdc3945103f8b5c3d05ed94b717b4f38e148a6edd091257bb8d5233936ddd73f
|
|
BLAKE2b-256 checksum How to use checksums |
47e3c05185b984bb4912edb7f3a65e959b21df93fc09fff5c570742c36b05914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for pyoptix 9.1.1
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.
Full provenance
All 9 files in this release have been uploaded with provenance metadata.
Attestation for pyoptix-9.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA 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.