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.12.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.12.2
File Size Uploaded Provenance Actions
flet-0.12.2.tar.gz 2.2 MB Without provenance Details for flet-0.12.2.tar.gz

Built distributions (wheels)

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

Total release size: 175.7 MB

Release files / flet-0.12.2.tar.gz

Download URL flet-0.12.2.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
831c7b90df0b000a8ac3a5a8cfd88638b456e6787aa2d76788ca3970d74171c3
BLAKE2b-256 checksum
How to use checksums
21dcfe946b0db24111ff789ccbaf9b0900dc8e27da8db8de964994f30a9b42cc
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.12.2-py3-none-win_amd64.whl

Download URL flet-0.12.2-py3-none-win_amd64.whl
Size 23.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0355cc877658af04cf45d9d547fea127df9127b292d6b8186ea7a263ba5eb2d3
BLAKE2b-256 checksum
How to use checksums
7f0c09c8f4e51ab456f22a9affd171582b63b9c774463dcc04f6812d29281fe7
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.12.2-py3-none-win32.whl

Download URL flet-0.12.2-py3-none-win32.whl
Size 22.9 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
d29c7f71baeb11224fa6ea208750fbfe0246bdcaa170a49252aca5f3d7c3f63a
BLAKE2b-256 checksum
How to use checksums
63850153c09fd7d7528ce8c211e27e60594c18860471c1f74a80800b1e20cf8d
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.12.2-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.12.2-py3-none-musllinux_1_2_x86_64.whl
Size 8.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0b443d8e5d0c7a3911bf8b440198bddb863a93690a3f2f3d9db204ea951cbff4
BLAKE2b-256 checksum
How to use checksums
d41eafed214a8f26d3b9568637a1a3c56d13dce953cfba0f79f4fa653d5427d1
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.12.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.12.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
06c3870692f49e3319c5bc86f595568d27a741bc2f10d4b2c46c9a9ddcc60faa
BLAKE2b-256 checksum
How to use checksums
e9c216560d0b9019bffdd0c90d502e54111563ca22316a06c87ca45b08cce4cd
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.12.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.12.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 8.5 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
62acbb04e5004266380fd404141e8562d43c0aa4c08cd1e662687afe4e5a4c7f
BLAKE2b-256 checksum
How to use checksums
e20e5bef4cdff3871c8573075f4aa893af200f846cb7eca5f1882bab83519938
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.12.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.12.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
7f854a44e403ad72f7b64b67847e2b261ea0f1a2602855abee3acf45bdfdda73
BLAKE2b-256 checksum
How to use checksums
f0c31b28f67c13be134564f91db7b56913d503e34f7f42cb9af65719802e5ae1
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.12.2-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.12.2-py3-none-macosx_12_0_arm64.whl
Size 33.9 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
105fd25488adb47aad9e119cdd099e3e80143e34509624b4c01d00094209e434
BLAKE2b-256 checksum
How to use checksums
d05fad55e76a8aec8ace9f690c845891c2fdd6aa437daab35d586b813080ada8
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.12.2-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.12.2-py3-none-macosx_10_14_x86_64.whl
Size 34.1 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
a141c40624caac760258806b7b7c3e38726adbbad384919757fd350fe7f6df29
BLAKE2b-256 checksum
How to use checksums
1ed5a89aaad788b0c15ce9b31733ab6a059a499c69d6f1938828131a1f225053
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.12.2-py3-none-any.whl

Download URL flet-0.12.2-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3c03d09626ee949a0c4bea35d889be9f0e1becdeffd9fb3d1c17a0ea13ebe9fa
BLAKE2b-256 checksum
How to use checksums
5eceb4fb15b633077b5fe9db7d5cd482c11b5e0b5597a19ed0d6e6d08cce7f7f
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.12.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.12.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