RustPython is an open-source Python 3 interpreter written entirely in Rust, designed to provide a clean and efficient implementation without relying on CPython bindings.
It offers a robust platform for running Python code in various environments, including WebAssembly (WASM) and embedded Rust applications.
$ cargo run --release
, allowing immediate execution of Python commands.jit
flag during compilation.To use RustPython, the latest stable version of Rust must be installed. After cloning the repository (git clone https://github.com/RustPython/RustPython
), users can build and run the interpreter locally.
For Windows users, setting the RUSTPYTHONPATH
environment variable is necessary to specify the library path.
Additionally, RustPython can be installed via Cargo or Conda (though Conda packages may be outdated). For HTTPS requests and package management with pip
, enabling the SSL feature is required.
bash cargo build --target wasm32-wasip1 --features="freeze-stdlib"
bash cargo run --features jit
__jit__()
in Python scripts.cargo doc
.RustPython has been utilized in various projects, including:
While still under development and not fully production-ready, RustPython is a versatile tool for developers seeking to merge Python’s flexibility with Rust’s performance and safety.
Playwright-MCP (Model Context Protocol) is a cutting-edge tool designed to bridge the gap between AI…
JBDev is a specialized development tool designed to streamline the creation and debugging of jailbreak…
The Kereva LLM Code Scanner is an innovative static analysis tool tailored for Python applications…
Nuclei-Templates-Labs is a dynamic and comprehensive repository designed for security researchers, learners, and organizations to…
SSH-Stealer and RunAs-Stealer are malicious tools designed to stealthily harvest SSH credentials, enabling attackers to…
Control flow flattening is a common obfuscation technique used by OLLVM (Obfuscator-LLVM) to transform executable…