0.1.0-pre-alpha.2 • Published 7 years ago
rustpython_wasm v0.1.0-pre-alpha.2
RustPython
A Python-3 (CPython >= 3.5.0) Interpreter written in Rust.
WARNING: this project is still in a pre-alpha state!
Using this in a production project is inadvisable. Please only do so if you understand the risks.
Usage
Check out our online demo running on WebAssembly.
Goals
- Full Python-3 environment entirely in Rust (not CPython bindings)
- A clean implementation without compatibility hacks
Quick Documentation
pyEval(code, options?);code: string: The Python code to run
options:
vars?:{ [key: string]: any }: Variables passed to the VM that can be accessed in Python with the variablejs_vars. Functions do work, and receive the Python kwargs as thethisargument.stdout?:(out: string) => void: A function to replace the native print function, by defaultconsole.log.
License
This project is licensed under the MIT license.
0.1.0-pre-alpha.2
7 years ago
0.1.0-pre-alpha.1
7 years ago