Python & Flutter: can birds and snakes really be friends?
summary
Attempts combine Flutter and Python using Python FFI, pybind11 and build tools show a concrete result: a simple square function called from Flutter via a compiled dynamic library works on macOS after bundling the .so and .py as assets and copying them at runtime, but it requires absolute paths, produces huge autogenerated C (≈6k lines for one function), fails to bundle interpreter or .py files for iOS, and is brittle and not production ready; native assets looks promising but currently can’t bundle Python files.
AI-written summary · about
chapters (7)
- 0:00Introduction and background
- 1:31Python FFI package attempt
- 5:11Setup tools and Pybind11 approach
- 9:52Exploring Flutter and Flat
- 11:44Native assets limitations
- 13:58Final working solution with assets
- 22:45Q&A and summary
related talks
53mPython All the Things
39mAdopting native assets for cross-platform FFI plugins
30mThe Quest for the Pocket-Sized Python
47mFlutter, FFI and Fun: Windows Development with Dart and Win32
40mA new hope with Flutter!
34mKeynote - The Future is Written in Dart
01h 01mFrom F# to Python with Fable
31mPython on the move: The state of mobile Python
