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

Python Environment Manager and Executor for dart and flutter


python_shell

Python Environment Manager and Executor for dart and flutter


Available for:

  • dart, flutter

Supported Platforms:

  • Windows 10+ (x86, amd64, arm64)
  • Linux Distos (amd64, arm64)
  • OSX 11+ (amd64, arm64)




Install #

  • add via cli
flutter(dart) pub add python_shell
  • add dependency to 'pubspec.yaml'
dependencies:
    [other dependencies...]

    python_shell:
        git:
            url: git://github.com/eseunghwan/python_shell.dart.git
            ref: master



Usage #

  • basic usage
import "package:python_shell/python_shell.dart";

var shell = PythonShell();
await shell.initializeShell();

shell.runString("{pythonCode}");

  • onMessage, onError, onComplete
// setups like above ...
shell.runString(
    "{pythonCode}",
    listener: ShellListener(
        messageCallback: (message) {
            // if `echo` is `true`, log to console automatically
            print("message!");
        },
        errorCallback: (e, s) {
            print("error!");
        },
        completeCallback: () {
            print("complete!");
        }
    )
);

for further informations, refers to shell.dart

11
likes
0
pub points
57%
popularity

Publisher

unverified uploader

Python Environment Manager and Executor for dart and flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

archive, dio, flutter, intl, path

More

Packages that depend on python_shell