from python.object import PythonObject

# Example of initialization
obj = PythonObject()
obj_with_int = PythonObject(42)
obj_with_string = PythonObject("Hello World")

Overview

The PythonObject API in the Python package provides a high-level interface for interacting with Python objects from within a different runtime or environment. It enables the creation, manipulation, and destruction of Python objects, providing a bridge between the native Python environment and external systems.

Key Features

Use Cases

Considerations

Compatibility

The PythonObject API is designed to be compatible with the Python runtime. Its compatibility with different platforms, programming languages, or frameworks depends on the environment in which the Python runtime is embedded or integrated.