Skip to main content

Flet for Python - easily build interactive multi-platform apps in Python

Project description

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flet-0.10.2.tar.gz (2.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

flet-0.10.2-py3-none-win_amd64.whl (22.7 MB view details)

Uploaded Python 3Windows x86-64

flet-0.10.2-py3-none-win32.whl (22.6 MB view details)

Uploaded Python 3Windows x86

flet-0.10.2-py3-none-musllinux_1_2_x86_64.whl (8.9 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

flet-0.10.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (20.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

flet-0.10.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (8.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

flet-0.10.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

flet-0.10.2-py3-none-macosx_12_0_arm64.whl (33.5 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

flet-0.10.2-py3-none-macosx_10_14_x86_64.whl (33.7 MB view details)

Uploaded Python 3macOS 10.14+ x86-64

flet-0.10.2-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file flet-0.10.2.tar.gz.

File metadata

  • Download URL: flet-0.10.2.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flet-0.10.2.tar.gz
Algorithm Hash digest
SHA256 3e23151548e0b116d84730e7d50eeaa517a3e4d2ca2e67d4f8253ebe71644bcb
MD5 afedd0b7b99fd288ed0a6f69fa105eb0
BLAKE2b-256 403df810b8c2542fff07570359d834c247af479792abbb5664890d2a3f394949

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: flet-0.10.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 22.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flet-0.10.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fc784ee0d03efffec4c8f32d8fa295dc8d3294def74340d44195b129828e2d9b
MD5 4a45340a93d3310f097b9c74940eeb78
BLAKE2b-256 6f903dad25c0652d3d61d568887de296a136e6fb5ff07d843255266ad0913279

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-win32.whl.

File metadata

  • Download URL: flet-0.10.2-py3-none-win32.whl
  • Upload date:
  • Size: 22.6 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flet-0.10.2-py3-none-win32.whl
Algorithm Hash digest
SHA256 9302e35b2c3b65e3b5e02bdc9b09c585e03f9d5ca29e27acac7d22d6ced98b23
MD5 69be87882aa9b158bede104affa8f96f
BLAKE2b-256 dd439065d4e6d61a641e82e9ea3bf3b107f43493b3384420fd3e9c8445745d52

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for flet-0.10.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 db952263b7252a21539319cdecb00fa8ecd99e8849b4c9b9cb67994d9539d4a5
MD5 f85c85bde07833c21fe29604b03dde7c
BLAKE2b-256 8d03a58eed7dd48ec4b59cff65e67632da9f36fd961ff17101a54680e47b2694

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for flet-0.10.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8936edd089023452cb39eaff7b6832b503a38d05c8570cad18789d2f057a428a
MD5 30a9ad31c95c0f099763f12757f13ec1
BLAKE2b-256 680d151d9bc24e42af357f35b1070978cdb1b4071021d23de5682c1901a02059

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for flet-0.10.2-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 b31d2f9234f567309301316b8ce829dd1575198dee0d0e7bbc54226a9918fa49
MD5 bbdbf23e7657699add5e60b2660a2569
BLAKE2b-256 ef5b8ba3a567653b9baccbb2063c3e0218b2faee46dbc82342b7ae5c315a2d35

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for flet-0.10.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 259f6494ec8f5b3473e6d4e5ac12e22fe0e61b730f78c5d5223af8a294d8085a
MD5 8d52293a8579c22233ae921b0253d058
BLAKE2b-256 9ba2d9c5f5dec35f9f3120e6e54d9ccc99ec68502d671c10f5ba8441b595ea07

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-macosx_12_0_arm64.whl.

File metadata

  • Download URL: flet-0.10.2-py3-none-macosx_12_0_arm64.whl
  • Upload date:
  • Size: 33.5 MB
  • Tags: Python 3, macOS 12.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flet-0.10.2-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 94d57a828ac1a7acb6ec8258769b64b64d9988e9f867184ed6085078f82c0033
MD5 ff720aa78f8a0d27c4b988573f408962
BLAKE2b-256 d5f90dc2210383043173ae03da5a23a3917bd1eb51a9e58ac5a48e43db6aec97

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for flet-0.10.2-py3-none-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 0b68c499b63d4c1a7ca7569cd4391c285c89a82791a0d09a6a03cebe00afaf77
MD5 fde073c5110488d409eb98d2c5f1c00b
BLAKE2b-256 1c35d5b0e278ae716723a65d7a9648ca68ee6b2e70bd15a58bb849124dd337c8

See more details on using hashes here.

File details

Details for the file flet-0.10.2-py3-none-any.whl.

File metadata

  • Download URL: flet-0.10.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for flet-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da1e916f9bff56b2e616de72a00d3e53b1d4687baa193680e772c5cf76d98171
MD5 9edd76227a9480014b06228593ac6b0b
BLAKE2b-256 14d2cba2127d93b882c409858339f112fc9e9036d3583a624ecadd9154c057cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page