A Python Interpreter written in Rust 🐍 😱 🤘.
To test RustPython, do the following:
$ git clone https://github.com/RustPython/RustPython
$ cd RustPython
$ cargo run demo.py
42
Or use the interactive shell:
$ cargo run
Welcome to rustpython
>>>>> 2+2
4
Or use pip to install extra modules:
$ cargo run -m pip install requests
- Full python environment entirely in Rust (not CPython bindings)
- A clean implementation without compatibility hacks
- `parser`: python lexing, parsing and ast
- `vm`: python virtual machine
- `src`: using the other subcrates to bring rustpython to life.
- `docs`: documentation (work in progress)
- `py_code_object`: CPython bytecode to rustpython bytecode convertor (work in progress)
- `tests`: integration test snippets
Chat with us on gitter.
The initial work was based on windelbouwman/rspython and shinglyu/RustPython
These are some useful links to related projects: