mojo-python-interop - Mojo Python Interoperability
Write Mojo code that interoperates with Python
Tags
Updated: 2026-05-28Capabilities
Typical Inputs
Typical Outputs
What this skill does
- import Python modules
- convert Python to Mojo
- convert Mojo to Python
- build Python collections
- evaluate Python code
- handle Python exceptions
- build extension modules
- export Mojo functions
- export Mojo types
- register Mojo methods
- handle keyword arguments
- import Mojo modules
Inputs
- Python modules
- Python libraries
- Python code
- Mojo types
- Mojo functions
- Mojo structs
- extension module definitions
- module builder configurations
- keyword arguments
- Mojo files
- Python objects
Outputs
- PythonObject instances
- Python code
- Python exceptions
- extension module files
- registered Python modules
- converted Mojo values
- compiled shared libraries
- module registration results
Requirements
- Mojo compiler
- Python environment
- std.python module
- std.os module
- std.collections module
- shared-lib compilation
