r/Python • • Sep 16 '26

News Flet 1.0 released: build desktop, mobile, and web apps in Python

I'm the creator of Flet, and we've just released version 1.0 after more than four years of development.

You may have heard of Flet or already be using it. If it's new to you, Flet is an open-source framework for building GUIs in Python. You write the interface and application logic in Python, then package the app for Windows, macOS, Linux, iOS, Android, or the web.

For example, you can put a GUI around a pandas workflow, build a mobile app that processes images with Pillow, or turn a Python script into a desktop application with forms, buttons, and charts.

Here's what we've been working on leading up to 1.0:

Python libraries on your phone

Packaged desktop and mobile apps include CPython, so your Python code runs on the device without needing a separate server. You can bundle Python 3.12, 3.13, or 3.14.

Getting libraries with C and Rust dependencies working on mobile has been a substantial part of the work. We now maintain an index of more than 100 packages and supporting native libraries, including NumPy, pandas, SciPy, Matplotlib, Pillow, scikit-learn, cryptography, and pydantic-core.

Availability varies by package and target. The package list shows what's supported, and the build infrastructure is open source.

Two ways to write your UI

You can create controls and change their properties directly, or use the declarative API to describe the interface from application state. The latter provides state hooks and reusable Python components for organizing larger applications.

Both approaches are supported. Here's a comparison with examples.

Test your app with pytest

You can write tests that launch your packaged app, tap buttons, enter text, and check the resulting UI on desktop or mobile. Tests use pytest, including fixtures and parametrization. On Android and iOS, you can also compare screenshots to catch visual changes.

Integration testing documentation

Faster updates and better packaging

We've improved how Flet calculates UI changes and reduced startup work. In packaged native apps, Python now communicates with the UI runtime within the same process, without sockets. On Android, Python packages can load directly from the APK without being extracted first.

For web apps, Python can run in the browser through Pyodide or on a server through FastAPI/Uvicorn.

Trying it and upgrading

You can try examples and edit Python code in your browser using Flet Studio, or follow the local installation guide for uv or pip.

If you're coming from Flet 0.28, please read the migration guide. Version 1.0 includes breaking API changes and isn't a drop-in replacement.

Flet is licensed under Apache 2.0.

Source code · Full release announcement

Happy to answer questions about the framework, Python packaging, or running Python libraries on mobile.

309 Upvotes

44 comments sorted by

View all comments

0

u/kantorcodes1 Sep 17 '26

flet clean <path> resolves any directory and then shutil.rmtree(<path>/build) without checking that path is actually a Flet project. intentional? feels easy for automation to point at the wrong repo and wipe an unrelated build/ tree. would a project marker check or explicit confirmation outside a recognized Flet app make sense?

1

u/feodorfff Sep 17 '26

Good catch, thank you! Filed an issue: https://github.com/flet-dev/flet/issues/6856

1

u/kantorcodes1 Sep 17 '26

Nice, thanks. I work on HOL Guard, a local permission layer for agent-run CLI commands. Flet's clean, build, create, and publish are a good fit: Guard can require approval before an agent deletes build output or creates/publishes project state, while doctor and devices stay automatic. If you're open to it, I can point you at the small command.flet extension path.