RustPython is an implementation of the Python programming language written in Rust. Its goal is to provide a fast, embeddable, and secure interpreter that can be integrated into Rust applications or used standalone. Because it’s in Rust, it benefits from memory safety and modern tooling, allowing developers to compile Python into efficient binaries or embed it as a scripting engine in Rust projects. The interpreter aims to support the Python standard library, dynamic typing, garbage collection, and common builtins, although full compatibility is a work in progress. It also supports bytecode compilation and execution, enabling faster startup and reuse of parsed code. By bridging the two language ecosystems, RustPython offers a compelling path for projects that want Python flexibility but desire Rust’s performance and safety discipline.

Features

  • Full interpreter for Python 3 features, standard library, REPL support
  • Ability to build to WebAssembly (WASM / WASI), enabling running in environments that support WASM
  • Optional JIT support (experimental) to speed up execution of Python code by compiling some portions to native code
  • Embedding capability: ability to embed RustPython into Rust apps as scripting engine
  • SSL / pip support via feature flags, ability to install pip and use package installation etc
  • Extensive test suite, examples, and architecture documentation, with community contributions and improvements over time

Project Samples

Project Activity

See All Activity >

Categories

Interpreters

License

MIT License

Follow RustPython

RustPython Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RustPython!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Rust

Related Categories

Rust Interpreters

Registered

2025-09-18