python_shell 0.0.5 copy "python_shell: ^0.0.5" to clipboard
python_shell: ^0.0.5 copied to clipboard

Python Environment Manager and Executor for dart and flutter

example/python_shell_example.dart

import "package:python_shell/python_shell.dart";

void main() async {
    var shell = PythonShell(shellConfig: PythonShellConfig(
        pythonRequires: [ "PySide6" ],
        defaultWorkingDirectory: "example"
    ));
    await shell.initialize();

    await shell.runString("""
import os, PySide6

print("in python: ", os.getcwd())
print("in python: ", PySide6)
""", useInstance: true, instanceName: "testInstance1", listener: ShellListener(
        completeCallback: () {
            print(shell.resolved);
            // shell.clear();
        }
    ));
}
11
likes
0
pub points
56%
popularity

Publisher

unverified uploader

Python Environment Manager and Executor for dart and flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

archive, dio, intl, path

More

Packages that depend on python_shell