{"id":15067689,"url":"https://github.com/daxexs/flet-easy","last_synced_at":"2025-04-04T16:08:37.937Z","repository":{"id":257824046,"uuid":"741674985","full_name":"Daxexs/flet-easy","owner":"Daxexs","description":"🔥User-friendly add-on package for Flet, offering a cleaner code structure with numerous customizable features like JWT, router, decorators, middleware and more.","archived":false,"fork":false,"pushed_at":"2025-03-07T04:12:02.000Z","size":19226,"stargazers_count":103,"open_issues_count":5,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-28T15:03:59.847Z","etag":null,"topics":["flet","flet-easy","flet-easy-fastapi","flet-gui","flet-jwt","flet-middleware","flet-route","flet-routing","flet-web","flutter"],"latest_commit_sha":null,"homepage":"https://daxexs.github.io/flet-easy/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Daxexs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-10T22:00:10.000Z","updated_at":"2025-03-22T03:32:49.000Z","dependencies_parsed_at":"2025-03-21T14:18:40.245Z","dependency_job_id":null,"html_url":"https://github.com/Daxexs/flet-easy","commit_stats":null,"previous_names":["daxexs/flet-easy"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daxexs%2Fflet-easy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daxexs%2Fflet-easy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daxexs%2Fflet-easy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Daxexs%2Fflet-easy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Daxexs","download_url":"https://codeload.github.com/Daxexs/flet-easy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246049630,"owners_count":20715511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flet","flet-easy","flet-easy-fastapi","flet-gui","flet-jwt","flet-middleware","flet-route","flet-routing","flet-web","flutter"],"created_at":"2024-09-25T01:25:51.759Z","updated_at":"2025-03-28T15:04:07.500Z","avatar_url":"https://github.com/Daxexs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔥Flet-Easy\n\n\u003cdiv align=\"center\"\u003e\n\n[![github](https://img.shields.io/badge/my_profile-000?style=for-the-badge\u0026logo=github\u0026logoColor=white)](https://github.com/Daxexs)[![pypi](https://img.shields.io/badge/Pypi-0A66C2?style=for-the-badge\u0026logo=pypi\u0026logoColor=white)](https://pypi.org/project/flet-easy)\n\n[![image](https://img.shields.io/pypi/pyversions/flet-easy.svg)](https://pypi.python.org/pypi/flet-easy) [![image](https://img.shields.io/pypi/v/flet-easy.svg)](https://pypi.python.org/pypi/flet-easy) [![image](https://img.shields.io/pypi/l/flet-easy.svg)](https://pypi.python.org/pypi/flet-easy) [![socket](https://socket.dev/api/badge/pypi/package/flet-easy/0.2.2#1725204521828)](https://socket.dev/pypi/package/flet-easy) [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) [![linting - Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) ![Linters](https://github.com/Daxexs/flet-easy/actions/workflows/linters.yml/badge.svg) ![Tests](https://github.com/Daxexs/flet-easy/actions/workflows/tests.yml/badge.svg) [![Downloads](https://static.pepy.tech/badge/flet-easy)](https://pepy.tech/project/flet-easy)\n\n\u003cimg src=\"https://github.com/Daxexs/flet-easy/blob/main/media/logo.png?raw=true\" alt=\"logo\" width=\"250\"\u003e\n\n`Flet-Easy` is a package built as an add-on for [`Flet`](https://github.com/flet-dev/flet), designed for beginners what it does is to make `Flet` easier when building your apps, with a tidier and simpler code.\n\u003c/div\u003e\n\n## Features\n\n* Easy to use (**hence the name**).\n* Facilitates `flet` event handling.\n* Simple page routing (There are three ways) for whichever one suits you best. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/dynamic-routes/))\n* App construction with numerous pages and custom flet configurations for desktop, mobile and web sites.\n* Provides a better construction of your code, which can be scalable and easy to read (it adapts to your preferences, there are no limitations).\n* Dynamic routing, customization in the routes for greater accuracy in sending data. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/dynamic-routes/#custom-validation))\n* Routing protection ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/customized-app/route-protection/))\n* Custom Page 404 ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/customized-app/page-404/))\n* Controlled data sharing between pages. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/data-sharing-between-pages/))\n* Asynchronous support.\n* Middleware Support (in the app in general and in each of the pages). ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/middleware/))\n* JWT support for authentication sessions in the data parameter. (useful to control the time of sessions) ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/basic-jwt/))\n* Working with other applications. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/data-sharing-between-pages/))\n* CLI to create app structure `FletEasy` (`fs init`) ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/cli-to-create-app/))\n* Easy integration of `on_keyboard_event` in each of the pages. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/events/keyboard-event/))\n* Use the percentage of the page width and height of the page with `on_resize`. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/events/on-resize/))\n* `ResponsiveControlsy` control to make the app responsive, useful for desktop applications. ([**`Docs`**](https://daxexs.github.io/flet-easy/0.2.0/responsiveControlsy/))\n* Soporta Application Packaging para su distribución. ([view](https://flet.dev/docs/publish))\n\n## 📌Flet events it handles\n\n* `on_route_change` :  Dynamic routing\n* `on_view_pop`\n* `on_keyboard_event`\n* `on_resize`\n* `on_error`\n  \n## 💻 Ways to install\n\n## Ways to install\n\n### Install Flet-Easy Complete\n\n\u003e [!NOTE]\n\u003e If you use the [`fs`](https://daxexs.github.io/flet-easy/0.2.0/cli-to-create-app/) cli, it is important to have [`git`](https://git-scm.com/downloads) installed.\n\nInstalls all the dependencies to use, you can use all the functionalities provided by FletEasy\n\n```bash\npip install flet-easy[all]\n```\n\n---\n\n### Install clean Flet-Easy\n\n\u003e [!TIP]\n\u003e [Recommended for `Flet` Packaging Application](https://flet.dev/docs/publish).\n\nRequires installation of [Flet \u003e= 0.25](https://github.com/flet-dev/flet).\n\n```bash\npip install flet[all]\n```\n\n#### If you do not use: [CLI-to-create-app](https://daxexs.github.io/flet-easy/0.2.0/cli-to-create-app)\n\n```bash\npip install flet-easy\n```\n\n---\n\n#### Install FletEasy if you need to use [Basic-JWT](https://daxexs.github.io/flet-easy/0.2.0/basic-jwt)\n\n```bash\npip install flet-easy[JWT]\n```\n\n---\n\n## 💻Update\n\n```bash\n  pip install flet-easy[all] --upgrade\n```\n\n## 🔥Flet-Easy app example\n\nHere is an example of an application with 2 pages, \"Home\" and \"Counter\":\n\n```python\nimport flet as ft\nimport flet_easy as fs\n\napp = fs.FletEasy(route_init=\"/flet-easy\")\n\n# We add a page\n@app.page(route=\"/flet-easy\", title=\"Flet-Easy\")\ndef index_page(data: fs.Datasy):\n    return ft.View(\n        controls=[\n            ft.Text(\"Home page\"),\n            ft.FilledButton(\"Go to Counter\", on_click=data.go(\"/counter\")),\n        ],\n        vertical_alignment=\"center\",\n        horizontal_alignment=\"center\",\n    )\n\n# We add a second page\n@app.page(route=\"/counter\", title=\"Counter\")\ndef counter_page(data: fs.Datasy):\n    page = data.page\n\n    txt_number = ft.TextField(value=\"0\", text_align=\"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    return ft.View(\n        controls=[\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=\"center\",\n            ),\n            ft.FilledButton(\"Go to Home\", on_click=data.go(\"/flet-easy\")),\n        ],\n        vertical_alignment=\"center\",\n        horizontal_alignment=\"center\",\n    )\n\n# We run the application\napp.run()\n```\n\n## 🎬 **Demo**\n\n![app example](https://github.com/Daxexs/flet-easy/blob/main/media/app-example.gif?raw=true \"app example\")\n\n## 🚀 How to use `Flet-Easy`?\n\n\u003e [!IMPORTANT]\n\u003e 📑Documentation: \u003chttps://daxexs.github.io/flet-easy/0.2.0/\u003e\n\n## 👀 Code examples\n\n\u003e [!TIP]\n\u003e \u003chttps://github.com/Daxexs/flet-easy/tree/main/tests\u003e\n\n## 🔎 Contribute to this project\n\nRead the [CONTRIBUTING.md](https://github.com/Daxexs/flet-easy/blob/main/CONTRIBUTING.md) file\n\n## 🧾 License\n\n[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxexs%2Fflet-easy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaxexs%2Fflet-easy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaxexs%2Fflet-easy/lists"}