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.18.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.18.0
File Size Uploaded Provenance Actions
flet-0.18.0.tar.gz 2.2 MB Without provenance Details for flet-0.18.0.tar.gz

Built distributions (wheels)

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

Total release size: 178.4 MB

Release files / flet-0.18.0.tar.gz

Download URL flet-0.18.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
8b1f4ee3006aeff830915fb6dc1f9d9f14d8bff54beb0f119a7bdb616716aa67
BLAKE2b-256 checksum
How to use checksums
e3c62e4a50fe8b629c51fc577d72a3f671889b3e5fc79b430d587f91f3df923a
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.18.0-py3-none-win_amd64.whl

Download URL flet-0.18.0-py3-none-win_amd64.whl
Size 23.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
0f38a5fdbd47d47eb8a6a4c64404fbc0c189c604364d00b51f66d4b44945a170
BLAKE2b-256 checksum
How to use checksums
6ab2e9fdaf7c5024774e50c862066ba24345c69550bf28b74a3ee6e1c294aa77
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.18.0-py3-none-win32.whl

Download URL flet-0.18.0-py3-none-win32.whl
Size 23.2 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
757d23d721e14c86b3e71fab99348ce0532177a4af2e744d49b66f81c6ce5032
BLAKE2b-256 checksum
How to use checksums
e49cef87fbaf87817df2c23810841d6a116d3cb651082cb69f8faaf8b750e3d7
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.18.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.18.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
480a382ca19718ae26b4b201f7eda8168514d9eba72878aa54dfc06251f74134
BLAKE2b-256 checksum
How to use checksums
1fc560fb2c6ec5ebf6666f06730b3db2c4d0146abdd514366419862caaffb38b
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.18.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.18.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
955b65676d8eea990d4cf658b62f5a1373c029acefd22de57835a145c0527c42
BLAKE2b-256 checksum
How to use checksums
27cef9619d1c54248fdfc32a4201fdd8736d7632eefbd91d1d5bc6b5f2c90cce
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.18.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.18.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
36d0d42d1733fbc16fdaea7ddf3d83f70eae81c0ea4fe419bbd0ba5629443668
BLAKE2b-256 checksum
How to use checksums
d0f194b01c398ef26749160563f76a38422eb2d90a2b3b3145eedbe879213441
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.18.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.18.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
3909efd469405f59c4b8066c55d11a09a9614b087a69edc97b024521be87cb53
BLAKE2b-256 checksum
How to use checksums
02c9ef644590f7a5f2ac6e5d7fa0f4a9709655296cf3be4c37e5fa3154ff39fb
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.18.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.18.0-py3-none-macosx_12_0_arm64.whl
Size 34.4 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
8614fa315361a67c0cdec00a6e792e3574dc579cfbc25fe831da3bab5cded105
BLAKE2b-256 checksum
How to use checksums
76fb8365a92279cd394d2c7f4fdadb5de0dac496804200581cf52416372a73fd
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.18.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.18.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
f788408b35a28871d0a9114d6b8ad8b3869122bbfd54c6c558e6eb37f2ee399b
BLAKE2b-256 checksum
How to use checksums
14b8dc39075fb931c0de329e725039f7e38e1649f2b0aa5bccc7b2b880861613
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.18.0-py3-none-any.whl

Download URL flet-0.18.0-py3-none-any.whl
Size 2.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e58133d2d72f4176a3bb59fa8896d68c228fa0fc66fc94786dc6f5fa93b7da8a
BLAKE2b-256 checksum
How to use checksums
f273f4749a1d5cd4052f6fe3f34480a8a26963fe3d6b9595e6ef10f104edeca8
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.18.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.18.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