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.15.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.15.0
File Size Uploaded Provenance Actions
flet-0.15.0.tar.gz 2.2 MB Without provenance Details for flet-0.15.0.tar.gz

Built distributions (wheels)

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

Total release size: 177.3 MB

Release files / flet-0.15.0.tar.gz

Download URL flet-0.15.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
367a33657f22e50b275515b973222f2b162e1dff44a11ea8c16490c3a6387704
BLAKE2b-256 checksum
How to use checksums
57090e88951b4b9b2dbfeeab659170ea0e9cf56ff8fe910ed6b823af86f914be
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.15.0-py3-none-win_amd64.whl

Download URL flet-0.15.0-py3-none-win_amd64.whl
Size 23.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5195bfbcd6f93b01cc5657bbf402c8400487ae0a4d1cdbb226b0acd1fa2b0cb8
BLAKE2b-256 checksum
How to use checksums
9c56d174dc4501c4d87b16a3b050b339ca613e18e3888562074582fc8bc2ac58
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.15.0-py3-none-win32.whl

Download URL flet-0.15.0-py3-none-win32.whl
Size 23.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
77b63e78a4ae45a286184364019b2ec1ced5c5c2d2a42db379e5801bb8f145c4
BLAKE2b-256 checksum
How to use checksums
f5bc81bd508fc7c8f8728cb3a733e93f1c00aabc211ff79553a24655ed7f4927
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.15.0-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.15.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
5ce82c986f707ce8bbf32f29e721ecaf89f429ecf6bbd68ce57f3470383fff37
BLAKE2b-256 checksum
How to use checksums
44e4e71270cbc32606dfbd85a82b39a4d1d226181d46abf3f2b1ace15e05d33e
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.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.15.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 20.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
50c165f0ac6e430801d0e9fdddb64706ecaf0d35551e6b663f3f0f081340f024
BLAKE2b-256 checksum
How to use checksums
6475f25d0f2dc0052b87198dbcbb09e60aaf02ede7ecfec6c7d2df3e55e0126e
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.15.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.15.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
ae9262d9bdc868b773ae6370d89f25faf9ae2f6c180042d0781430af001bc86d
BLAKE2b-256 checksum
How to use checksums
2731a76ba7032428d241edccd34b8da79e48fd9a79b3200e90223d4e88b0763f
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.15.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.15.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
ea7cf1a118ce7f4101b8e34add6e35b358ded5c06ec2bb2f79bff9eaa515f59c
BLAKE2b-256 checksum
How to use checksums
1393f7ae3bfa5bed4e528d92619285f2419dbfaa8b4b7145144488c58a274d46
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.15.0-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.15.0-py3-none-macosx_12_0_arm64.whl
Size 34.2 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
be8c6e7f47bdf693825c83631c4ec5def471502d75c6308394cfa2059bccd717
BLAKE2b-256 checksum
How to use checksums
39be1629eab8bbc6a3d89e1f47a6e61f6602815def806a6b2b734fe966a12b59
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.15.0-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.15.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
9896a59309df47d7ecb38f0afc9e735e84b5311a2ec76ac21895c8b6fd38af0f
BLAKE2b-256 checksum
How to use checksums
86598d87cbea4793c1d261913026959b2350efd9a12084cf77dc7e0a95c60736
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.15.0-py3-none-any.whl

Download URL flet-0.15.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6baac16cbbb315202c787078e32397da98eba2ede0271c993ad389fb09282c81
BLAKE2b-256 checksum
How to use checksums
d58dac9ac6ae5927b2f4f4cd8d914f70a470a0e9e120bd51a8bfdb5a157858bf
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.15.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.15.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