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

Built distributions (wheels)

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

Total release size: 228.5 MB

Release files / flet-0.24.0.tar.gz

Download URL flet-0.24.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
c95ee1ed76bd6b3c360a03babcc371f7ce17c24a192c2996f550d323d0bd3a24
BLAKE2b-256 checksum
How to use checksums
bd0b29f95daf3d026ec6c05713430ef77bba92ee133d2fa4c3952b04e93c62d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-win_amd64.whl
Size 42.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d02505615a686c974b03a92ed601e974f321df13b655eb06831ed372f5199de8
BLAKE2b-256 checksum
How to use checksums
ef01a3c3c56dea4261d0db1065d4929174d30191d34ba0998f3614d9d34b7fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-win32.whl
Size 42.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
80066e7dec96523944164c584b6ebaa01b49cce1e61dc4b2beb3b346c3a57aab
BLAKE2b-256 checksum
How to use checksums
c0e2fb3e1673cee8cf3bf1e40088f5ccb783a2f2960eb3f089b95c6f075ee49e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-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
e5a7f20318c671d81c5bef720bfbda78d932caa1036493e60422197e41f7d22d
BLAKE2b-256 checksum
How to use checksums
69e36fa70ea84cceba405d38133b2ad7227b732152618bb44f6e8fa18195e76f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 17.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8ca900932d3c651407601e335ae1ffadf8c4ed878b385b94b210b50aa170daf5
BLAKE2b-256 checksum
How to use checksums
6a3223a0daf243301dc6089d6c8972ee6c40a1d35c5016a77f189aff283211dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-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
668836f8a5dacbf90ae6e827fb948a4dfdf2b38c34082cc77466b178745e62c5
BLAKE2b-256 checksum
How to use checksums
6039687e3bc47a0e230272f31380c805d45b32e0d7e5f5e1e8cb01850b4df34d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 16.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
81adaf92753793f3d0e7a166b16a882b8bce7404a1e15e82a67c59e00a2c787c
BLAKE2b-256 checksum
How to use checksums
e14ab82b2dd3a919bad7b505aa525c598b3c476c5e9f41a50fc64c53f63607ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-macosx_12_0_arm64.whl
Size 48.8 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
76f91a8f767257b291e5bfb6eebb5abc6572f50618d8f7ae072623b9a185c66a
BLAKE2b-256 checksum
How to use checksums
af8ea07dbfc01eb7650375f0a6c32047f9bfc99418146356440d15b1cf43b855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-macosx_10_14_x86_64.whl
Size 48.8 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
1d1e6779dd30335e6c8151c06f1c77412e9aa8562bb51e74e0fc5accf6c393e3
BLAKE2b-256 checksum
How to use checksums
e0cf5cb5d266c9c84b94ad658dc147fea809adb1213e6df63c8d4a086ae86101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

Download URL flet-0.24.0-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4a2115cc93c628c92ffdbc71f2675f9cd36406c2681519cd3818e85cbb43cc50
BLAKE2b-256 checksum
How to use checksums
2497b7af7f5f76770662f1477e956f76b07ea70d95951cd567f331cfcb0aa0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Security for flet 0.24.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.24.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