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.17.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.17.0
File Size Uploaded Provenance Actions
flet-0.17.0.tar.gz 2.2 MB Without provenance Details for flet-0.17.0.tar.gz

Built distributions (wheels)

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

Total release size: 177.7 MB

Release files / flet-0.17.0.tar.gz

Download URL flet-0.17.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
60d6b5243a06aada738f1fb713561ccf6139c99e4c573a283e8f4f80716597db
BLAKE2b-256 checksum
How to use checksums
b612edaa57d9f51fdc1936d9f0808e8d45cfc61b827ab68085e9f6099178c56a
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.17.0-py3-none-win_amd64.whl

Download URL flet-0.17.0-py3-none-win_amd64.whl
Size 23.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d9f7a0a428b724e075a9920cccbac7bf37c70974cc74242a96b68e5b73c601c4
BLAKE2b-256 checksum
How to use checksums
ef0eb5d4c89b605ed82ed78619d379f36e6822ee020a7db97deb3336f964a9af
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.17.0-py3-none-win32.whl

Download URL flet-0.17.0-py3-none-win32.whl
Size 23.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
64533ce4434a8a93dcecd82dff623884955f51a4e00ade1da3943f9edf615a4c
BLAKE2b-256 checksum
How to use checksums
298aa4a1643c98a33d3d6f1c6da48032e0350f7c099a8a02f102f6be4f99e974
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.17.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.17.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
d464f0d94f778bad5c4cd4697ce9d04f93ed7ae7fddb079b9ea8ee5c3237c862
BLAKE2b-256 checksum
How to use checksums
2805d667f51b5e141b60fbcd0c539b0aadd81e01695164ce0befa8769b471f03
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.17.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.17.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5e989d0e59370a99a3b44c138f50b85451d7c126012e9b651f8c0050f8abbcc6
BLAKE2b-256 checksum
How to use checksums
9d49a58f2f48b5473fa682e3a10019389ff80777cb1af1b3775189daacc4dcf7
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.17.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.17.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
5b24e1de275a4db8b2c5347ce284d1715fa9323364b28064b6be0e087f0e4833
BLAKE2b-256 checksum
How to use checksums
9c6914090cadf1f7389834d23046ee0dbb603250f638a9165f40286ad456d01e
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.17.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.17.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
e4340104f52a08affcb8a4807f48fac5e179bd8415fbf1c09fa50e95bed1d707
BLAKE2b-256 checksum
How to use checksums
3d3ffec8d7e09e7a43be9322ae4eb388e09ab4c586af21a2d7e4ad2f841ff04c
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.17.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.17.0-py3-none-macosx_12_0_arm64.whl
Size 34.3 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
f7c1241caa2b22847621b062e777ce085f86789e7e27b9b6080993505156bf9f
BLAKE2b-256 checksum
How to use checksums
47d8095232f9220e8a9bdf8fb6ce5e2340a5424c755c63f243549ba6f047520e
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.17.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.17.0-py3-none-macosx_10_14_x86_64.whl
Size 34.5 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
20435b7a41f7f2bfa400f87c7c46f0d7a4d66feeeffe65f410fad7a76d175f0a
BLAKE2b-256 checksum
How to use checksums
febd0501279f95b05982b86ac57815d8b236d1fcd0511b854fba829d452d783a
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.17.0-py3-none-any.whl

Download URL flet-0.17.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
33a20cefb97dc54d34d4a0379e95630c7a07a4cf1d627ea98b99eb9b59c04a2b
BLAKE2b-256 checksum
How to use checksums
efe89efdf4936edcd60641a237fa23fdc54cb66ea169d41ef9e01822a8844186
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.17.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.17.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