oapython
oapython is the Python distribution for
OA, a Vulkan 1.4 GPU-first compute,
machine-learning, Vision, Audio, Ui, Plot, Media, and cryptography framework. Install
oapython; import it as oa.
0.7 development preview. The bindings execute real OA C++ objects and Vulkan kernels, but the Python API and binary ABI are not frozen.
Install
python -m pip install oapython
The current wheel targets Linux x86-64, CPython 3.12, and glibc 2.39+. The host must provide a Vulkan loader and a working vendor ICD.
First computation
from oa import *
a = FnMatrix.ones([2, 3])
b = FnMatrix.full([2, 3], 2.0)
c = (a + b) * 0.5
print(FnMatrix.copyToHost(c))
Import is host-only. The first device-backed request creates the native OA host; beginner code does not initialize an engine manually.
Public surface
| Owner | Surface |
|---|---|
Matrix, FnMatrix |
matrices, shapes, dtypes, factories, operators, and numerical operations |
QuantizedMatrix, Quantization |
semantic Q4/Q8 inference weights, pack/dequantize, fused matmul, and .oam persistence |
Module, FnLoss, FnAutograd |
modules, autograd, losses, optimizers, training, and metrics |
Image, FnImage |
image operations and still-image codecs; Vision/Media sessions own video and capture |
Audio, FnAudio |
semantic audio decode/processing operations, GPU saturation/Biquad/SOS filters, and stateful packetization |
plot |
retained figures, Line/Scatter/Bar/Histogram/Heatmap/Image artists, themes, and deterministic image output |
FnHash and Crypto values |
host cryptography and GPU public-data hashing when included in the wheel |
Python uses the same compute graph and kernels as native C++; it is not a NumPy or CPU fallback implementation. Classes use PascalCase and operations use camelCase in both languages, so a Python prototype translates directly to the C++ API. Lowercase domain modules expose the same objects as the root package.
GPU Audio operations use the same public values in Python and C++:
from oa import BiquadCoefficients, FnAudio
audio = FnAudio.decodeFile("input.wav")
section = BiquadCoefficients()
section.b0, section.b1, section.b2 = 0.25, 0.5, 0.25
filtered = FnAudio.sosFilter(audio, [section])
mastered = FnAudio.saturate(filtered, 6.0, 0.5)
FnAudio.saveWavF32("output.wav", mastered)
Core, Ml, Audio, Vision, Plot, end-to-end MNIST, and the canonical 15-workload NLP suite live under
sdk/py/tutorials.
The current desktop matrix and preview-to-preview performance history are published in
the NLP benchmark.
Links
OA is source-available under the Business Source License 1.1 and converts to Apache-2.0 on the Change Date stated in the license.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oapython-0.7.13-cp312-cp312-manylinux_2_39_x86_64.whl.
File metadata
- Download URL: oapython-0.7.13-cp312-cp312-manylinux_2_39_x86_64.whl
- Upload date:
- Size: 15.7 MB
- Tags: CPython 3.12, manylinux: glibc 2.39+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e71e8d5028e570d64d47711ddc6e29760f0b783da0969067c26de0a76c96acc6
|
|
| MD5 |
bc90a0f4108e9e3562111e7f1cda0ed5
|
|
| BLAKE2b-256 |
f3a47b8db8edb29fc1097441918e0a3853697846fbb6ed76a01ea59a1b23a6d8
|
Provenance
The following attestation bundles were made for oapython-0.7.13-cp312-cp312-manylinux_2_39_x86_64.whl:
Publisher:
ci.yml on realminc/oa
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oapython-0.7.13-cp312-cp312-manylinux_2_39_x86_64.whl -
Subject digest:
e71e8d5028e570d64d47711ddc6e29760f0b783da0969067c26de0a76c96acc6 - Sigstore transparency entry: 2570501937
- Sigstore integration time:
-
Permalink:
realminc/oa@53ab59c62ec633d6546bc72c12de7bf929422295 -
Branch / Tag:
refs/tags/v0.7.13 - Owner: https://github.com/realminc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@53ab59c62ec633d6546bc72c12de7bf929422295 -
Trigger Event:
push
-
Statement type: