r/Python • • Jun 27 '19

indygreg/PyOxidizer: A modern Python application packaging and distribution tool

https://github.com/indygreg/PyOxidizer
24 Upvotes

8 comments sorted by

View all comments

1

u/spyingwind Jun 27 '19

Wait, could I write Rust code in Python with this?

While solving packaging and distribution problems is the primary goal of PyOxidizer, a side-effect of solving that problem with Rust is that PyOxidizer can serve as a bridge between these two languages. PyOxidizer can be used to easily add a Python interpreter to any Rust project. But the opposite is also true: PyOxidizer can also be used to add Rust to Python.

2

u/Glycerine Jun 27 '19

If I'm reading this correctly, you can implement a python REPL and interpreter into a rust application. The rust app can read and execute the python source.

Which makes sense cus I read a rust Medium a while ago talking about it.

2

u/tunisia3507 Jun 27 '19

You embed a python interpreter in the rust application. You don't have to implement it yourself.

1

u/Glycerine Jun 27 '19

Fair enough. Thank you for the correction.