Skip to main content

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_ARGS environment 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyoptix 9.1.2
File Size Uploaded Provenance Actions
pyoptix-9.1.2.tar.gz 8.9 MB With provenance Details for pyoptix-9.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyoptix 9.1.2
File Actions
pyoptix-9.1.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for pyoptix-9.1.2-cp312-cp312-win_amd64.whl
pyoptix-9.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pyoptix-9.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pyoptix-9.1.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for pyoptix-9.1.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
pyoptix-9.1.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for pyoptix-9.1.2-cp311-cp311-win_amd64.whl
pyoptix-9.1.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for pyoptix-9.1.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pyoptix-9.1.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for pyoptix-9.1.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
pyoptix-9.1.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for pyoptix-9.1.2-cp310-cp310-win_amd64.whl
pyoptix-9.1.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pyoptix-9.1.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pyoptix-9.1.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for pyoptix-9.1.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
pyoptix-9.1.2-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for pyoptix-9.1.2-cp39-cp39-win_amd64.whl
pyoptix-9.1.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for pyoptix-9.1.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pyoptix-9.1.2-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for pyoptix-9.1.2-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Total release size: 17.2 MB

Release files / pyoptix-9.1.2.tar.gz

Download URL pyoptix-9.1.2.tar.gz
Size 8.9 MB
Tags Source
SHA-256 checksum
How to use checksums
3984d4bd612287330264e9ea195e637c41d4df65fc79a69b92d63b305871763c
BLAKE2b-256 checksum
How to use checksums
8ad39b5d1b045f5050a4e26541cc503b5a7dc56c38eba5a3ba7b553f6af4e89c
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp312-cp312-win_amd64.whl

Download URL pyoptix-9.1.2-cp312-cp312-win_amd64.whl
Size 457.7 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
80852bfddc514b683f50c9e0178ca549560d7f178a48ddd842fda52f02c103d2
BLAKE2b-256 checksum
How to use checksums
4bf3ef42c43c15930efb8b14c1fb580c83c53380c9071d4071231e054491a486
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyoptix-9.1.2-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
ce7c4e1309446afdfa25f001ca6a12b5f006a8fb79a25a9d71d2c80962f4815c
BLAKE2b-256 checksum
How to use checksums
41747ce4f620f6b27d760f0d4ce75604c1063115d8fd1d88ae20d93cda6a87d9
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL pyoptix-9.1.2-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 758.5 kB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
cd4f810de2af1554c516dbd2ab5018155af5e625f17ab19b567b4d485414ddcf
BLAKE2b-256 checksum
How to use checksums
43285f563d90728c3d1d098920a3f15b5eeb83218be60eb44aa8aa78dc6a9ef8
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp311-cp311-win_amd64.whl

Download URL pyoptix-9.1.2-cp311-cp311-win_amd64.whl
Size 463.9 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
13c0c78ad55eb4694724f79d5368ccc1e18a1d3cc8fd22306c79bdf487281f43
BLAKE2b-256 checksum
How to use checksums
db1a036c98848e110ff8bd2959ed1630be68aa9510c62dbaccc420785e364f00
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyoptix-9.1.2-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
9b0e25693c2f681b9d3b3e28e62660ea024d9f4f3fd4320a7912f2da5cb8109d
BLAKE2b-256 checksum
How to use checksums
638d9401df0ad1f59c06a1b33b092df317a07794befb404b9c4949c32f3bc696
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL pyoptix-9.1.2-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 760.2 kB
Tags CPython 3.11 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
63a96f2678db239fdca7db081b9fb670d72b09499fc3f282738b73ad1fdfaaaf
BLAKE2b-256 checksum
How to use checksums
bed4aea510662eb4c775314501a19a5c9ab8c5deb8966eeea417700f56500b0c
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp310-cp310-win_amd64.whl

Download URL pyoptix-9.1.2-cp310-cp310-win_amd64.whl
Size 463.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
59256278a1d32d03723d4d1b23b21eb7a6fc0bd24344dee2bb48697a92062a5e
BLAKE2b-256 checksum
How to use checksums
c817d7cce7792f51d9eabd483cd5d169343bfd17e70394248c394a14ffc31353
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyoptix-9.1.2-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
5dc5f59d25b9d0eaea526731b9e4831666d22d08083165dee270d6e221ac1a72
BLAKE2b-256 checksum
How to use checksums
3992dd79800cfcbe7a478c0a0c8bf2913670c2a9de730533aafea58496c74742
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL pyoptix-9.1.2-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 758.8 kB
Tags CPython 3.10 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
4748fad327ccf34e55bbbec8c3b5e9db24d2e02b70f250684c282598b8f7d3f4
BLAKE2b-256 checksum
How to use checksums
25a74af9fe05b391c32aaf3bb16b0e4bc23d4ec77644ec5d7d7c10305963113b
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp39-cp39-win_amd64.whl

Download URL pyoptix-9.1.2-cp39-cp39-win_amd64.whl
Size 616.4 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
14bc2218177998a76f76edf1ae1c2dde86a3c5d2059a977060a03afaa7550715
BLAKE2b-256 checksum
How to use checksums
5c713b9dc64b4055bb1359902c2994d3a7981e74b590489a59481c2db38bd3f8
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL pyoptix-9.1.2-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
d0ceac61c8183f5bc2195f2feac44820bff714efc8764371e31fe6fef6be3203
BLAKE2b-256 checksum
How to use checksums
6273113d480d4c97951f68f6b052ebad72d76a4313d0dcc6aec886b46b7d57c1
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 30, 2026.

Transparency log

Release files / pyoptix-9.1.2-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL pyoptix-9.1.2-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 758.7 kB
Tags CPython 3.9 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
9ddf78880cc8993c90c2cfc7eb462dbb336977290129c1173e317517a910ac22
BLAKE2b-256 checksum
How to use checksums
ab5c6486d8cb879a661ef7794adebc2322241ab4a4a771e49191162432753a4f
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 30, 2026.

Transparency log

Security for pyoptix 9.1.2

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 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for pyoptix-9.1.2.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 30, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page