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
Level Up Your Cyber Defense with External Threat Management Icon
Level Up Your Cyber Defense with External Threat Management

See every risk before it hits. From exposed data to dark web chatter. All in one unified view.

Move beyond alerts. Gain full visibility, context, and control over your external attack surface to stay ahead of every threat.
Try for Free
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