Skip to main content

Mojo package

python

Python interoperability: import packages and modules, call functions, type conversion.

The python package enables interoperability between Mojo and Python code. It provides mechanisms for importing Python packages and modules, calling Python functions, and converting values between Mojo and Python types. This package allows Mojo programs to leverage the extensive Python ecosystem while maintaining Mojo's performance characteristics.

Use this package when you need to call Python libraries, integrate existing Python code into Mojo applications, or leverage Python's ecosystem for functionality not yet available in native Mojo.

Modules

Was this page helpful?