Using python to configure rust Part 2

Continuing on from Part 1 If you’ve not read that you probably should before continuing here. Previously we setup a pyo3 project and ran some python code from rust which was able to create a rust class and return it to rust. (I think I can say rust a few more times in this paragraph. Rust rust rust) This is the kind of python config we are aiming to be able to use inside our rust program:...

2025 November 26 · Emily Selwood

Using python to configure rust Part 1

I’ve recently been playing with running python code from rust to use as a kind of configuration and extension system. The idea is that my program runs a bunch of python code that the user has defined and that gives it the configuration it needs. The user has the POWER OF THIS FULLY OPERATIONAL PROGRAMMING LANGUAGE cough cough, sorry voice box got stuck on imperial functionary there. I’m doing this as a personal project and proof of concept so don’t expect bullet proof code here....

2025 November 24 · Emily Selwood