gitwtfhub

wtf is wasmer-hpy?

dholth/wasmer-hpy — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2023-10-18

CAudience · developerComplexity · 5/5DormantSetup · hard

TL;DR

An experimental bridge letting Python load and run sandboxed WebAssembly modules for portable, cross-platform compiled code.

Mindmap

mindmap
  root((repo))
    What it does
      Runs WASM in Python
      Uses Wasmer runtime
      Sandboxed execution
    Tech stack
      Python
      WebAssembly
      HPy
      C
    Use cases
      Portable compiled code
      Sandboxed extensions
      Cross platform tools
    Audience
      Python developers
      Researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Distribute compiled Python extensions without recompiling per OS or Python version.

REASON 2

Run sandboxed WebAssembly modules safely from inside a Python program.

REASON 3

Experiment with HPy as a forward-compatible alternative to the traditional Python C API.

REASON 4

Prototype tools that need both sandboxed safety and near-native speed.

What's in the stack?

PythonWebAssemblyHPyC

How it stacks up

dholth/wasmer-hpyac000/find-flvacc4github/kdenlive-omnifade
Stars0
LanguageCCC
Last pushed2023-10-182013-04-05
MaintenanceDormantDormant
Setup difficultyhardmoderatemoderate
Complexity5/52/52/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Experimental and minimally documented, expect to read source code, not just docs, to get it running.

Yoink these prompts

Prompt 1
Explain how this project uses Wasmer to load a WebAssembly module from Python.
Prompt 2
Help me understand what HPy is and why it's used here instead of the standard Python C API.
Prompt 3
Walk me through building a minimal WASM module I could load with this project's approach.
Prompt 4
What are the tradeoffs of using WASM sandboxing versus a native compiled Python extension?

Frequently asked questions

wtf is wasmer-hpy?

An experimental bridge letting Python load and run sandboxed WebAssembly modules for portable, cross-platform compiled code.

What language is wasmer-hpy written in?

Mainly C. The stack also includes Python, WebAssembly, HPy.

Is wasmer-hpy actively maintained?

Dormant — no commits in 2+ years (last push 2023-10-18).

How hard is wasmer-hpy to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is wasmer-hpy for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.