mojo-python-interop - Mojo Python Interoperability Helper
Aids in writing Mojo code that interoperates with Python using current syntax and conventions.
Tags
Updated: 2026-05-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- import Python modules
- convert Python to Mojo types
- convert Mojo to Python types
- create Python collections
- call PythonObject methods
- evaluate Python code
- handle Python exceptions
- build Python extension modules
- export Mojo functions
- export Mojo types
- register module methods
- import Mojo modules from Python
Inputs
- Python modules
- Python extension modules
- PythonModuleBuilder
- Mojo types
- Python code
- PythonObject instances
Outputs
- Mojo types
- Python collections
- PythonObject
- Python extension modules
- Mojo values
Requirements
- Mojo compiler
- shared library build support
- raises function support
