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.19.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.19.0
File Size Uploaded Provenance Actions
flet-0.19.0.tar.gz 2.3 MB Without provenance Details for flet-0.19.0.tar.gz

Built distributions (wheels)

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

Total release size: 178.7 MB

Release files / flet-0.19.0.tar.gz

Download URL flet-0.19.0.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
62930bfcd21488bd56620eb347a97ad2727a29105f8cc3a345b3c3763851dff4
BLAKE2b-256 checksum
How to use checksums
a6d9f136c1eea7acd297bc5b9e56c64c07d220921c6c9ee8388d0b0637fa5885
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.19.0-py3-none-win_amd64.whl

Download URL flet-0.19.0-py3-none-win_amd64.whl
Size 23.4 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3ccefa3396b5dc40ca987369a5118956e5e9d4220406c604bd77e30da32dfe24
BLAKE2b-256 checksum
How to use checksums
4be2d4aa6c992e7c59426cebfbee7df0881174892bd3acec80b6d29c3b046ed6
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.19.0-py3-none-win32.whl

Download URL flet-0.19.0-py3-none-win32.whl
Size 23.2 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
48b4c248eccde6d6d7342790f65ec1d9816ca6199539fcb04a1661ce0681eec3
BLAKE2b-256 checksum
How to use checksums
a14c8a312c3339f3a5b2aab5c454f24e23afaaaaa03985e1019c245a933ce2bd
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.19.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.19.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
09ba3de19182d507293187f9894cc1763b9ff0db3d08513ad94f8f3858e30c6b
BLAKE2b-256 checksum
How to use checksums
2be42b6bd727971258b6a5f9b5c242d7f03381d927289652a8241dbba91d7db4
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.19.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.19.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.8 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
478d064d0110eaa97aee2e58d3970b30f776a1a0487e098767986c9c30c10c8c
BLAKE2b-256 checksum
How to use checksums
cfdc249b9e05d94af134a8f8842360b5c5d7c3a81c404606f65bb380c448d5ea
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.19.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.19.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
467eb20febec996b3e1130ff1a8b6ac4e218af7af3891dfaeb5393ca11148a16
BLAKE2b-256 checksum
How to use checksums
fb0cfbd8016b9ec6146fa5bfa5e2c87b2cc970b7e0d8af534fd8b20b106ec8f1
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.19.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.19.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e86cb97d73ead6c752d7a0a4a1d335a85f54f5d795b39ac5ae4cc6b35bfc1bd3
BLAKE2b-256 checksum
How to use checksums
8cd605143741453da5265bade8244bcb74cfddfa79269d2449d71082275c1651
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.19.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.19.0-py3-none-macosx_12_0_arm64.whl
Size 34.5 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
37577db7fa1e7252249ddc7ab3db38b48c51a83c86be89a1bdd43b53a1df4e0d
BLAKE2b-256 checksum
How to use checksums
22e470d47d35f14c4a82355d7ca9a016c576b840f4199589b14295227e291683
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.19.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.19.0-py3-none-macosx_10_14_x86_64.whl
Size 34.7 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
2fed1133709055ef40b7e0b46ad4fa3f028c13474730c3ce5595f36656c7d5b3
BLAKE2b-256 checksum
How to use checksums
90e6d49f39b4e04a76a3b2a9a769c84ed2f14e515ca7f2a7c3645bc0eae0fb17
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.19.0-py3-none-any.whl

Download URL flet-0.19.0-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d161dfde592ac5e6ba5b63755e10538b2956e412b1f0bb52511b2ae66b3cf7c3
BLAKE2b-256 checksum
How to use checksums
6ae1b4ceec1e5817fa7c1881024540056399fab003d371ac76b374e7e520659e
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.19.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.19.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