Skip to main content

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:

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:

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:

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.

Metadata

Release files for browser-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for browser-py 0.1.0
File Size Uploaded Provenance Actions
browser_py-0.1.0.tar.gz 268.7 kB Without provenance Details for browser_py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for browser-py 0.1.0
File Interpreter ABI Platform Actions
browser_py-0.1.0-py3-none-any.whl Python 3 none any Details for browser_py-0.1.0-py3-none-any.whl

Total release size: 288.2 kB

Release files / browser_py-0.1.0.tar.gz

Download URL browser_py-0.1.0.tar.gz
Size 268.7 kB
Tags Source
SHA-256 checksum
How to use checksums
63c7440e3b0f171bf1fc532bb9fbaec491b377a1bf4ae091a25fdffba82d504b
BLAKE2b-256 checksum
How to use checksums
ebf8387b403f57c2d2a29e4a62baa5e1f649dc3520ffc327f3cecd0593af6443
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / browser_py-0.1.0-py3-none-any.whl

Download URL browser_py-0.1.0-py3-none-any.whl
Size 19.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
380ac62dc8a6ac29540f2cd8d29af23e6d94d754e597a6d28368a0869272cc8b
BLAKE2b-256 checksum
How to use checksums
518c5767e081c461efd0f99203b0e5b08b22c6c39e04d9aeceac2b754337607f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for browser-py 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page