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.23.1

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.23.1
File Size Uploaded Provenance Actions
flet-0.23.1.tar.gz 3.0 MB Without provenance Details for flet-0.23.1.tar.gz

Built distributions (wheels)

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

Total release size: 228.2 MB

Release files / flet-0.23.1.tar.gz

Download URL flet-0.23.1.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
66f77baa35ee03b169d527c592e7463165e7bb318c2317389d42677282239728
BLAKE2b-256 checksum
How to use checksums
1ad004e0dd64d26f2a906061ed2fed45f30fec05edda88126f581f19942682ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-win_amd64.whl

Download URL flet-0.23.1-py3-none-win_amd64.whl
Size 42.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
61ec9bcf106ab359d0177165df4c7cb0f2f38aac3906dc4278582bacc37bfaa0
BLAKE2b-256 checksum
How to use checksums
045e7f63b514b49377ca57471b1d0382a187502f93d2784eba8b5f8a1f7922ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-win32.whl

Download URL flet-0.23.1-py3-none-win32.whl
Size 42.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
2e8532776cd4d9a1f23ca5f424a1015f56fcd1816affb9967293d543b22248a6
BLAKE2b-256 checksum
How to use checksums
3511c2e410095b2ccebe55fcbcca183b3c9c5effcf4c87c91f2a63921de12ba8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-musllinux_1_2_x86_64.whl

Download URL flet-0.23.1-py3-none-musllinux_1_2_x86_64.whl
Size 3.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3b642d0a252ee6124377e188536d6fc1dd95ef1195ee9e8d2685841955c37d7a
BLAKE2b-256 checksum
How to use checksums
439148320384f5f8140073c5e32c56bc29c94382b0c18d6382d46c317d58c5c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL flet-0.23.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 17.0 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5c0d013ddd326e3c1b2eb504fca7d63423ce6df03a2d22d152c1e981bfc00283
BLAKE2b-256 checksum
How to use checksums
81b8b24b5a1ffb624adda9c1287eeaf62fcd2d67f562cdac3404ab1275009341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL flet-0.23.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 3.1 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
1e1f5fc88bfda35279e66c2445de5274046ce67fa7577f988c077f18bf026896
BLAKE2b-256 checksum
How to use checksums
c20bfd224528b1fc6a5f4bf9e1a6d7b5ef02b3a8813214d2b371b43877d3bc36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL flet-0.23.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 16.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9bbf7a300c865f885054f4b94f30fc6fa328bfbbcced53c5195f02d5daf15bc0
BLAKE2b-256 checksum
How to use checksums
c1afec583dfaacadb1bea81db61ec9d4ffce0976ce90cf1c3ed3fdf7556dedb9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-macosx_12_0_arm64.whl

Download URL flet-0.23.1-py3-none-macosx_12_0_arm64.whl
Size 48.6 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
5f21299485997ae9eed9011dd3c85b209cd08fa1db71be8625a0814857eab2d8
BLAKE2b-256 checksum
How to use checksums
312a39d5601a6753830b6800eba2bd673b3198cc3e5832f20c47985710c41ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-macosx_10_14_x86_64.whl

Download URL flet-0.23.1-py3-none-macosx_10_14_x86_64.whl
Size 48.6 MB
Tags Python 3 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
66a956812d2ca8bb5cadd849562c92131fce4a2f22ab0003d23a5238a7caff0e
BLAKE2b-256 checksum
How to use checksums
edaef11cbf7e55d993ec7d5a114cafe8c43f98cb3fb1431d847a24fe420890cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Release files / flet-0.23.1-py3-none-any.whl

Download URL flet-0.23.1-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5110b5cd75f9c33f274aea092de9f7e51a306869f6c9cf93dd9ca94988d82dce
BLAKE2b-256 checksum
How to use checksums
7eef3d2a724cbf651da65e10bfe6a645f3f361f714b174de9f64f2b65db3ccb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.10.13

Security for flet 0.23.1

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.23.1 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