pywebnn
Python bindings for the W3C WebNN API, powered by rustnn.
Install
pywebnn is available on PyPI:
pip install pywebnn
Docs
Full documentation is published on GitHub Pages:
https://rustnn.github.io/pywebnn/
Quick Start
import numpy as np
import webnn
ml = webnn.ML()
context = ml.create_context(device_type="cpu")
builder = context.create_graph_builder()
x = builder.input("x", [2, 3], "float32")
y = builder.input("y", [2, 3], "float32")
out = builder.relu(builder.add(x, y))
graph = builder.build({"output": out})
result = context.compute(
graph,
{
"x": np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32),
"y": np.array([[0.1, 0.2, 0.3], [0.4, 0.5, 0.6]], dtype=np.float32),
},
)
print(result["output"])
Links
Metadata
Release files for pywebnn 0.5.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pywebnn-0.5.12.tar.gz | 388.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pywebnn-0.5.12-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details |
| pywebnn-0.5.12-cp312-cp312-manylinux_2_34_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.34+ x86-64 | Details |
| pywebnn-0.5.12-cp312-cp312-macosx_11_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 11.0+ ARM64 | Details |
Total release size: 6.9 MB
Release files / pywebnn-0.5.12.tar.gz
| Download URL | pywebnn-0.5.12.tar.gz |
|---|---|
| Size | 388.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b73f3d7305fff78e7b4360a9e9f67eac4943cbb96a33950c517c6c59f754dfe
|
|
BLAKE2b-256 checksum How to use checksums |
8547843a7747c95b9c5c35a40c9256e546c7c86ea62b3411116c9f91fd03d86c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency logRelease files / pywebnn-0.5.12-cp312-cp312-win_amd64.whl
| Download URL | pywebnn-0.5.12-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
e3d84cc4645a28e7d3d02a2e2d475d2a4a8f0d9267697ceab64105f5f0803c09
|
|
BLAKE2b-256 checksum How to use checksums |
afa3c5fb2fe8d8824b4f4563952eecf1d18846997eb92898f922b9b3bc8fc54d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency logRelease files / pywebnn-0.5.12-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | pywebnn-0.5.12-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.3 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
8462ef8e7dc3d4534cbb0f77c6a5a0f3fe9419eecbe30ecb4f025031155485d9
|
|
BLAKE2b-256 checksum How to use checksums |
9ce924a4ad61b423ae267d9900df31377dbe6946c7e1a7e0748e0c8f01a7fcd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency logRelease files / pywebnn-0.5.12-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | pywebnn-0.5.12-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cd464be72f8616deb691d8086ad8a69071c30a4c5bf1dec5acaae4f34a22c837
|
|
BLAKE2b-256 checksum How to use checksums |
61662ca8928e1add7d05db8bdf92933605a327d451f7298542c110e0aa472880
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 4, 2026.
Transparency log