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

Built distributions (wheels)

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

Total release size: 177.0 MB

Release files / flet-0.14.0.tar.gz

Download URL flet-0.14.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
dd0375cc6675005c4ee7744700493526826813414a55660288da36fc375111f0
BLAKE2b-256 checksum
How to use checksums
a8e69b2f860f03437bf4172471fa115df86fcf6f58a9b0ad46f539e81c5619f9
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.14.0-py3-none-win_amd64.whl

Download URL flet-0.14.0-py3-none-win_amd64.whl
Size 23.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2920a222a2bee1475c3c2d73a3552140121f70d4e930d8c25330d54b5097c8f9
BLAKE2b-256 checksum
How to use checksums
57d7532ecbe752f9138438f9ad58f549e7f7baddd850a40887ad034b75844d26
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.14.0-py3-none-win32.whl

Download URL flet-0.14.0-py3-none-win32.whl
Size 23.0 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
cbf91de05766a0365d3991174428c690e12bf6384cd3e9a212e535b70c232900
BLAKE2b-256 checksum
How to use checksums
6ba1d1b39eaecd129ece585407f373ad884fe2a6c0cfef50b953ad7c1b408bea
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.14.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.14.0-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
ace7097a6fd3c574ec01c2efdb3982237b28d7451895de42637764d36a4bcf94
BLAKE2b-256 checksum
How to use checksums
24f8b5e5f800528b0ea284f5f8194bfdc94b3286c6b684120d81fe4e5d2ba56a
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.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.14.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d03c3736ac6733ef3104ab601193fae073aa7a91e18cf8c174c0668944139dd7
BLAKE2b-256 checksum
How to use checksums
0474a50ff957621df25bd98902be46e5259d1529db0b13fd19a43d1911c03bba
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.14.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.14.0-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
a284d0355c77d9509f31d429b370b98891ea16360f46d6965af20225c5209f10
BLAKE2b-256 checksum
How to use checksums
a1430f02487d372c9eaa9c9ad56c1feaf2d6a6bb78250a4e71abeda8efc1933d
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.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.14.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
de74b3b934b9cc1080b9020ca9f1f2b065b7376366106f67d89e118cf44e50bc
BLAKE2b-256 checksum
How to use checksums
dfb41f961c4b7e32ade9deb51d06c5051250df3174b0cf7f81aabb8c5dae08f9
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.14.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.14.0-py3-none-macosx_12_0_arm64.whl
Size 34.1 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
5b06386071ec71113517804c3997d47a6366d2f471d309d6f95e3bf1b409a616
BLAKE2b-256 checksum
How to use checksums
20c3558549e6f8255e4023298f4159ed9be4f4e30dd17db49a6a67e3cfde71b7
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.14.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.14.0-py3-none-macosx_10_14_x86_64.whl
Size 34.4 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
818c0d34f24c743f74cf330703836ceae7217d9825045524ab883fb374c1080a
BLAKE2b-256 checksum
How to use checksums
c8ae559e59c1614c5f92183e90294f1225405dfbc1e9199d22257dcc60da0b53
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.14.0-py3-none-any.whl

Download URL flet-0.14.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
41ab50265196b37a126d388e564b8b3fb82ebd69d91c36cf7d0c46b83ca81a40
BLAKE2b-256 checksum
How to use checksums
8e661b840a3970e2cc88c09ffe6047d4ea5f45457a0d9fd4f0da6123a3d2c60a
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.14.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.14.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