Metadata-Version: 2.4
Name: browser-py
Version: 0.1.0
Summary: An experimental Python-to-browser compiler and Transcrypt competitor
Requires-Python: <3.13,>=3.12
Description-Content-Type: text/markdown
Requires-Dist: rjsmin==1.2.5
Requires-Dist: mypy==1.18.2
Requires-Dist: setuptools>=68
Provides-Extra: tools
Requires-Dist: playwright<2,>=1.56; extra == "tools"
Requires-Dist: pscript<0.9,>=0.8; extra == "tools"
Requires-Dist: wgpu==0.29.0; extra == "tools"
Requires-Dist: glfw<3,>=2.9; extra == "tools"
Provides-Extra: test
Requires-Dist: browser-py[tools]; extra == "test"
Requires-Dist: pytest<10,>=9; extra == "test"
Requires-Dist: ruff<1,>=0.14; extra == "test"

# browser-py

An experimental Python-to-browser compiler, built as a competitor to Transcrypt.
Write Python and compile it for the browser.

It supports typed numeric code and a small browser-facing subset, not arbitrary
Python packages. Compilation, browser examples, and checks work without Transcrypt.

Install with Python 3.12:

```sh
python -m pip install browser-py
browser-py compile path/to/your_module.py
browser-py --help
```

In a source checkout, the equivalent compiler command is:

```sh
python -B browser_py.py compile source/kernels.py
```

Compiled files are saved to temporary storage; the command prints their location.
Compiler comparisons and the triangle demo are supporting tools, available in the
source checkout or source distribution (not the compiler wheel). Install the `tools`
extra to use them:

```sh
python -m pip install 'browser-py[tools]'
python -B source/__comparison__.py --help
```

For development, install the `test` extra and run `python -B browser_py.py validate`
from a source checkout.
