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

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.21.2
File Size Uploaded Provenance Actions
flet-0.21.2.tar.gz 2.7 MB Without provenance Details for flet-0.21.2.tar.gz

Built distributions (wheels)

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

Total release size: 210.4 MB

Release files / flet-0.21.2.tar.gz

Download URL flet-0.21.2.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
7ca8cae2fb3bb3f46254b718d14bd522d392119581093ec914477acde06c407b
BLAKE2b-256 checksum
How to use checksums
44c969bd280270e825382980b1913d8cecc165f03171227fb884fffd83df603c
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.21.2-py3-none-win_amd64.whl

Download URL flet-0.21.2-py3-none-win_amd64.whl
Size 40.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
eaa331b65bc65b5e6a95e54dfd644850d080364fb8ad1bfed0517f64813db92f
BLAKE2b-256 checksum
How to use checksums
ef3de5474a3fc9b007e3ac30b08f6e76ab2af963a0fb38d0da3bc591b0066f43
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.21.2-py3-none-win32.whl

Download URL flet-0.21.2-py3-none-win32.whl
Size 40.6 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
0b0a86a46662df08377beb3cc040a86d7f3371a688a0832ea456bc09bdec10c1
BLAKE2b-256 checksum
How to use checksums
a1247e97433c5da2202a6894d9afaae44478c9b5f748ee72c03a17a8576c4b58
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.21.2-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.21.2-py3-none-musllinux_1_2_x86_64.whl
Size 2.7 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
4523c88f0350d6acdaa111fbcb1c034f145e1309e499c765332a7af55a51a240
BLAKE2b-256 checksum
How to use checksums
56596763bd75ff8a4a381a7758847c66d1b9eccd8941058f960f948f8d559f59
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.21.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.21.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 15.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
675ee595eed1d27b165283d49fefa4348b892f48735717a0145aa99cfcf9c6fb
BLAKE2b-256 checksum
How to use checksums
172e76f26830e01e9001d363b1613801f0ff32f763d305c021cc85a179606ed6
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.21.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.21.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 2.7 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
a6c75c0e4635999cd0e8b322a8d9a6a4d91ab1ba71a2dd07affb4e84f2038a05
BLAKE2b-256 checksum
How to use checksums
4ea73e7e928fa8bf4b99d02f7f4f515600a250170a1f75d4ffa3894d24018a5b
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.21.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.21.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 15.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
d39a3693b6035e100d9c3ce70e800306e760b65364a097635dfe778b6ea581b9
BLAKE2b-256 checksum
How to use checksums
d38d8dd609b4024b4f47d82e351a34fd8f125cc2f7e30fc1f0252c22b53cfe1b
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.21.2-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.21.2-py3-none-macosx_12_0_arm64.whl
Size 43.7 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
fff79b4520b89fe4053612a03bd7c491f970e5e340006e9dd8179ef16c348ff4
BLAKE2b-256 checksum
How to use checksums
2634708d56ae89caff0b042e70fd713444c165b851e991fdf4433c1f001fbde2
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.21.2-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.21.2-py3-none-macosx_10_14_x86_64.whl
Size 43.7 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
d2447291ddc8aa8dd234aea0afd5ce54de4f268ed75a5f614453ff771fe3f33a
BLAKE2b-256 checksum
How to use checksums
d1abe931685c4042466372c5654f60630524730ddc8e841a60e0799dd23123b2
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.21.2-py3-none-any.whl

Download URL flet-0.21.2-py3-none-any.whl
Size 2.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
675fe5b6bf225fe3fcb95840401c7b6d36adacfb2c5f40e7f786541a8c900117
BLAKE2b-256 checksum
How to use checksums
062d8c1994eb461441d0944b249123697fc29f2a65d3727b2659951b7d82a959
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.21.2

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