RustPython

An open source Python 3 (CPython >= 3.11.0) interpreter written in Rust 🐍 😱 🤘

Python

RustPython

Python embedded in Rust apps

WebAssembly

Python on the Web

RustPython is a Python interpreter written in Rust. RustPython can be embedded into Rust programs to use Python as a scripting language for your application, or it can be compiled to WebAssembly in order to run Python in the browser. RustPython is free and open-source under the MIT license.

Installation

cargo install –git https://github.com/RustPython/RustPython

wapm install rustpython

conda install rustpython -c conda-forge

Goals

Full Python 3 environment entirely in Rust (not CPython bindings), with a clean implementation and no compatiblity hacks.

Fast, reliable and secure implementation of Python that can be used from Rust or compiled to WebAssembly.

There are many implementations of Python. For example:

CPython (C), which is the most common
Jython (Java)
IronPython (.NET)
PyPy (Python)
Stackless

Each of these implementations offer some benefits: Jython, for example, compiles Python 2 source code to Java byte code, then routes it to the Java Virtual Machine. Because Python cod
Read More