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.22.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.22.0
File Size Uploaded Provenance Actions
flet-0.22.0.tar.gz 2.9 MB Without provenance Details for flet-0.22.0.tar.gz

Built distributions (wheels)

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

Total release size: 225.0 MB

Release files / flet-0.22.0.tar.gz

Download URL flet-0.22.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
168787259a4040d4cf8923f35c959f2d80cdb17325aeb1c32f5579c48335ed68
BLAKE2b-256 checksum
How to use checksums
6ebcb240043f99319ebee972c2b361257e8bb1a2ce43b2415760803152909347
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.22.0-py3-none-win_amd64.whl

Download URL flet-0.22.0-py3-none-win_amd64.whl
Size 42.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4aa1c88f36cbf072df7ee22cdc111a9ad0e0813336b9fb0fe8b7f6166020a6a4
BLAKE2b-256 checksum
How to use checksums
18617ec2edd6aa0fff9675f997f284d64b86ec5024c60398ddaa5caf96cc705b
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.22.0-py3-none-win32.whl

Download URL flet-0.22.0-py3-none-win32.whl
Size 42.2 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
cde47b6c71fea0cfb508a4c2abbf1a441073c3fad3b58be62c9610a8bf342cb1
BLAKE2b-256 checksum
How to use checksums
0702aec871958a36bbdc1018f87e606629558c3c5da98bf5c0e8f9cd8187c489
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.22.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.22.0-py3-none-musllinux_1_2_x86_64.whl
Size 3.0 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
206662a9b445cc0858f8bf5a5328f90fb68b13a97cdfb4ff3609866f89f6ed16
BLAKE2b-256 checksum
How to use checksums
e29ad82f0413e517db0fd6a63ffe01849bf44abd95bd12ab6db4bc755cb09181
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.22.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.22.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 16.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
fe921d4d49945a8244fa42bbd62f57227601d83e5a83f00b996346f964bf7f8e
BLAKE2b-256 checksum
How to use checksums
693922fb20baca1f1a453dc6e43197c94e3b95494ef0592dc7d56ce6e212a6b4
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.22.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.22.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.0 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
4aaaebb7931c30525147e1af9cb84445ac189ee33dafe0dd781b83ca980523fb
BLAKE2b-256 checksum
How to use checksums
da035eaa237ad1aafe4d95c028f3e299b4056c563170c3d8aa6df01f529d48cd
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.22.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.22.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 16.2 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4c739aa34b30ba92dec7daf1b1d86ff7193447ad31ae12fa5bfee19ec72e34ce
BLAKE2b-256 checksum
How to use checksums
7e84f23f31cb3683cb034e9faa357907b90630f5330bb324cc79aaebd0c510e4
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.22.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.22.0-py3-none-macosx_12_0_arm64.whl
Size 47.9 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
c0e635fd0a96353ddf45bd61ac3340b821774127478311212d3c693565b39af9
BLAKE2b-256 checksum
How to use checksums
8cb693306b94a5a8ab966233f4b4646fcb9a008924fc8320fc9bf24b0d1c9bc9
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.22.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.22.0-py3-none-macosx_10_14_x86_64.whl
Size 47.9 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
23825befbef24949470d3944a5e713de0cdfeb721d906d5866dcd7f6293e6c62
BLAKE2b-256 checksum
How to use checksums
eab052f45f1c643673b70527475ca02684926af5dbc27c7344dac0aace37ec3d
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.22.0-py3-none-any.whl

Download URL flet-0.22.0-py3-none-any.whl
Size 3.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1eff7749827ee6461bf2045dc3f672690afb84165f1922165f8593d62daa32de
BLAKE2b-256 checksum
How to use checksums
3f9988b2c3c57292d6ae40a731c97dbd6a954c464d19eb38bb407c902fecc91a
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.22.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.22.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