This is the code for the pynash presentation on maturin. The presentation is to show how a developer can port some of his/her python code to rust and then call the rust code from the python project.
The rust tools that are used are maturin and pyo3.
To help with understanding the code in this repo, there is a page that
explains some of the features used.
Link: pyo3 explanation
To see the python code work with the package:
- create a virtual env
python -m venv .venv
source ./.venv/bin/activate
pip install -r requirements.txt
- python package setup
maturin develop
- run the python code
python python_code/code_example.py
There is a .justfile
for common commands. The file's intention
is to share what the common commands used in this repo are as well
as simplfy the running of those commands from the terminal.
-
Rust Crates
-
Blogs and Video used in creating this repo