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

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.23.2
File Size Uploaded Provenance Actions
flet-0.23.2.tar.gz 3.0 MB Without provenance Details for flet-0.23.2.tar.gz

Built distributions (wheels)

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

Total release size: 228.2 MB

Release files / flet-0.23.2.tar.gz

Download URL flet-0.23.2.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
fd4c6de79797f70b2e62f27e4386d3ed399b900d3598d7a0336d7b1d17c7ee96
BLAKE2b-256 checksum
How to use checksums
2fd61802ebaa3dd1507101a5377be8c5215c5f221e4e89b9a00b88f23f4108d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-win_amd64.whl

Download URL flet-0.23.2-py3-none-win_amd64.whl
Size 42.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fca6b574256108ca0bcae8ce27dd1e09070dcdaed348cd8a02dd544b17f4ff64
BLAKE2b-256 checksum
How to use checksums
fb1544636283530e7b431b7bd4d59e7f498280973a5a8332bddc3a3bcca76cb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-win32.whl

Download URL flet-0.23.2-py3-none-win32.whl
Size 42.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
a71ba22dfe1f809bbe9b7fe0374ddca773683bbaee3aa3b87657d7bc627d312c
BLAKE2b-256 checksum
How to use checksums
a9aac603d70ae17f035bb994c27fae1742ec3f162b10194ef45c29891420a405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.23.2-py3-none-musllinux_1_2_x86_64.whl
Size 3.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8d34a90881c48796198396e54672d3af36b372e1cc8748c8c47724f1df1956ec
BLAKE2b-256 checksum
How to use checksums
a7bdf4aaef42ffc321ad460f98e98edfbacb660f33d345e416d4d99a71bda728
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.23.2-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
06cb02d3e580eceb9e6a2fae86ac3c6416ae9c1ec7c965f0c71739cb1ca2b92a
BLAKE2b-256 checksum
How to use checksums
be5a6bf1c8202c6eaa42421446568f0314b81f4709737041b7a0aec002302aef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.23.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.1 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
b632be042004307f848bf1896d6cd7c9798cef6cf2a534dd7168393f5d871f3c
BLAKE2b-256 checksum
How to use checksums
31bfd16e4ea4a227a4ee6f5b1380d45723b84ef51af863914e692cf80a564540
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.23.2-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
d42a6ff1384d99e03a702d9660d0c4585064e580c9ea07e6bdf51a66599de388
BLAKE2b-256 checksum
How to use checksums
a510664f8cdf48e19c64470bcffedc128431fcb970b44d137918ea75d1f8fa6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.23.2-py3-none-macosx_12_0_arm64.whl
Size 48.6 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
7f6db88095d9248f66253e00345faca5981a5c0729185ed022f718d94b7a1ebc
BLAKE2b-256 checksum
How to use checksums
ae4a912fbd3ecddc05bc50858d36186c665bcebeaeb5c6fa5b1ebd0eabda217c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.23.2-py3-none-macosx_10_14_x86_64.whl
Size 48.6 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
cb7efbf8cb1e50654819724e746d883348877fddcd4f4d45c2b32772bef31c98
BLAKE2b-256 checksum
How to use checksums
0c7106609b6073e7c2e376dff595c09edbc8afb1b912dd12ae4925e606b728e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / flet-0.23.2-py3-none-any.whl

Download URL flet-0.23.2-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2ed5f80df75b5bc123c84ea84ff79d30a15dd6ac985e4a9c06ace1702b251865
BLAKE2b-256 checksum
How to use checksums
506fca121c61bb282a7bcc51fb2edb490ac9f4169db91350f185f00adec24e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Security for flet 0.23.2

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