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.9.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.9.0
File Size Uploaded Provenance Actions
flet-0.9.0.tar.gz 2.2 MB Without provenance Details for flet-0.9.0.tar.gz

Built distributions (wheels)

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

Total release size: 175.0 MB

Release files / flet-0.9.0.tar.gz

Download URL flet-0.9.0.tar.gz
Size 2.2 MB
Tags Source
SHA-256 checksum
How to use checksums
f06e20d79590bdfdc2c02267605b32d0551ee434f2aeb44053f2a73f88ab1654
BLAKE2b-256 checksum
How to use checksums
70f1c96f61c9817584ef31d84401520cb5d02e9b320f79d8aff85ba005ca6132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.0-py3-none-win_amd64.whl
Size 22.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1178373e779fe3f2000a320eeafcc92032ba11098287ec56e28151a5557dad68
BLAKE2b-256 checksum
How to use checksums
176bb6032270d1aceb469dd155061926c6eb70977be67272e8f0a91df3c5fd66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.0-py3-none-win32.whl
Size 22.5 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
7d8206f10763596b470e9982608503f7adb0a9ca5f4ed5ccf2762c52fdffaece
BLAKE2b-256 checksum
How to use checksums
ac496a15a7c73b338782e345b7ce4d676198e97cc204bbd2371ff1fecf691896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.0-py3-none-musllinux_1_2_x86_64.whl
Size 8.9 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
04e552c2c6e95e7b5374a5ed9d3d363b390afa6fe02666dfa79388ce12853a24
BLAKE2b-256 checksum
How to use checksums
e258122ae8aa9a1b9fdfee7e4b1b3f7609ec9e5ca98762f76f741b471afc4d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.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
ec98488088fd9bccdd5d89dd6d1d3538939c2d8a41615284f8700049c74c2a3a
BLAKE2b-256 checksum
How to use checksums
74e1f13e00297ce815f89e18ae3d891857da80201ec4cbdc4eaf529a48c20620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 8.5 MB
Tags Linux glibc 2.17+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
4591e05cdd6a1edc5ce2252d91cfb6eff77a3e5f613be405b2fca06829936706
BLAKE2b-256 checksum
How to use checksums
e9191bcb5fd631ec761432a0fe1281d28d3ae26478529cd5cf1c033ab91b9bd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.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
56598e840ef02e6c37f5075b802e83ad77900aa1b74e632cf489d9d76d9fe21f
BLAKE2b-256 checksum
How to use checksums
2ad769256f9553e265b06f9209cc81f802aa660e20ae2d8224cecc9e0752102e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.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
1c3409e0c0d103e7d8f746f666e7cb7aa922c869f1fb7ad656f7a0821fb9feac
BLAKE2b-256 checksum
How to use checksums
9d931c26b65a109fdb928def05996da665474e97908446b71cdb73478c7aceb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.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
cd6133c149586b2c16e3701e35d1b1da18c1188331eeec689648a6ad68a9750d
BLAKE2b-256 checksum
How to use checksums
ff3a7aceb4e2514eefbeb94eb701c6f555bb1469bec016ed2bfb3baa8ffaef56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

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

Download URL flet-0.9.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ce9843c5c3bc29b8bb57e8c7340d4f32dbf9ba4c1c8f8c875118297ed34be264
BLAKE2b-256 checksum
How to use checksums
d1420260a8bc620dd7bc5167952892faf7901b23c50d175dd7c21dabe144cac3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for flet 0.9.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.9.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