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

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

Built distributions (wheels)

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

Total release size: 228.5 MB

Release files / flet-0.24.1.tar.gz

Download URL flet-0.24.1.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
754989e8314c3ca9f02b4fff2e1aac4e1395fc712175547e2f84a7f1f0f560a1
BLAKE2b-256 checksum
How to use checksums
bf90afc2585378f9fa43bb8d11fddf83b3d6ad0f7045d71cc89033d5345b1ff0
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.1-py3-none-win_amd64.whl

Download URL flet-0.24.1-py3-none-win_amd64.whl
Size 42.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
8821b0655ef2d7e8763a9ed87cf8a68e4e4ce302edac84b425bbc465620fd1c3
BLAKE2b-256 checksum
How to use checksums
490706186685896c91fe3c07ca443b61425022ffd28ffefe3c7377d0c7d269da
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.1-py3-none-win32.whl

Download URL flet-0.24.1-py3-none-win32.whl
Size 42.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
054183a35c24cf69febabc17206097d38a39da90c0166899612f9f8ecd4a12aa
BLAKE2b-256 checksum
How to use checksums
dd76692739e467648ec34b7736f9f8901686e08457229a9f8909eb2eeba1c73b
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.1-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.24.1-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
2ae142d9f37110944fc15a0283c9a3b1ea31d309f4e0942a387160f0688eae0f
BLAKE2b-256 checksum
How to use checksums
ee8731fba8ed6fb7843d62c7132612093293b0dfedecbca67558239ac2a2ba82
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.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.24.1-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
0fa5fd6cb049d4acd63758890553b7b43b2bbf6bcf0d37d2a0ffe91f12ca0279
BLAKE2b-256 checksum
How to use checksums
0e1ecf321b8c01c2403de6943b6d0e692f7985c6b9e1b09149091a962675b6d9
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.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.24.1-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
a7759fab4075519a81c65d3693216f43d34d3838cf4fd832325e3d043df4a1a3
BLAKE2b-256 checksum
How to use checksums
522b4391d946b5266989cd9fe8a835ae59532420393387925febd5852f059514
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.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.24.1-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
d5495f65b0354d5f169c7859cb2dbc331fdd995de38779e5f85748891a793c1f
BLAKE2b-256 checksum
How to use checksums
82c2c6e5da3f7598cd7ee303e805914ef81f88304e85ad324bae8e85e6300ba9
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.1-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.24.1-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
a65b67b257bdb63815d20a3d5ae523975cafbf493b6baa3611d3edb854c5fe1b
BLAKE2b-256 checksum
How to use checksums
a895c621a2cf562264d6fde0ce4b98c84953a03bba64988df984c159e3a20d0e
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.1-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.24.1-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
15ab27d73e0b20f5157e911c121ea9f0da682a73f1dba007adc1f2077e00ccb3
BLAKE2b-256 checksum
How to use checksums
131bc8e1a0ace21e3ef74a2423939ee42c5f53f7b123aeec1b3f038ba73b379e
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.1-py3-none-any.whl

Download URL flet-0.24.1-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
dfcfe8febedbc5eecb714edc11ee3e13c4a00c83000e55d4b664f695473f5141
BLAKE2b-256 checksum
How to use checksums
9b124e72eff8c5e19249fdea6596ad77673fe88b69da92eca2f9fecd8998bf20
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.1

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