dart_monty_bridge

Part of dart_monty — pure Dart bindings for Monty, a restricted, sandboxed Python interpreter built in Rust.

Live Demo | GitHub | Monty

Bob This package is co-designed by human and AI — nearly all code is AI-generated.

High-level bridge layer for dart_monty. Provides host function infrastructure, the default bridge implementation, event loop support, and a plugin system (PluginRegistry + MontyPlugin) for modular host function bundles.

Install

dependencies:
  dart_monty_bridge: ^0.3.0

Key Types

Type Description
MontyBridge Abstract bridge interface for executing Python code with host functions.
DefaultMontyBridge Default implementation orchestrating the start/resume loop.
EventLoopBridge Bridge with event loop support (wait_for_event, render_ui).
PluginRegistry Collects MontyPlugins with namespace validation and collision detection.
MontyPlugin Extension point for modular host function bundles with lifecycle hooks.
HostFunction A single callable host function with schema and handler.
HostFunctionSchema Metadata (name, description, params) for a host function.
BridgeEvent Sealed event hierarchy emitted during execution.

Libraries

bridge_internals
Internal types used by dart_monty_bridge infrastructure.
dart_monty_bridge
High-level bridge layer for dart_monty.