flet


Nameflet JSON
Version 0.24.1 PyPI version JSON
download
home_pageNone
SummaryFlet for Python - easily build interactive multi-platform apps in Python
upload_time2024-09-03 20:46:37
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/bf/90/afc2585378f9fa43bb8d11fddf83b3d6ad0f7045d71cc89033d5345b1ff0/flet-0.24.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.24.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": "9b124e72eff8c5e19249fdea6596ad77673fe88b69da92eca2f9fecd8998bf20",
                "md5": "e79f48cd92ec49c25abcee42e9f001d9",
                "sha256": "dfcfe8febedbc5eecb714edc11ee3e13c4a00c83000e55d4b664f695473f5141"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e79f48cd92ec49c25abcee42e9f001d9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2979389,
            "upload_time": "2024-09-03T20:46:07",
            "upload_time_iso_8601": "2024-09-03T20:46:07.956972Z",
            "url": "https://files.pythonhosted.org/packages/9b/12/4e72eff8c5e19249fdea6596ad77673fe88b69da92eca2f9fecd8998bf20/flet-0.24.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "131bc8e1a0ace21e3ef74a2423939ee42c5f53f7b123aeec1b3f038ba73b379e",
                "md5": "2b23848384ff687ef56e662e753ad61e",
                "sha256": "15ab27d73e0b20f5157e911c121ea9f0da682a73f1dba007adc1f2077e00ccb3"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-macosx_10_14_x86_64.whl",
            "has_sig": false,
            "md5_digest": "2b23848384ff687ef56e662e753ad61e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 48810224,
            "upload_time": "2024-09-03T20:46:10",
            "upload_time_iso_8601": "2024-09-03T20:46:10.701394Z",
            "url": "https://files.pythonhosted.org/packages/13/1b/c8e1a0ace21e3ef74a2423939ee42c5f53f7b123aeec1b3f038ba73b379e/flet-0.24.1-py3-none-macosx_10_14_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a895c621a2cf562264d6fde0ce4b98c84953a03bba64988df984c159e3a20d0e",
                "md5": "15b832f4339ba2d36364e5f2028e7e2c",
                "sha256": "a65b67b257bdb63815d20a3d5ae523975cafbf493b6baa3611d3edb854c5fe1b"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-macosx_12_0_arm64.whl",
            "has_sig": false,
            "md5_digest": "15b832f4339ba2d36364e5f2028e7e2c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 48810221,
            "upload_time": "2024-09-03T20:46:14",
            "upload_time_iso_8601": "2024-09-03T20:46:14.505512Z",
            "url": "https://files.pythonhosted.org/packages/a8/95/c621a2cf562264d6fde0ce4b98c84953a03bba64988df984c159e3a20d0e/flet-0.24.1-py3-none-macosx_12_0_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82c2c6e5da3f7598cd7ee303e805914ef81f88304e85ad324bae8e85e6300ba9",
                "md5": "95968f457c3da7a17f70dd226d895ec6",
                "sha256": "d5495f65b0354d5f169c7859cb2dbc331fdd995de38779e5f85748891a793c1f"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "has_sig": false,
            "md5_digest": "95968f457c3da7a17f70dd226d895ec6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 16582091,
            "upload_time": "2024-09-03T20:46:18",
            "upload_time_iso_8601": "2024-09-03T20:46:18.276859Z",
            "url": "https://files.pythonhosted.org/packages/82/c2/c6e5da3f7598cd7ee303e805914ef81f88304e85ad324bae8e85e6300ba9/flet-0.24.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "522b4391d946b5266989cd9fe8a835ae59532420393387925febd5852f059514",
                "md5": "6ba0f85ca68bf3545d96762019d0893e",
                "sha256": "a7759fab4075519a81c65d3693216f43d34d3838cf4fd832325e3d043df4a1a3"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "has_sig": false,
            "md5_digest": "6ba0f85ca68bf3545d96762019d0893e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2983491,
            "upload_time": "2024-09-03T20:46:20",
            "upload_time_iso_8601": "2024-09-03T20:46:20.743328Z",
            "url": "https://files.pythonhosted.org/packages/52/2b/4391d946b5266989cd9fe8a835ae59532420393387925febd5852f059514/flet-0.24.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0e1ecf321b8c01c2403de6943b6d0e692f7985c6b9e1b09149091a962675b6d9",
                "md5": "d17ad69b9a55e6bcb730354b91863852",
                "sha256": "0fa5fd6cb049d4acd63758890553b7b43b2bbf6bcf0d37d2a0ffe91f12ca0279"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d17ad69b9a55e6bcb730354b91863852",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 16993962,
            "upload_time": "2024-09-03T20:46:22",
            "upload_time_iso_8601": "2024-09-03T20:46:22.548720Z",
            "url": "https://files.pythonhosted.org/packages/0e/1e/cf321b8c01c2403de6943b6d0e692f7985c6b9e1b09149091a962675b6d9/flet-0.24.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee8731fba8ed6fb7843d62c7132612093293b0dfedecbca67558239ac2a2ba82",
                "md5": "d61d894777012e6476aea084cec51f7a",
                "sha256": "2ae142d9f37110944fc15a0283c9a3b1ea31d309f4e0942a387160f0688eae0f"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-musllinux_1_2_x86_64.whl",
            "has_sig": false,
            "md5_digest": "d61d894777012e6476aea084cec51f7a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 2983485,
            "upload_time": "2024-09-03T20:46:24",
            "upload_time_iso_8601": "2024-09-03T20:46:24.561315Z",
            "url": "https://files.pythonhosted.org/packages/ee/87/31fba8ed6fb7843d62c7132612093293b0dfedecbca67558239ac2a2ba82/flet-0.24.1-py3-none-musllinux_1_2_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dd76692739e467648ec34b7736f9f8901686e08457229a9f8909eb2eeba1c73b",
                "md5": "6241ac1dd70d49c3bfabf2b9e86ab486",
                "sha256": "054183a35c24cf69febabc17206097d38a39da90c0166899612f9f8ecd4a12aa"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-win32.whl",
            "has_sig": false,
            "md5_digest": "6241ac1dd70d49c3bfabf2b9e86ab486",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 42728340,
            "upload_time": "2024-09-03T20:46:26",
            "upload_time_iso_8601": "2024-09-03T20:46:26.821058Z",
            "url": "https://files.pythonhosted.org/packages/dd/76/692739e467648ec34b7736f9f8901686e08457229a9f8909eb2eeba1c73b/flet-0.24.1-py3-none-win32.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "490706186685896c91fe3c07ca443b61425022ffd28ffefe3c7377d0c7d269da",
                "md5": "9f27a6cd523c0afb3139fa79dae8b44c",
                "sha256": "8821b0655ef2d7e8763a9ed87cf8a68e4e4ce302edac84b425bbc465620fd1c3"
            },
            "downloads": -1,
            "filename": "flet-0.24.1-py3-none-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "9f27a6cd523c0afb3139fa79dae8b44c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 42728346,
            "upload_time": "2024-09-03T20:46:30",
            "upload_time_iso_8601": "2024-09-03T20:46:30.182161Z",
            "url": "https://files.pythonhosted.org/packages/49/07/06186685896c91fe3c07ca443b61425022ffd28ffefe3c7377d0c7d269da/flet-0.24.1-py3-none-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf90afc2585378f9fa43bb8d11fddf83b3d6ad0f7045d71cc89033d5345b1ff0",
                "md5": "ff9cbb76a100018c4cef9378bcb2bc9d",
                "sha256": "754989e8314c3ca9f02b4fff2e1aac4e1395fc712175547e2f84a7f1f0f560a1"
            },
            "downloads": -1,
            "filename": "flet-0.24.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ff9cbb76a100018c4cef9378bcb2bc9d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 2942343,
            "upload_time": "2024-09-03T20:46:37",
            "upload_time_iso_8601": "2024-09-03T20:46:37.867499Z",
            "url": "https://files.pythonhosted.org/packages/bf/90/afc2585378f9fa43bb8d11fddf83b3d6ad0f7045d71cc89033d5345b1ff0/flet-0.24.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 20:46:37",
    "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.44781s