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.23.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.23.0
File Size Uploaded Provenance Actions
flet-0.23.0.tar.gz 3.0 MB Without provenance Details for flet-0.23.0.tar.gz

Built distributions (wheels)

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

Total release size: 228.2 MB

Release files / flet-0.23.0.tar.gz

Download URL flet-0.23.0.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
b799f2701ad1b37d9651c64011af52ff312d24bb162eaacd4da9776329dd2248
BLAKE2b-256 checksum
How to use checksums
5f439bd780cd42d20e6fd90d173dc59ee57a98c80f99d10f0c3b6c68e8a859c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

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

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

Download URL flet-0.23.0-py3-none-win32.whl
Size 42.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
ceac6913ede8398307cffb778edfa553b57fd9d3483e13f15c40910aabbd403c
BLAKE2b-256 checksum
How to use checksums
201b91392b7424001350ada5179c5f18b190fb68203ee3d2d0a1d0db42093f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

Download URL flet-0.23.0-py3-none-musllinux_1_2_x86_64.whl
Size 3.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cc207bcacc6415014496e644ea1f15ed1812101dab075f0b17c275bd23cb892e
BLAKE2b-256 checksum
How to use checksums
9076296f9e76950b456bf752387d31ae6da620d3ab551ba0321731a709d04fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

Download URL flet-0.23.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
c472041c18fb0d69d910e77b3d1780455682978a868acf074a971d1234e3cc1a
BLAKE2b-256 checksum
How to use checksums
f892cdd20ef1eb5556456e97cb36e12105f0fd135ffc767f8a3238982c8efc26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

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

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

Download URL flet-0.23.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
59c98bed8c784e318cf9807e74d9f280f661c54bbb8e160fc656606afbd6f165
BLAKE2b-256 checksum
How to use checksums
a5c265ee4194fd2734518934ca4dd23ad26b2fccea35a3ee251317635d19d01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

Download URL flet-0.23.0-py3-none-macosx_12_0_arm64.whl
Size 48.6 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
c0ab7c2b393fdc5462a092b955984bddacc6320783a3ed0858c16afd5a0fb2eb
BLAKE2b-256 checksum
How to use checksums
7bb3b459bb0a9d01f1777f87c25937e8de4c33fbd8973d988bd6dcab0d610b94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

Download URL flet-0.23.0-py3-none-macosx_10_14_x86_64.whl
Size 48.6 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
381cdb87f8ee916d7351e79091f492c81aa63fc37737231699a7ca64aca559f7
BLAKE2b-256 checksum
How to use checksums
42e47d5d9969534c7ff283409c8b0ed635d458c0141ca63540d32358fa508df8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

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

Download URL flet-0.23.0-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
43dc31c3061cd55667e36f8578b59bccd6542440a5e81ca16cde39bde07edbfb
BLAKE2b-256 checksum
How to use checksums
948dc62443d948b387157462959378f481d4b4c0bd4bf0b31059b613e103af27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Security for flet 0.23.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.23.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