dart_monty_native 0.7.4 copy "dart_monty_native: ^0.7.4" to clipboard
dart_monty_native: ^0.7.4 copied to clipboard

Native plugin for dart_monty (replaces dart_monty_desktop). Pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

example/example.dart

/// Native plugin registration example.
///
/// `dart_monty_native` registers itself automatically via Flutter's
/// `dartPluginClass` mechanism. Import `dart_monty` in your app — no direct
/// usage of this package is needed.
///
/// On native platforms, the backend runs the Monty interpreter in a
/// background Isolate to keep the UI thread responsive.
///
/// ```dart
/// import 'package:dart_monty/dart_monty.dart';
///
/// final monty = MontyPlatform.instance;
/// final result = await monty.run('2 + 2');
/// print(result.value); // 4
/// ```
library;

void main() {
  // This package registers itself automatically via Flutter's federated
  // plugin system. See the dart_monty package for usage examples.
  assert(true, 'dart_monty_native registered');
}
0
likes
0
points
542
downloads

Publisher

unverified uploader

Weekly Downloads

Native plugin for dart_monty (replaces dart_monty_desktop). Pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

Repository (GitHub)
View/report issues

Topics

#python #sandbox #ffi #flutter

License

unknown (license)

Dependencies

dart_monty_ffi, dart_monty_platform_interface, flutter

More

Packages that depend on dart_monty_native

Packages that implement dart_monty_native