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.12.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.12.0
File Size Uploaded Provenance Actions
flet-0.12.0.tar.gz 2.2 MB Without provenance Details for flet-0.12.0.tar.gz

Built distributions (wheels)

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

Total release size: 175.2 MB

Release files / flet-0.12.0.tar.gz

Download URL flet-0.12.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
e4fe2dffa16bfe11d79a042403a5261c903b50141cda9ca048d3bd701be3c04c
BLAKE2b-256 checksum
How to use checksums
1773a7c811e0fbba19e73589f421ffe3e13953987e4efbf144b8d1e434343d0f
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.12.0-py3-none-win_amd64.whl

Download URL flet-0.12.0-py3-none-win_amd64.whl
Size 22.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
4ac6307151e1be6d06edf353a5d412cebe8322f84b7efbf0c270863d8a148fca
BLAKE2b-256 checksum
How to use checksums
4ac8718cd4c7b056dc6ded8e8ba091d08a5e3a1d7187c9e0024f4c92d8bb5531
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.12.0-py3-none-win32.whl

Download URL flet-0.12.0-py3-none-win32.whl
Size 22.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
1686bc5c6ec3a4bc827e8e22f1cb33248802894cba0ca06739ab7cc1d4ef5f1c
BLAKE2b-256 checksum
How to use checksums
a210104e7818aa3c4fdf2f0ca0945262f9019bd8a2a1470b6aa44164b1622897
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.12.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.12.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
4c01047c07720db35a3f5f07febe1a4d588ec6b52e56d5a561c43ba0048dea9e
BLAKE2b-256 checksum
How to use checksums
20ccf1e06efd75440ee9d89647a51f93838096c0b5c57b39f97942f2d8422ab3
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.12.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.12.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
6f834ac481022a1c18a72a78fbd11236e8378fee0b69c79e62e4a9bd279285cc
BLAKE2b-256 checksum
How to use checksums
0d555a98254ff009150c205036773c5c2547e99cde21ae6c3c52393a0be76bdb
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.12.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.12.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
100c2481ddc41d3376bc88711fa7278266ab7e171c7a64bad07fb1a727af18b8
BLAKE2b-256 checksum
How to use checksums
689d28108cf25b065967f284b0a7939961a04d1ad0c8dce87699892afac785d3
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.12.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.12.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 19.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
44b63b8ffa1511f9481e6e4ec836ad944cc18fc7a63fce63e60d1d1c2b52acf8
BLAKE2b-256 checksum
How to use checksums
6c7dc8d17eb4759751195ce5e5c430759708aff877f829ca7871ba067e177f42
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.12.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.12.0-py3-none-macosx_12_0_arm64.whl
Size 33.8 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
b357a07724e3de2bd1ab57ac385d0d387c44e4cc01bccf6bf00358d92550578d
BLAKE2b-256 checksum
How to use checksums
80f6ac857da951388351b6160ece9a48d8208f7a929306af14afb0c969e3cd06
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.12.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.12.0-py3-none-macosx_10_14_x86_64.whl
Size 34.1 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
62f11f4d812fdfad028d63e6003fc50b0fd52cbb57e6c5b749cf2137d9f33aed
BLAKE2b-256 checksum
How to use checksums
4c39e66ec733646c18edec344724cbafcca5d8373bb193dff6bc53b58e8d2eeb
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.12.0-py3-none-any.whl

Download URL flet-0.12.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
9da14d46a74850a46c5230d466a92017f629dd75668dab5e5e9a29a6b40e9486
BLAKE2b-256 checksum
How to use checksums
e0c9eb85e92cb355e7fc1f46af6f5fd3f67fc9537239534928cce5dbfb4f6366
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.12.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.12.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