py_embed 0.0.2 copy "py_embed: ^0.0.2" to clipboard
py_embed: ^0.0.2 copied to clipboard

Embed CPython in Dart applications using native FFI bindings to the Python C API.

example/main.dart

import 'package:py_embed/py_embed.dart';

void main() async {
  final py = Python.venv(await getPyExecutableFromShell());

  py.runSimpleString('print("Hello from Python!")');

  py.dispose();
}
0
likes
0
points
670
downloads

Publisher

unverified uploader

Weekly Downloads

Embed CPython in Dart applications using native FFI bindings to the Python C API.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

code_assets, ffi, hooks, meta, native_toolchain_xmake

More

Packages that depend on py_embed