Skip to main content

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

Sample app in a native window

Run as a web app

The following command will start the app as a web app:

flet run --web main.py

Sample app in a browser

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 flet 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flet 0.11.0
File Size Uploaded Provenance Actions
flet-0.11.0.tar.gz 2.2 MB Without provenance Details for flet-0.11.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for flet 0.11.0
File Actions
flet-0.11.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for flet-0.11.0-py3-none-win_amd64.whl
flet-0.11.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for flet-0.11.0-py3-none-win32.whl
flet-0.11.0-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for flet-0.11.0-py3-none-musllinux_1_2_x86_64.whl
flet-0.11.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for flet-0.11.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
flet-0.11.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl Python 3 none Linux glibc 2.17+ ARMv7l Details for flet-0.11.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
flet-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for flet-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
flet-0.11.0-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details for flet-0.11.0-py3-none-macosx_12_0_arm64.whl
flet-0.11.0-py3-none-macosx_10_14_x86_64.whl Python 3 none macOS 10.14+ x86-64 Details for flet-0.11.0-py3-none-macosx_10_14_x86_64.whl
flet-0.11.0-py3-none-any.whl Python 3 none any Details for flet-0.11.0-py3-none-any.whl

Total release size: 174.6 MB

Release files / flet-0.11.0.tar.gz

Download URL flet-0.11.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
ce739566a4c69afc64ff4667b0b4d3c6515ad091e0fb0d50dd74185de10c102c
BLAKE2b-256 checksum
How to use checksums
bd1d9e31305b162615fc44ba7d088ca77498033de5421494744d1342859f1ce7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-win_amd64.whl

Download URL flet-0.11.0-py3-none-win_amd64.whl
Size 22.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
97ef56e9b3b8b4383ed1dc74f2a89842b67e7b0e7d58e14338c2f03e99760d47
BLAKE2b-256 checksum
How to use checksums
7a168d193988aceda0e65b202314e466f5b510c149b4fa9b6240f19315864e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-win32.whl

Download URL flet-0.11.0-py3-none-win32.whl
Size 22.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
447153ed10fc31f4176573813c7f8dd10acb93dcc6e317287331f0359cb8d29c
BLAKE2b-256 checksum
How to use checksums
7431c5ee608490583d201dfde6bf8755a599343c25831e020fed3b3dde0a2261
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.11.0-py3-none-musllinux_1_2_x86_64.whl
Size 9.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
eeb4d7fc8161d2ada290b641d0bc98c2f6638ffef3ff6fc193f40e9e9e1cc768
BLAKE2b-256 checksum
How to use checksums
e32e3df76af8d682beb751633607bb0a3577b75414167f0522390c2cf4b62fe7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.11.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
f56fa5f4e706ca274f4966e9a76430f9770c5352a380bb02c9ed873e9c909328
BLAKE2b-256 checksum
How to use checksums
7208a81c887b51f07a4ae4a4152c9b12fa7b8886fed23bc5021d926f7d756568
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.11.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 8.6 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
9c2a88535abafaa16f60d4f880468b61965a5457f0760ebb228e78690d6b3e00
BLAKE2b-256 checksum
How to use checksums
ad1094808534286f323299261ac571205c6628be6416d35dacd88ba6d5b992de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.11.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
78917589b743ae3d0cf901bede9834af8acae0efed198ac1ed0b6795f3fcbaed
BLAKE2b-256 checksum
How to use checksums
b44d41611929a64f0d73ebd9153fbb08398a09f8ce30dd4b0c02dd35b91a417d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.11.0-py3-none-macosx_12_0_arm64.whl
Size 33.7 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
4369f8f84a151221dd92f7d76efc674c51ad3d98f3515b09a1765fbe52f6ec19
BLAKE2b-256 checksum
How to use checksums
b82d1cd8665030422dcb96255afa3a26f1a5aac4162a654341902a4048478240
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.11.0-py3-none-macosx_10_14_x86_64.whl
Size 33.9 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
f80317c50072cd963dc1ad3730c5c6b4c29fd9200668a5fec826780c451f6929
BLAKE2b-256 checksum
How to use checksums
1e9912ad24353c617f8e0bd77a15daf923e5ad28d948d17cf00c305e4802596a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / flet-0.11.0-py3-none-any.whl

Download URL flet-0.11.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3fcbe4328195a4ec424216a001391e4fb5129c7bc90b303e599c65f328da518d
BLAKE2b-256 checksum
How to use checksums
09dde6ba1544517219e69a2fd6661d3925c2759f1ba8dca6e3f4b5adf068ea55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for flet 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11.0 This release

10 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page