Automated Python to Mojo translator #788
Locked
msaelices
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A configurable tool to automatically convert Python code to the new Mojo programming language.
https://github.com/msaelices/py2mojo
So, consider this tool experimental; I've just spent about 4-6 hours implementing it.
Please do not trust the generated code and double-check it, both because the tool has been recently created, and Mojo still needs to support the entire Python language, so it's not still a superset of Python. I will try to improve it on weekends, but any help would be very welcome.
Examples of things that are not still working:
let x = Python.import_module('xxx')
approach is not valid in the scope of a module. Please read this proposal as a potential way to solve it: Feature Request: streamline importing python code and type annotations #298Beta Was this translation helpful? Give feedback.
All reactions