aikernel-wasm exposes the public AIKernel.Wasm C# surface to Python through a
thin pythonnet wrapper.
pip install aikernel-wasmDuring local development, run tests with the package source on PYTHONPATH or
install the package in editable mode.
from aikernel_wasm import (
WasmRuntime,
WasmRuntimeContext,
WasmProcessProvider,
WasmMemoryProvider,
WasmStdinProvider,
WasmFileSystemProvider,
WasmEventProvider,
WasmAudioProvider,
WasmScreenshotProvider,
WasmSaveStateProvider,
WasmTimeProvider,
WebGpuComputeCapability,
WebGpuComputeProvider,
WebGpuComputeInvoker,
wasm_provider_contracts,
)Assemblies are resolved in this order:
- bundled files under
aikernel_wasm/native - repository Release build output during local development
- local NuGet package cache
- paths listed in
AIKERNEL_WASM_ASSEMBLY_PATH
If a required assembly is missing, the wrapper fails closed with a clear
FileNotFoundError.
Python covers:
- runtime provider descriptors
- runtime provider construction wrappers
- WebGPU capability descriptor creation
- WebGPU provider and invoker construction wrappers
- assembly discovery and pythonnet runtime loading
The wrapper does not re-implement WASM execution, WebGPU dispatch, or Core provider semantics.