https://github.com/flet-dev/flet
Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
https://github.com/flet-dev/flet
android cross-platform desktop flutter ios python server-driven-ui web
Last synced: 14 days ago
JSON representation
Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
- Host: GitHub
- URL: https://github.com/flet-dev/flet
- Owner: flet-dev
- License: apache-2.0
- Created: 2022-03-24T15:44:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2026-01-27T01:20:26.000Z (2 months ago)
- Last Synced: 2026-01-27T05:43:22.793Z (2 months ago)
- Topics: android, cross-platform, desktop, flutter, ios, python, server-driven-ui, web
- Language: Python
- Homepage: https://flet.dev
- Size: 126 MB
- Stars: 15,413
- Watchers: 141
- Forks: 613
- Open Issues: 392
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-python-web-frameworks - Flet - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required. (Front-end frameworks / More)
- awesome-python - flet - Cross-platform GUI framework for building modern apps in pure Python. (GUI Development)
- awesome - flet-dev/flet - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required. (Python)
- awesomeLibrary - flet - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required. (语言资源库 / python)
- awesome-python-fa - Flet - یک کتابخانه جدید برای ساخت رابطهای کاربری وب و دسکتاپ به صورت بلادرنگ، بدون نیاز به تنظیمات پیچیده. Flet به شما این امکان را میدهد که برنامههای UI را به راحتی با استفاده از پایتون بسازید. (📚 فهرست / ساخت برنامه های GUI)
README
Build multi-platform apps in Python. No frontend experience required.
---
Flet is a framework that allows building mobile, desktop and web applications
in Python only without prior experience in frontend development.
###
Single code base for any device
Your app will equally look great on iOS, Android, Windows, Linux, macOS and web.
###
Build an entire app in Python
Build a cross-platform app without knowledge of Dart, Swift, Kotlin, HTML or JavaScript - only Python!
###
150+ built-in controls and services
Beautiful UI widgets with Material and Cupertino design: layout, navigation, dialogs, charts - Flet uses Flutter to render UI.
###
50+ Python packages for iOS and Android
Numpy, pandas, pydantic, cryptography, opencv, pillow and other popular libraries.
###
Full web support
Flet apps run natively in modern browsers using WebAssembly and Pyodide, with no server required. Prefer server-side? Deploy as a Python web app with real-time UI updates.
###
Built-in packaging
Build standalone executables or bundles for iOS, Android, Windows, Linux, macOS and web. Instantly deploy to App Store and Google Play.
###
Test on iOS and Android
Test your project on your own mobile device with Flet App. See your app updates as you make changes.
###
Extensible
Easily wrap any of thousands of Flutter packages to use with Flet or build new controls in pure Python using built-in UI primitives.
###
Accessible
Flet is built with Flutter which has solid accessibility foundations on Android, iOS, web, and desktop.
## Flet app example
Below is a simple "Counter" app, with a text field and two buttons to increment and decrement the counter value:
```python title="counter.py"
import flet as ft
def main(page: ft.Page):
page.title = "Flet counter example"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
input = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)
def minus_click(e):
input.value = str(int(input.value) - 1)
def plus_click(e):
input.value = str(int(input.value) + 1)
page.add(
ft.Row(
alignment=ft.MainAxisAlignment.CENTER,
controls=[
ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
input,
ft.IconButton(ft.Icons.ADD, on_click=plus_click),
],
)
)
ft.run(main)
```
To run the app, install `flet`:
```bash
pip install 'flet[all]'
```
then launch the app:
```bash
flet run counter.py
```
This will open the app in a native OS window - what a nice alternative to Electron! 🙂
To run the same app as a web app use `--web` option with `flet run` command:
```bash
flet run --web counter.py
```
## Learn more
* [Website](https://flet.dev)
* [Documentation](https://docs.flet.dev)
* [Roadmap](https://flet.dev/roadmap)
* [Apps Gallery](https://flet.dev/gallery)
## Community
* [Discussions](https://github.com/flet-dev/flet/discussions)
* [Discord](https://discord.gg/dzWXP8SHG8)
* [X (Twitter)](https://twitter.com/fletdev)
* [Bluesky](https://bsky.app/profile/fletdev.bsky.social)
* [Email us](mailto:hello@flet.dev)
## Contributing
Want to help improve Flet? Check out the [contribution guide](https://docs.flet.dev/contributing).