pyo3_bindgen playground

pyo3_bindgen playground Andrej Orsula

Edit Python, compile Rust, and run it with the generated bindings.

Loading pyo3_bindgen playground…

Python input

Explore this example

    Original example

    Edit this example or paste Python, then choose Generate Rust. Generation and compilation stay in this browser.

    Options
    Generate
    Scope
    Rust API
    Ctrl + Enter

    Rust output

    1. Start PythonPython 3.14 for the browser, from Pyodide
    2. Install pyo3_bindgenThe generator, compiled to WebAssembly
    3. Generate bindingsFor the example on the left