From db5ab5951154002807695323c8f5b93187ffc986 Mon Sep 17 00:00:00 2001 From: Athroniaeth <76869761+Athroniaeth@users.noreply.github.com> Date: Mon, 2 Jun 2025 10:53:32 +0200 Subject: [PATCH] Depreciated dics on the flet-fastapi library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, while looking for how to set up a FastAPI for file upload in web app mode, I came across this page which is no longer up to date (first result on the search engine by typing “flet fastapi”). I finally found this article that explains how to use Flet with FastAPI: https://flet.dev/blog/flet-fastapi-and-async-api-improvements/#:~:text=package%20has%20been-,deprecated,-and%20its%20contents --- blog/2023-08-30-flet-for-fastapi.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blog/2023-08-30-flet-for-fastapi.md b/blog/2023-08-30-flet-for-fastapi.md index e58e89d8..24e0213a 100644 --- a/blog/2023-08-30-flet-for-fastapi.md +++ b/blog/2023-08-30-flet-for-fastapi.md @@ -19,7 +19,7 @@ On the other hand, seasoned FastAPI developers can use Flet to easily add intera ```python import flet as ft -import flet_fastapi +import flet.fastapi as flet_fastapi async def main(page: ft.Page): await page.add_async( @@ -34,7 +34,7 @@ It's a simple app that just outputs "Hello, Flet!" on a web page. To run the app install Flet for FastAPI and Uvicorn: ``` -pip install flet-fastapi +pip install flet pip install uvicorn ``` @@ -61,4 +61,4 @@ Flet app must be [async](/docs/getting-started/async-apps) in order to work with Check [the guide](/docs/publish/web/dynamic-website) for complete information about Flet with FastAPI. -Let us know what you think by joining [Flet Discord server](https://discord.gg/dzWXP8SHG8) or creating a new thread on [Flet GitHub discussions](https://github.com/flet-dev/flet/discussions). \ No newline at end of file +Let us know what you think by joining [Flet Discord server](https://discord.gg/dzWXP8SHG8) or creating a new thread on [Flet GitHub discussions](https://github.com/flet-dev/flet/discussions).