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

Platformweb

Flutter web plugin for dart_monty, pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

example/example.dart

/// Web plugin registration example.
///
/// `dart_monty_web` registers itself automatically via Flutter's federated
/// plugin system (`flutter_web_plugins`). Import `dart_monty` in your app —
/// no direct usage of this package is needed.
///
/// On web, the backend delegates to `MontyWasm` which runs Python in a
/// Web Worker via `@pydantic/monty` compiled to WASM.
///
/// ```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_web registered');
}
0
likes
160
points
1.38k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter web plugin for dart_monty, pure Dart bindings for Monty — a restricted sandboxed Python interpreter built in Rust.

Repository (GitHub)
View/report issues
Contributing

Topics

#python #sandbox #wasm #flutter

License

MIT (license)

Dependencies

dart_monty_platform_interface, dart_monty_wasm, flutter, flutter_web_plugins

More

Packages that depend on dart_monty_web

Packages that implement dart_monty_web