py_embed 0.0.1 copy "py_embed: ^0.0.1" to clipboard
py_embed: ^0.0.1 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 python = Python();
  python.initFromConfig(
    PyConfig()
      ..executable = await getPythonExecutable()
      ..programName = await getPythonExecutable(),
  );

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

  python.dispose();
}
0
likes
0
points
577
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