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
-
bindings: Provides infrastructure for creating Python bindings to Mojo code. -
conversions: Implements conversion traits to and from PythonObject. -
python: Implements Python interoperability. -
python_object: Implements PythonObject.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!