Skip to main content

Flet logo

Build multi-platform apps in Python powered by Flutter

License Package version Supported Python versions Supported Python versions Build status


Flet is a framework that allows building web, desktop and mobile applications in Python without prior experience in frontend development.

⚡️ From idea to app in minutes

An internal tool or a dashboard for your team, weekend project, data entry form, kiosk app, or high-fidelity prototype - Flet is an ideal framework to quickly hack great-looking interactive apps to serve a group of users.

📐 Simple architecture

No more complex architecture with JavaScript frontend, REST API backend, database, cache, etc. With Flet you just write a monolith stateful app in Python only and get multi-user, real-time Single-Page Application (SPA).

🔋 Batteries included

To start developing with Flet, you just need your favorite IDE or text editor. No SDKs, no thousands of dependencies, no complex tooling - Flet has a built-in web server with assets hosting and desktop clients.

Powered by Flutter

Flet UI is built with Flutter, so your app looks professional and could be delivered to any platform. Flet simplifies the Flutter model by combining smaller "widgets" to ready-to-use "controls" with an imperative programming model.

📱 Deliver to any device or platform

Package your Flet app as a standalone desktop app (for Windows, macOS, and Linux), mobile app (for iOS and Android), dynamic/static Web app or as a Progressive Web App (PWA).

Flet app example

Below is a simple "Counter" app, with a text field and two buttons to increment and decrement the counter value:

import flet as ft

def main(page: ft.Page):
    page.title = "Flet counter example"
    page.vertical_alignment = ft.MainAxisAlignment.CENTER

    input = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

    def minus_click(e):
        input.value = str(int(input.value) - 1)
        page.update()

    def plus_click(e):
        input.value = str(int(input.value) + 1)
        page.update()

    page.add(
        ft.Row(
            alignment=ft.alignment.center,
            controls=[
                ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
                input,
                ft.IconButton(ft.Icons.ADD, on_click=plus_click),
            ],
        )
    )

ft.run(main)

To run the app, install flet:

pip install 'flet[all]'

then launch the app:

flet run counter.py

This will open the app in a native OS window - what a nice alternative to Electron! 🙂

To run the same app as a web app, update the last line in your script to:

ft.run(main, view=flet.AppView.WEB_BROWSER)

Alternatively, you can use the --web flag when running the flet run command:

flet run --web counter.py

Learn more

Community

Contributing

Want to help improve Flet? Check out the contribution guide.

Metadata

Release files for flet 0.80.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.80.0
File Size Uploaded Provenance Actions
flet-0.80.0.tar.gz 349.6 kB Without provenance Details for flet-0.80.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flet 0.80.0
File Interpreter ABI Platform Actions
flet-0.80.0-py3-none-any.whl Python 3 none any Details for flet-0.80.0-py3-none-any.whl

Total release size: 790.3 kB

Release files / flet-0.80.0.tar.gz

Download URL flet-0.80.0.tar.gz
Size 349.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f2d4607d2e5d1e55286799c2a4c8188386b21641ac56481384d0fc58ec171cbd
BLAKE2b-256 checksum
How to use checksums
cdab038c52c3dc5c3e330a582ae7bbd5e57697a8f583ed9fa2dc5b6bf144f0d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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

Download URL flet-0.80.0-py3-none-any.whl
Size 440.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06cf3bef89c6448c5ae285a5bfba4af23ce67897293ea4552a6f6f546f485916
BLAKE2b-256 checksum
How to use checksums
25be59da1b8760a2e786d5efed9be9e53c1499508fdedba1f5f0e5ac5f413e4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for flet 0.80.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.80.0 This release

2 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