Flet - quickly build interactive apps for web, desktop and mobile in Python
Flet is a rich User Interface (UI) framework to quickly build interactive web, desktop and mobile apps in Python without prior knowledge of web technologies like HTTP, HTML, CSS or JavaSscript. You build UI with controls based on Flutter widgets to ensure your programs look cool and professional.
Requirements
- Python 3.7 or above on Windows, Linux or macOS
Installation
pip install flet
Create the app
Create main.py file with the following content:
import flet as ft
def main(page: ft.Page):
page.title = "Flet counter example"
page.vertical_alignment = ft.MainAxisAlignment.CENTER
txt_number = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)
def minus_click(e):
txt_number.value = str(int(txt_number.value) - 1)
page.update()
def plus_click(e):
txt_number.value = str(int(txt_number.value) + 1)
page.update()
page.add(
ft.Row(
[
ft.IconButton(ft.icons.REMOVE, on_click=minus_click),
txt_number,
ft.IconButton(ft.icons.ADD, on_click=plus_click),
],
alignment=ft.MainAxisAlignment.CENTER,
)
)
ft.app(main)
Run as a desktop app
The following command will start the app in a native OS window:
flet run main.py
Run as a web app
The following command will start the app as a web app:
flet run --web main.py
Learn more
Visit Flet website.
Continue with Python guide to learn how to make a real app.
Browse for more Flet examples.
Join to a conversation on Flet Discord server.
Metadata
Release files for robocorp-flet 0.4.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| robocorp_flet-0.4.2.3.tar.gz | 31.1 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| robocorp_flet-0.4.2.3-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| robocorp_flet-0.4.2.3-py3-none-macosx_12_0_arm64.whl | Python 3 | none | macOS 12.0+ ARM64 | Details |
| robocorp_flet-0.4.2.3-py3-none-macosx_10_14_x86_64.whl | Python 3 | none | macOS 10.14+ x86-64 | Details |
| robocorp_flet-0.4.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 115.4 MB
Release files / robocorp_flet-0.4.2.3.tar.gz
| Download URL | robocorp_flet-0.4.2.3.tar.gz |
|---|---|
| Size | 31.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
419faf4ee15aaf322b08481c1b011653a6e1d4d0d03282b7098467e9a20372db
|
|
BLAKE2b-256 checksum How to use checksums |
bacfc5538503371d4292e3a6193ecd515e703a056b77e6cb9ab5d92480f964e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-win_amd64.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-win_amd64.whl |
|---|---|
| Size | 19.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
71ae332b9762b357b25f4f59f6ec3f9d9e8ece7ea182aa7ae9b57e581ec87d7e
|
|
BLAKE2b-256 checksum How to use checksums |
ac9c04301af77fb328796f8673157fdee724b58d4d3c7e564664414ac47350e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 17.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
eed0aca5b36f3272d8130acfb31f1df5f14fbcf9525492d9ef918d8c39a4999a
|
|
BLAKE2b-256 checksum How to use checksums |
19442988e3eecb09e48f7262dc54befd273571beb0a09af269fea59f4706b866
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 16.3 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
a5da30ee80fdafe3715bedd7f0ad6208beac646c57e3f099e27f6d7fd03c2ce7
|
|
BLAKE2b-256 checksum How to use checksums |
039317409a2c88b3f60ebf596e7da9579ae51284105ccc1e97c78faf40ff26fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-macosx_12_0_arm64.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 31.0 MB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5df9cf563a019c98a54c9707cd2467b91eb5081c188cc2f973ba896c8042629f
|
|
BLAKE2b-256 checksum How to use checksums |
4c0672a45e84287222f4dc149c6179cbb88c6c31efbc38f0849062301ff5e06c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-macosx_10_14_x86_64.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-macosx_10_14_x86_64.whl |
|---|---|
| Size | 31.0 MB |
| Tags | Python 3 macOS 10.14+ x86-64 |
|
SHA-256 checksum How to use checksums |
4461596c72acdc6ae8ec88c95d4c47d9ee44b765bb66b6391217842ffbc79da8
|
|
BLAKE2b-256 checksum How to use checksums |
43275c16fdd7c3961f0bf3ebed4f397d95eab935d339a4041296b7ef81902aee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / robocorp_flet-0.4.2.3-py3-none-any.whl
| Download URL | robocorp_flet-0.4.2.3-py3-none-any.whl |
|---|---|
| Size | 41.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e1abd5b3439e9394d5aae90c03976c9b5edd454fa9fce17e6e54f0a502ec916
|
|
BLAKE2b-256 checksum How to use checksums |
a9d2aff06db0e02263450c9e153c358809f2e4d80b197233618bb0c15689ea3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|