About 3,360,000 results
Open links in new tab
  1. Python FastAPI base path control - Stack Overflow

    Dec 3, 2021 · When I use FastAPI , how can I sepcify a base path for the web-service? To put it another way - are there arguments to the FastAPI object that can set the end-point and any …

  2. python - How can I install fastapi properly? - Stack Overflow

    Dec 26, 2021 · Installing fastapi[all] FROM VS Code From a Notebook Code Cell in VS Code. You might have only been missing the exclamation mark and/or the quotes ...

  3. How do I return a FileResponse (or StreamingResponse) in flet …

    fastapi.exceptions.FastAPIError: Invalid args for response field! Hint: check that <class 'flet_core.page.Page'> is a valid Pydantic field type. If you are using a return type annotation …

  4. python - PyTest fixture : How to resolve FastAPI 'app' shortcut ...

    Jun 12, 2024 · After trying several solutions, I found that the issue was due to incompatible versions of the FastAPI and Starlette packages. They both need to be compatible with each …

  5. Python FASTAPI shedule task - Stack Overflow

    Jul 22, 2022 · Rocketry is a statement-based scheduler and it integrates well with FastAPI. Let's say you have a scheduler.py. This is where you put your tasks. Content of this file: from …

  6. fastapi @app.on_event decorator is deprecated, how can I create a ...

    Feb 22, 2024 · I have the following decorator that works perfectly, but fastapi says @app.on_event(&quot;startup&quot;) is deprecated, and I'm unable to get @repeat_every() to …

  7. FastAPI - adding route prefix to TestClient - Stack Overflow

    Sep 13, 2021 · I have a FastAPI app with a route prefix as /api/v1. When I run the test it throws 404. I see this is because the TestClient is not able to find the route at /ping, and works …

  8. How to add a custom decorator to a FastAPI route?

    Oct 23, 2020 · The accepted answer won't work if your decorator needs to access FastAPI dependencies (e.g. request info, auth schemes, database sessions, ...). If you need your …

  9. FastAPI asynchronous background tasks blocks other requests?

    May 19, 2021 · I want to run a simple background task in FastAPI, which involves some computation before dumping it into the database. However, the computation would block it …

  10. How to call an api from another api in fastapi? [duplicate]

    Aug 19, 2020 · I didn't exactly get the way to store response without returning using fastapi/starlette directly. But I found a workaround for completing this task. For the people …