pyopenxr
Unofficial Python bindings for the OpenXR SDK to access VR and AR devices
pyopenxr is a Python developer SDK for device tracking and rapid virtual reality prototyping using the headset-agnostic OpenXR API. It provides a clean, Pythonic interface to the OpenXR runtime, enabling cross-platform AR/VR development with minimal boilerplate.
🚀 Installation
pip install pyopenxr
🧪 Quick Start
import xr
# Query the available VR/AR extensions
available = xr.enumerate_instance_extension_properties()
# Replace with whatever extensions are required for your application...
required = [xr.KHR_OPENGL_ENABLE_EXTENSION_NAME]
for prop in required:
assert prop in available
Explore the complete working example
hello_xr.py
for a hands-on introduction.
Pythonic naming conventions
| symbol | Python example | C example |
|---|---|---|
| function | xr.create_instance(...) |
xrCreateInstance(...) |
| constant | xr.MAX_SYSTEM_NAME_SIZE |
XR_MAX_SYSTEM_NAME_SIZE |
| struct name | xr.ExtensionProperties |
XrExtensionProperties |
| type alias | xr.Version |
XrVersion |
| enum type | xr.FormFactor |
xrFormFactor |
| enum value | xr.FormFactor.HEAD_MOUNTED_DISPLAY |
XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY |
| handle | xr.Instance |
XrInstance |
📚 Documentation
Full API reference and guides are available
📦 License
This project is licensed under the Apache License 2.0.
Copyright © 2021 Christopher Bruns.
Metadata
Release files for pyopenxr 1.1.6501
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 |
|---|---|---|---|---|
| pyopenxr-1.1.6501.tar.gz | 22.1 MB | Without provenance | Details for pyopenxr-1.1.6501.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyopenxr-1.1.6501-py3-none-any.whl | Python 3 | none | any | Details for pyopenxr-1.1.6501-py3-none-any.whl |
Total release size: 79.3 MB
Release files / pyopenxr-1.1.6501.tar.gz
| Download URL | pyopenxr-1.1.6501.tar.gz |
|---|---|
| Size | 22.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
682516b03fe085dcbedecb96a10abbc116a29fbba8185b0f3152380abf290134
|
|
BLAKE2b-256 checksum How to use checksums |
85d069ab9f5655d6acf02bd2207deacfe9ed81346cfdea184be618e9491a5a91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Release files / pyopenxr-1.1.6501-py3-none-any.whl
| Download URL | pyopenxr-1.1.6501-py3-none-any.whl |
|---|---|
| Size | 57.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1d1af55ef39d5322926f01fc8adc8594feba93a30a4ddafed8451d3ebb1e2d39
|
|
BLAKE2b-256 checksum How to use checksums |
194d5b1970ebef3db32f38e7ffb4de3104a33de3627d7a5800b464c5601d42cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.13
|
Security for pyopenxr 1.1.6501
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.