Skip to main content

wasmfunc

wasmfunc is a Python to WebAssembly Compiler built for converting a typed subset of python code to a compiled Wasm binary.

Installation

pip install wasmfunc

How to use

Annotate your python function with Wasm types

# fib.py
@wasmfunc()
def fib_recursive(n: i32) -> i32:
    if n <= 1:
        return n
    else:
        return fib_recursive(n - 1) + fib_recursive(n - 2)

Then compile with

wasmfunc compile fib.py
# Or python -m wasmfunc compile fib.py

For more examples see examples.

Metadata

Release files for wasmfunc 0.0.1

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

Source distribution (sdist)

Source distribution for wasmfunc 0.0.1
File Size Uploaded Provenance Actions
wasmfunc-0.0.1.tar.gz 25.4 kB Without provenance Details for wasmfunc-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wasmfunc 0.0.1
File Interpreter ABI Platform Actions
wasmfunc-0.0.1-py3-none-any.whl Python 3 none any Details for wasmfunc-0.0.1-py3-none-any.whl

Total release size: 50.2 kB

Release files / wasmfunc-0.0.1.tar.gz

Download URL wasmfunc-0.0.1.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
03f23f889c33abdb3ad64c10b9c8786467d429d5f809134bda1c9f19f7c08298
BLAKE2b-256 checksum
How to use checksums
ea21ef69dd781f3c11f465227451364e6598d64a90e3d380df5646e7cd59b0a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Release files / wasmfunc-0.0.1-py3-none-any.whl

Download URL wasmfunc-0.0.1-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b20288df7d92b1761e7d44d3269d88c622931db6d45a8ffa43a77ebd7378dc52
BLAKE2b-256 checksum
How to use checksums
358f8debc2fa16db41f2f1de5d1f2c075d5bbb4d0ad30ca2d0d271c689f4a003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Security for wasmfunc 0.0.1

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.

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