Metadata-Version: 2.4
Name: webgpu
Version: 0.0.1
Summary: A Python based WebGPU API using pyodide
Author-email: Matthias Hochsteger <mhochsteger@cerbsim.com>, Christopher Lackner <clackner@cerbsim.com>
License-Expression: LGPL-2.1-or-later
Keywords: webgpu,compute shaders,graphics,python,pyodide,wgsl
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# WebGPU API for Python using Pyodide

This repository contains a Python wrapper for the WebGPU API to be used in browser environments (for instance plain HTML or Jupyter Notebooks).

An example jupyter notebook file is [here](example.ipynb), the executed html is available [here](https://cerbsim.github.io/webgpu/).

## Setup

To get started, just install the python package and run the jupyter notebook.

```bash
git clone https://github.com/cerbsim/webgpu
cd webgpu
python3 -m pip install .
python3 -m jupyter notebook example.ipynb
```

Note that your browser needs WebGPU support, you can verify that by opening the [WebGPU Report](https://webgpureport.org) website. See [here](https://github.com/gpuweb/gpuweb/wiki/Implementation-Status) for more information about the current status and needed settings.
