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

Built distributions (wheels)

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

Total release size: 173.7 MB

Release files / flet-0.10.1.tar.gz

Download URL flet-0.10.1.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
3a0cb817dfdb7926f7182a703ec37ef21b15ae84681d34a88ea83ee5e5f07112
BLAKE2b-256 checksum
How to use checksums
95895cb29c024b0b666af28e728402906e89e793b9834bf752f84e14ddbd2ff1
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.10.1-py3-none-win_amd64.whl

Download URL flet-0.10.1-py3-none-win_amd64.whl
Size 22.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2f7337d6a72f228f69cc926ae5ba4c10c88ab61066844dd411093bd1adc6e63c
BLAKE2b-256 checksum
How to use checksums
52cd3466ffbfffb04028852701fc33365512c115f4329b01e027fe17529d6dca
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.10.1-py3-none-win32.whl

Download URL flet-0.10.1-py3-none-win32.whl
Size 22.6 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
5f97065d471e6320ee61c45f77e22feaffee188b6cceb0462c55dc5698f72513
BLAKE2b-256 checksum
How to use checksums
432c66e16618c9c7fc01e828ab3863bf5cfb5ad5581c697934b945a28315c8a4
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.10.1-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.10.1-py3-none-musllinux_1_2_x86_64.whl
Size 8.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
803eeae5d7c6369b78a42b4cb74ad2adb78ba5aa656a8f047f334af7cf61fbf6
BLAKE2b-256 checksum
How to use checksums
ea6f4752785e2852a47f052df8a25d39464da535db189d31d114ce14d0d525fa
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.10.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.10.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
25b0732a5d5537a97662edfe864961baf81f0ce43013c063e2c6bc8ba29fb4d6
BLAKE2b-256 checksum
How to use checksums
b26398398f3b10d3e83ef61844d5dddb2d02c0ec41fea742d15a2fcf1bc11a07
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.10.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.10.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 8.5 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
293834f5b0456299e98c7c7446adc39651a990f5e3cd7a80999a24b6af8984df
BLAKE2b-256 checksum
How to use checksums
3e7f8185ea0cd0277c62cb54338eb9e1666751c4b4382b66eea15fdcc0a8446c
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.10.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.10.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
46809e9f7bc558b33f4a439fad0f41cff959bc667c63cadb3434e9f3cdde893f
BLAKE2b-256 checksum
How to use checksums
7f341483d4584e5764cf4483dcba9aa23a6c4b1058e15e33efc68235de3619bc
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.10.1-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.10.1-py3-none-macosx_12_0_arm64.whl
Size 33.5 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
8aaf7069dc65cf39f13999c8a5af06a549886c0d63b275a20c18b0513b51e8a7
BLAKE2b-256 checksum
How to use checksums
5472d6bc9c98d9d4d75e410c37f25e76eccc03602a4bbb993e65ce85583095fd
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.10.1-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.10.1-py3-none-macosx_10_14_x86_64.whl
Size 33.7 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
dba6b74276732173a9b5c3af36799595a21b217c26ac024d0c04dc8e1b889e18
BLAKE2b-256 checksum
How to use checksums
8356220c0da85acbb021f8e349463cc8ce2cad54527d1e98611d6382fd0d6d82
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.10.1-py3-none-any.whl

Download URL flet-0.10.1-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
39f7d820b70098fe77ac5a5f428bd7b9b94925865c595b9c67649396cedd3a62
BLAKE2b-256 checksum
How to use checksums
491a1e2d268cd3adc1c637d6f16d3cc4aecf9c1ead500a354f048dc69df1c436
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.10.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.10.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