dart_monty_native

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

Live Demo | GitHub | Monty

Flutter plugin — native implementation of dart_monty using FFI. Runs the Monty Python interpreter in a background Isolate for non-blocking execution from Flutter apps on macOS, Linux, Windows, iOS, and Android.

Requires Flutter. This package is not intended for direct use. Import dart_monty instead — the federated plugin system selects this package automatically on native platforms.

How It Works

DartMontyNative registers itself as the MontyPlatform instance via Flutter's dartPluginClass mechanism. Execution runs in a background Isolate to keep the UI thread responsive, delegating to dart_monty_ffi for the actual FFI calls.

Bundled Binaries

This package vendors pre-built native libraries for supported platforms:

  • macos/libdart_monty_native.dylib
  • linux/libdart_monty_native.so

See the main dart_monty repository for full documentation.

Libraries

dart_monty_native
Native (macOS, Linux, Windows, iOS, Android) implementation of dart_monty.