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.16.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.16.0
File Size Uploaded Provenance Actions
flet-0.16.0.tar.gz 2.2 MB Without provenance Details for flet-0.16.0.tar.gz

Built distributions (wheels)

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

Total release size: 177.4 MB

Release files / flet-0.16.0.tar.gz

Download URL flet-0.16.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
7a78d35351d8191f306023be96113e9621f0c7c6ffd8f26ace6167ba8d494602
BLAKE2b-256 checksum
How to use checksums
bff2bd40249fbb847f725fda7f7615f2eb3e0347a3fa792268dd39dffa98267b
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.16.0-py3-none-win_amd64.whl

Download URL flet-0.16.0-py3-none-win_amd64.whl
Size 23.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2a3daa3624bed82997111bfac49bd9d1632656474fa213986bbc32d3aec886c7
BLAKE2b-256 checksum
How to use checksums
eec0d92eaa3b07d18070c15bd16961ab3eb6de1cec69270befb4a9919ba6785d
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.16.0-py3-none-win32.whl

Download URL flet-0.16.0-py3-none-win32.whl
Size 23.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
92cb5c2e003c056e12f371761b873feb5283328fa9f365bd2203281aecfc6329
BLAKE2b-256 checksum
How to use checksums
acc45c8069b64d99988a10399e4fc0565775551d710532f1a4695381d4c722ec
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.16.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.16.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
c45ed0fab1d4e055f1328c3623dbbceec4d4413a4c0bf237623f0714094d0d31
BLAKE2b-256 checksum
How to use checksums
3e2320325db94220da0ba0cf26b4bc41ffab9f0c40d3c301867e21ec7c10c749
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.16.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.16.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
16f123d36658e5ab108932394b93615ba5509bd88b4dd6fd392415ca0909b9e8
BLAKE2b-256 checksum
How to use checksums
e28fe2994b4756d43f6a98bbcafd50321cd25c8f5802ad9de2f2ef7bc178c226
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.16.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.16.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
b622e466271c3a3f680452069096bd2e6cf31b0a47360186d372891742e952ae
BLAKE2b-256 checksum
How to use checksums
299bab9dc88292b3e3035b55a7a224682424bba6be780708ddc5a6fd32cfef25
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.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.16.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
acbaea483986d6a4a5f80dbe5e2e9b91e82782fae74d21d88c030d943ea128d7
BLAKE2b-256 checksum
How to use checksums
780d677f2da722e2ee948f94908b17f54326f5ff07f97e511f62b5c0ec28cb45
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.16.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.16.0-py3-none-macosx_12_0_arm64.whl
Size 34.2 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
c89f30a19153d11928eeef0108a1c5685d89c5492e6fdd1d535963abe5764a4f
BLAKE2b-256 checksum
How to use checksums
b525c1bccdd5ff053336249dd55593de8dcb17e81381ab06455f5d62f60e7cf9
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.16.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.16.0-py3-none-macosx_10_14_x86_64.whl
Size 34.5 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
c83cb8ac1edc4cea54e0f2b98b463c6eadaaf463758254b1102bb4d585e87549
BLAKE2b-256 checksum
How to use checksums
2cf2ec6a11d865090954e4bc5ed8f8cfffcac89e806769b92a382c19c13bf950
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.16.0-py3-none-any.whl

Download URL flet-0.16.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
43ecd61bddad9cfaa6b282727fd67535c3e5fb44b1b4391abe4e629cd1aed7cb
BLAKE2b-256 checksum
How to use checksums
14940aca8c22ece9d26fc928b0b7330832e5002e69bc7220f764c06c32893c63
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.16.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.16.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