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

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.22.1

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.22.1
File Size Uploaded Provenance Actions
flet-0.22.1.tar.gz 2.9 MB Without provenance Details for flet-0.22.1.tar.gz

Built distributions (wheels)

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

Total release size: 225.1 MB

Release files / flet-0.22.1.tar.gz

Download URL flet-0.22.1.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
10643d18b9550ccdab9f1c5c5fd6933720c546ecae10a217ad88732b09264237
BLAKE2b-256 checksum
How to use checksums
a38e9c99e8742a2f0b089fe5d8076ed6e2a1e0118dcde219ad62509db13fdc61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-win_amd64.whl
Size 42.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a4dce8443a0f1c3f276c9b5873a06e9f34cbae0360ac833e34d5be428cda68f4
BLAKE2b-256 checksum
How to use checksums
3c08221823c486bc20302b06115ac245d5094fd1a663e1ee0580553a8d76d1e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-win32.whl
Size 42.2 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
e4cbb28c276dfaff09aa7e01c99dc7cfe3b8ca7527eb33802175ccc989557ec8
BLAKE2b-256 checksum
How to use checksums
45389ac02560488047123a5f0cb25a743c14ce4342762945898c2fb9738e989e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-musllinux_1_2_x86_64.whl
Size 3.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d1d3a32e0a0cccbfea79bc927e1f8fc5491f73f78729d3de9b67695c49decb2b
BLAKE2b-256 checksum
How to use checksums
32cbf079d232fe89d126c4f02c97561178622f66453bef675b730125597f1bcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 16.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7669745c397b0c051280b264d8a306e5deeeb2c39aaf4362add71b538f8d93b6
BLAKE2b-256 checksum
How to use checksums
e74a4436e33814a5f9d49c731d8a445d593b3a1c35fe1d6598883c8c576846ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.0 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
e83f6d270706753eb673bac0770a7a29aa7648e03b42f5d546bf7992794d4a27
BLAKE2b-256 checksum
How to use checksums
eb099786dc92b5f2084942f37c13c2cc252de8ecf919724fb2b7ea885809d94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 16.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
b14039203087358ecbae1ddd176f874561df5d033460b54500138cc24cc41fc5
BLAKE2b-256 checksum
How to use checksums
92c11805918fc6f945b84ba55e1c2874330d5b0860f4caeb4f61e8d16aeeef4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-macosx_12_0_arm64.whl
Size 48.0 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
71c0123ad820263188704ba8ae5cfc72a9bc92336f2e41e5eb36830bd4caff59
BLAKE2b-256 checksum
How to use checksums
0f7e747d2f3776a4ef9f2314ce7fd1f1d862e60f8d56119ec646468355b70f5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-macosx_10_14_x86_64.whl
Size 48.0 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
d4e6a2e7d656048b787ca613f2dba2a4658c4bc6695e7fc7f305e4de26db7cf5
BLAKE2b-256 checksum
How to use checksums
1ea4a32364e61e684b487c3beeb2c7a94b9c376e283f748d444b97e121624d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

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

Download URL flet-0.22.1-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
50659c669b9bc9499a06ad88a4837610f1ccbab582d946302d091ce49baa47f0
BLAKE2b-256 checksum
How to use checksums
c7ca7ac73e58f219adcc699e6a48be18ce77b3f0b6a9b076b806bb5319e1c30d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Security for flet 0.22.1

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.22.1 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