flet


Nameflet JSON
Version 0.22.1 PyPI version JSON
download
home_pageNone
SummaryFlet for Python - easily build interactive multi-platform apps in Python
upload_time2024-05-09 17:02:52
maintainerNone
docs_urlNone
authorAppveyor Systems Inc.
requires_python<4.0,>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Flet - quickly build interactive apps for web, desktop and mobile in Python

[Flet](https://flet.dev) 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](https://flet.dev/docs/controls) based on [Flutter](https://flutter.dev/) 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:

```python
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](https://flet.dev/img/docs/getting-started/flet-counter-macos.png)

## 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](https://flet.dev/img/docs/getting-started/flet-counter-safari.png)

## Learn more

Visit [Flet website](https://flet.dev).

Continue with [Python guide](https://flet.dev/docs/getting-started/python) to learn how to make a real app.

Browse for more [Flet examples](https://github.com/flet-dev/examples/tree/main/python).

Join to a conversation on [Flet Discord server](https://discord.gg/dzWXP8SHG8).


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "flet",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Appveyor Systems Inc.",
    "author_email": "hello@flet.dev",
    "download_url": "https://files.pythonhosted.org/packages/a3/8e/9c99e8742a2f0b089fe5d8076ed6e2a1e0118dcde219ad62509db13fdc61/flet-0.22.1.tar.gz",
    "platform": null,
    "description": "# Flet - quickly build interactive apps for web, desktop and mobile in Python\n\n[Flet](https://flet.dev) 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](https://flet.dev/docs/controls) based on [Flutter](https://flutter.dev/) widgets to ensure your programs look cool and professional.\n\n## Requirements\n\n* Python 3.7 or above on Windows, Linux or macOS\n\n## Installation\n\n```\npip install flet\n```\n\n## Create the app\n\nCreate `main.py` file with the following content:\n\n```python\nimport flet as ft\n\ndef main(page: ft.Page):\n    page.title = \"Flet counter example\"\n    page.vertical_alignment = ft.MainAxisAlignment.CENTER\n\n    txt_number = ft.TextField(value=\"0\", text_align=ft.TextAlign.RIGHT, width=100)\n\n    def minus_click(e):\n        txt_number.value = str(int(txt_number.value) - 1)\n        page.update()\n\n    def plus_click(e):\n        txt_number.value = str(int(txt_number.value) + 1)\n        page.update()\n\n    page.add(\n        ft.Row(\n            [\n                ft.IconButton(ft.icons.REMOVE, on_click=minus_click),\n                txt_number,\n                ft.IconButton(ft.icons.ADD, on_click=plus_click),\n            ],\n            alignment=ft.MainAxisAlignment.CENTER,\n        )\n    )\n\nft.app(main)\n```\n\n## Run as a desktop app\n\nThe following command will start the app in a native OS window:\n\n```\nflet run main.py\n```\n\n![Sample app in a native window](https://flet.dev/img/docs/getting-started/flet-counter-macos.png)\n\n## Run as a web app\n\nThe following command will start the app as a web app:\n\n```\nflet run --web main.py\n```\n\n![Sample app in a browser](https://flet.dev/img/docs/getting-started/flet-counter-safari.png)\n\n## Learn more\n\nVisit [Flet website](https://flet.dev).\n\nContinue with [Python guide](https://flet.dev/docs/getting-started/python) to learn how to make a real app.\n\nBrowse for more [Flet examples](https://github.com/flet-dev/examples/tree/main/python).\n\nJoin to a conversation on [Flet Discord server](https://discord.gg/dzWXP8SHG8).\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Flet for Python - easily build interactive multi-platform apps in Python",
    "version": "0.22.1",
    "project_urls": {
        "documentation": "https://flet.dev/docs",
        "homepage": "https://flet.dev",
        "repository": "https://github.com/flet-dev/flet"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c7ca7ac73e58f219adcc699e6a48be18ce77b3f0b6a9b076b806bb5319e1c30d",
                "md5": "35cfd9e2573567856897a4d1f0beb82b",
                "sha256": "50659c669b9bc9499a06ad88a4837610f1ccbab582d946302d091ce49baa47f0"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "35cfd9e2573567856897a4d1f0beb82b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2970132,
            "upload_time": "2024-05-09T17:02:16",
            "upload_time_iso_8601": "2024-05-09T17:02:16.573317Z",
            "url": "https://files.pythonhosted.org/packages/c7/ca/7ac73e58f219adcc699e6a48be18ce77b3f0b6a9b076b806bb5319e1c30d/flet-0.22.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1ea4a32364e61e684b487c3beeb2c7a94b9c376e283f748d444b97e121624d96",
                "md5": "6c77d6c6cea1244df3e8b11d1dee4547",
                "sha256": "d4e6a2e7d656048b787ca613f2dba2a4658c4bc6695e7fc7f305e4de26db7cf5"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "6c77d6c6cea1244df3e8b11d1dee4547",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 47965758,
            "upload_time": "2024-05-09T17:02:19",
            "upload_time_iso_8601": "2024-05-09T17:02:19.749747Z",
            "url": "https://files.pythonhosted.org/packages/1e/a4/a32364e61e684b487c3beeb2c7a94b9c376e283f748d444b97e121624d96/flet-0.22.1-py3-none-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0f7e747d2f3776a4ef9f2314ce7fd1f1d862e60f8d56119ec646468355b70f5f",
                "md5": "25f20dd5cf6685efd325c69faf5e8bc9",
                "sha256": "71c0123ad820263188704ba8ae5cfc72a9bc92336f2e41e5eb36830bd4caff59"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-macosx_12_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "25f20dd5cf6685efd325c69faf5e8bc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 47965755,
            "upload_time": "2024-05-09T17:02:24",
            "upload_time_iso_8601": "2024-05-09T17:02:24.147961Z",
            "url": "https://files.pythonhosted.org/packages/0f/7e/747d2f3776a4ef9f2314ce7fd1f1d862e60f8d56119ec646468355b70f5f/flet-0.22.1-py3-none-macosx_12_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "92c11805918fc6f945b84ba55e1c2874330d5b0860f4caeb4f61e8d16aeeef4d",
                "md5": "88de9671eabadf817b4ed782e31a34c9",
                "sha256": "b14039203087358ecbae1ddd176f874561df5d033460b54500138cc24cc41fc5"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "88de9671eabadf817b4ed782e31a34c9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 16233008,
            "upload_time": "2024-05-09T17:02:27",
            "upload_time_iso_8601": "2024-05-09T17:02:27.587466Z",
            "url": "https://files.pythonhosted.org/packages/92/c1/1805918fc6f945b84ba55e1c2874330d5b0860f4caeb4f61e8d16aeeef4d/flet-0.22.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "eb099786dc92b5f2084942f37c13c2cc252de8ecf919724fb2b7ea885809d94d",
                "md5": "446e384a0badeb40f029a1df0bb152c5",
                "sha256": "e83f6d270706753eb673bac0770a7a29aa7648e03b42f5d546bf7992794d4a27"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "446e384a0badeb40f029a1df0bb152c5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2974131,
            "upload_time": "2024-05-09T17:02:30",
            "upload_time_iso_8601": "2024-05-09T17:02:30.500337Z",
            "url": "https://files.pythonhosted.org/packages/eb/09/9786dc92b5f2084942f37c13c2cc252de8ecf919724fb2b7ea885809d94d/flet-0.22.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e74a4436e33814a5f9d49c731d8a445d593b3a1c35fe1d6598883c8c576846ef",
                "md5": "f51750de17d4eaef78c39acff07b394d",
                "sha256": "7669745c397b0c051280b264d8a306e5deeeb2c39aaf4362add71b538f8d93b6"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "f51750de17d4eaef78c39acff07b394d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 16657749,
            "upload_time": "2024-05-09T17:02:34",
            "upload_time_iso_8601": "2024-05-09T17:02:34.256459Z",
            "url": "https://files.pythonhosted.org/packages/e7/4a/4436e33814a5f9d49c731d8a445d593b3a1c35fe1d6598883c8c576846ef/flet-0.22.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "32cbf079d232fe89d126c4f02c97561178622f66453bef675b730125597f1bcf",
                "md5": "c285fc73f321294a67802115021bc0b5",
                "sha256": "d1d3a32e0a0cccbfea79bc927e1f8fc5491f73f78729d3de9b67695c49decb2b"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "c285fc73f321294a67802115021bc0b5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2974124,
            "upload_time": "2024-05-09T17:02:37",
            "upload_time_iso_8601": "2024-05-09T17:02:37.492384Z",
            "url": "https://files.pythonhosted.org/packages/32/cb/f079d232fe89d126c4f02c97561178622f66453bef675b730125597f1bcf/flet-0.22.1-py3-none-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "45389ac02560488047123a5f0cb25a743c14ce4342762945898c2fb9738e989e",
                "md5": "9ebe1ed70d721d97b554fdc0790ca38b",
                "sha256": "e4cbb28c276dfaff09aa7e01c99dc7cfe3b8ca7527eb33802175ccc989557ec8"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "9ebe1ed70d721d97b554fdc0790ca38b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 42231632,
            "upload_time": "2024-05-09T17:02:40",
            "upload_time_iso_8601": "2024-05-09T17:02:40.573200Z",
            "url": "https://files.pythonhosted.org/packages/45/38/9ac02560488047123a5f0cb25a743c14ce4342762945898c2fb9738e989e/flet-0.22.1-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c08221823c486bc20302b06115ac245d5094fd1a663e1ee0580553a8d76d1e1",
                "md5": "57ac2f9580f62b9cb519ef4ec0fa917b",
                "sha256": "a4dce8443a0f1c3f276c9b5873a06e9f34cbae0360ac833e34d5be428cda68f4"
            },
            "downloads": -1,
            "filename": "flet-0.22.1-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "57ac2f9580f62b9cb519ef4ec0fa917b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 42231638,
            "upload_time": "2024-05-09T17:02:44",
            "upload_time_iso_8601": "2024-05-09T17:02:44.656836Z",
            "url": "https://files.pythonhosted.org/packages/3c/08/221823c486bc20302b06115ac245d5094fd1a663e1ee0580553a8d76d1e1/flet-0.22.1-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a38e9c99e8742a2f0b089fe5d8076ed6e2a1e0118dcde219ad62509db13fdc61",
                "md5": "49375e2598519f279525a6fea6d077c9",
                "sha256": "10643d18b9550ccdab9f1c5c5fd6933720c546ecae10a217ad88732b09264237"
            },
            "downloads": -1,
            "filename": "flet-0.22.1.tar.gz",
            "has_sig": false,
            "md5_digest": "49375e2598519f279525a6fea6d077c9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 2937908,
            "upload_time": "2024-05-09T17:02:52",
            "upload_time_iso_8601": "2024-05-09T17:02:52.511237Z",
            "url": "https://files.pythonhosted.org/packages/a3/8e/9c99e8742a2f0b089fe5d8076ed6e2a1e0118dcde219ad62509db13fdc61/flet-0.22.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-09 17:02:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "flet-dev",
    "github_project": "flet",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "appveyor": true,
    "lcname": "flet"
}
        
Elapsed time: 0.29319s