pyo3 icon indicating copy to clipboard operation
pyo3 copied to clipboard

Simplify calling python from rust

Open marcomq opened this issue 6 months ago • 0 comments

Hi! It seems that pyo3 was mostly focussed on creating binary python libraries using rust code. It also is able to call python from rust, but it somehow never really felt easy.

So I just created an own crate, based on pyo3 to make simplify calls: https://github.com/marcomq/async_py

I created an own thread for python and used tokio channels to communicate to the thread. Not sure if this overhead was really necessary, but it kind of simplified things for me.

Anyway, I just wanted to let you know that I created this crate. If you like to, you can use the code. Or maybe somebody else is interested in this too.

If you like to you can immediately close this issue.

marcomq avatar Oct 17 '25 08:10 marcomq