Use PythonMonkey to load WebAssembly modules from Rust into Python and execute Rust functions from a Rust library.
Follow along with this GitHub repository:
https://github.com/Distributive-Netwo...
View the medium post for this video
/ executing-rust-in-python-using-webassembly
This tutorial covers
Compiling a Rust library to WebAssembly using wasm-bindgen and wasm-pack
Executing WASM code from Python
If you're interested in PythonMonkey or WebAssembly check these out
PythonMonkey Documentation: https://docs.pythonmonkey.io/
Checkout PythonMonkey here: https://pythonmonkey.io/
Calling C WASM from Python • How to execute C from Python (Using WebAss...
Test PythonMonkey on Google Colab:
https://colab.research.google.com/dri...
0:00 Intro & Overview
0:14 PythonMonkey
0:57 Installing Rust and Python
2:33 Writing a sample Rust Library
5:28 Rewriting nodejs in Python (temporary)
9:03 Calling Rust from Python
9:50 Fixing an error
10:33 Compiling with ./build.sh
11:30 Adding a function to our rust library
13:37 Conclusion
In questa pagina del sito puoi guardare il video online Call Rust code from Python (WASM and PythonMonkey) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Will Pringle 24 luglio 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 601 volte e gli è piaciuto 15 spettatori. Buona visione!