FLUTTER ECOSYSTEM

dartpy

A library for using dart with python via python's C API

Latest version
0.0.5
30-day downloads
40
Likes
56
Pub points
110

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

dartpy is a Flutter/Dart package that enables seamless integration between Dart and Python by leveraging Python's C API. It allows Dart applications to call Python code, execute scripts, and interact with Python objects directly, making it ideal for projects requiring Python's extensive libraries in data science, machine learning, or scripting. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, ensuring cross-platform compatibility. It provides a low-level bridge for advanced developers who need tight control over Python execution within Dart apps.

Use cases
  • Calling Python scripts from Dart
  • Integrating Python libraries into Flutter apps
  • Cross-platform data processing
  • Machine learning model inference
  • Script automation in mobile/desktop apps
Key features
  • Direct access to Python's C API
  • Support for multiple operating systems
  • Execution of Python code within Dart
  • Interoperability with Python objects
  • Lightweight native bindings
Suitable for
  • Developers needing Python integration in Flutter
  • Data scientists building cross-platform tools
  • Advanced users comfortable with native APIs
  • Applications requiring Python-based computation
  • Projects involving AI/ML models
Considerations
  • Requires knowledge of Python's C API
  • Higher complexity than pure-Dart solutions
  • Potential performance overhead from FFI calls
  • Limited high-level abstractions
  • Not recommended for beginners
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add dartpy

Categories

Related projects

No data available yet.