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

Built distributions (wheels)

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

Total release size: 175.3 MB

Release files / flet-0.12.1.tar.gz

Download URL flet-0.12.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f1222d4d25af41d6d4faebec7049f5bd497971e96b5593f6858667db8bf74850
BLAKE2b-256 checksum
How to use checksums
9edbd30efb796de4de2b029ea2f1f9d20aa5f11af760123984428a7f97d67f12
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.1-py3-none-win_amd64.whl

Download URL flet-0.12.1-py3-none-win_amd64.whl
Size 22.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f19995ad684024f1f1adba78085b061712848c4406cf20b4903bc424a6806aa3
BLAKE2b-256 checksum
How to use checksums
8827f6cfa7648c7c56bc075312d225c7afc85b222bebac6b1abec8025cb423ec
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.1-py3-none-win32.whl

Download URL flet-0.12.1-py3-none-win32.whl
Size 22.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
3336db529a7e5a94e7b285298b30ea6742b2fd8adf2d8079dc7808c549f84763
BLAKE2b-256 checksum
How to use checksums
7e313da4aac23477c96a2d09d28bc71391b66ad28888068d54cb2754b1348e14
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.1-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.12.1-py3-none-musllinux_1_2_x86_64.whl
Size 9.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e101d458c4120b2ea31a91206a79f0d480aca70e449f40612589fd24eec644c8
BLAKE2b-256 checksum
How to use checksums
2055ae3e53b5113108aea41719aa6112603213010d884e5ea513c448e3e721d4
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.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.12.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.4 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7446d0d5ba7960d5553a1303562dfce10be43435756fc277f418cca373f288e5
BLAKE2b-256 checksum
How to use checksums
d28197dd5d7ba5177b37a0865ef8e965052b792001a3598461dea1f17135e5cb
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.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.12.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 8.6 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
4e1906d7dcfccef4dbec898f85e947776771692ec721acd6f900048e7543ba25
BLAKE2b-256 checksum
How to use checksums
1a7a7cec863a2f701ff0fb189ced9bea6f5f5435096da79204a092969f1c1766
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.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
3c5521a64b578bcb70be9091f37b97d5869cd4603a308886ce281e684ed660ac
BLAKE2b-256 checksum
How to use checksums
2bcf508f2b3e10b9c20e461201401ade738ed10635dc271685f06e31a641c298
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.1-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.12.1-py3-none-macosx_12_0_arm64.whl
Size 33.8 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
08b958abae67f24ed08e32e2eae6843bc26dac899284ed41586c86fef38c0fac
BLAKE2b-256 checksum
How to use checksums
52d3c7e95761decc8bf4534cbaf0c0a61296996c539e98bcfb2fa5653e6ec6e2
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.1-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.12.1-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
4bfec8d3cc22b512c7a1f77949b9b93f820fb04bade07110b0ce5c301f5b0bb8
BLAKE2b-256 checksum
How to use checksums
6700cc77d76e552fd44426727b663cf534bc016f25b6569fdcdc61e14284f3cb
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.1-py3-none-any.whl

Download URL flet-0.12.1-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9b269734db192a4a0c5007caaa102bb5b4d5ca4722215df59d6b6d13eefce12f
BLAKE2b-256 checksum
How to use checksums
ac366e78f36e8c2c687af95b74bf1bf84051923213d4f0ec3f835b19b56e5592
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.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.12.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