Flet for Python - easily build interactive multi-platform apps in Python
Project description
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 JavaScript. 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file flet-0.24.1.tar.gz
.
File metadata
- Download URL: flet-0.24.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754989e8314c3ca9f02b4fff2e1aac4e1395fc712175547e2f84a7f1f0f560a1 |
|
MD5 | ff9cbb76a100018c4cef9378bcb2bc9d |
|
BLAKE2b-256 | bf90afc2585378f9fa43bb8d11fddf83b3d6ad0f7045d71cc89033d5345b1ff0 |
File details
Details for the file flet-0.24.1-py3-none-win_amd64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-win_amd64.whl
- Upload date:
- Size: 42.7 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8821b0655ef2d7e8763a9ed87cf8a68e4e4ce302edac84b425bbc465620fd1c3 |
|
MD5 | 9f27a6cd523c0afb3139fa79dae8b44c |
|
BLAKE2b-256 | 490706186685896c91fe3c07ca443b61425022ffd28ffefe3c7377d0c7d269da |
File details
Details for the file flet-0.24.1-py3-none-win32.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-win32.whl
- Upload date:
- Size: 42.7 MB
- Tags: Python 3, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 054183a35c24cf69febabc17206097d38a39da90c0166899612f9f8ecd4a12aa |
|
MD5 | 6241ac1dd70d49c3bfabf2b9e86ab486 |
|
BLAKE2b-256 | dd76692739e467648ec34b7736f9f8901686e08457229a9f8909eb2eeba1c73b |
File details
Details for the file flet-0.24.1-py3-none-musllinux_1_2_x86_64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae142d9f37110944fc15a0283c9a3b1ea31d309f4e0942a387160f0688eae0f |
|
MD5 | d61d894777012e6476aea084cec51f7a |
|
BLAKE2b-256 | ee8731fba8ed6fb7843d62c7132612093293b0dfedecbca67558239ac2a2ba82 |
File details
Details for the file flet-0.24.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 17.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa5fd6cb049d4acd63758890553b7b43b2bbf6bcf0d37d2a0ffe91f12ca0279 |
|
MD5 | d17ad69b9a55e6bcb730354b91863852 |
|
BLAKE2b-256 | 0e1ecf321b8c01c2403de6943b6d0e692f7985c6b9e1b09149091a962675b6d9 |
File details
Details for the file flet-0.24.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARMv7l
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7759fab4075519a81c65d3693216f43d34d3838cf4fd832325e3d043df4a1a3 |
|
MD5 | 6ba0f85ca68bf3545d96762019d0893e |
|
BLAKE2b-256 | 522b4391d946b5266989cd9fe8a835ae59532420393387925febd5852f059514 |
File details
Details for the file flet-0.24.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 16.6 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5495f65b0354d5f169c7859cb2dbc331fdd995de38779e5f85748891a793c1f |
|
MD5 | 95968f457c3da7a17f70dd226d895ec6 |
|
BLAKE2b-256 | 82c2c6e5da3f7598cd7ee303e805914ef81f88304e85ad324bae8e85e6300ba9 |
File details
Details for the file flet-0.24.1-py3-none-macosx_12_0_arm64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-macosx_12_0_arm64.whl
- Upload date:
- Size: 48.8 MB
- Tags: Python 3, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a65b67b257bdb63815d20a3d5ae523975cafbf493b6baa3611d3edb854c5fe1b |
|
MD5 | 15b832f4339ba2d36364e5f2028e7e2c |
|
BLAKE2b-256 | a895c621a2cf562264d6fde0ce4b98c84953a03bba64988df984c159e3a20d0e |
File details
Details for the file flet-0.24.1-py3-none-macosx_10_14_x86_64.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-macosx_10_14_x86_64.whl
- Upload date:
- Size: 48.8 MB
- Tags: Python 3, macOS 10.14+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15ab27d73e0b20f5157e911c121ea9f0da682a73f1dba007adc1f2077e00ccb3 |
|
MD5 | 2b23848384ff687ef56e662e753ad61e |
|
BLAKE2b-256 | 131bc8e1a0ace21e3ef74a2423939ee42c5f53f7b123aeec1b3f038ba73b379e |
File details
Details for the file flet-0.24.1-py3-none-any.whl
.
File metadata
- Download URL: flet-0.24.1-py3-none-any.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfcfe8febedbc5eecb714edc11ee3e13c4a00c83000e55d4b664f695473f5141 |
|
MD5 | e79f48cd92ec49c25abcee42e9f001d9 |
|
BLAKE2b-256 | 9b124e72eff8c5e19249fdea6596ad77673fe88b69da92eca2f9fecd8998bf20 |