About 8,110,000 results
Open links in new tab
  1. fastapi - How to read body as any valid json? - Stack Overflow

    Oct 15, 2020 · 82 The accepted answer is valid as well, but FastAPI provides a built-in way to do that - check the Singular values in body section in docs. A parameter with the default Body …

  2. 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 ("startup") is deprecated, and I'm unable to get @repeat_every () to work with …

  3. How to initialize a global object or variable and reuse it in every ...

    How to initialize a global object or variable and reuse it in every FastAPI endpoint? Asked 2 years, 1 month ago Modified 7 days ago Viewed 26k times

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

    Jun 12, 2024 · PyTest fixture : How to resolve FastAPI 'app' shortcut deprecated warning? Asked 1 year ago Modified 6 months ago Viewed 3k times

  5. fastapi - Why is httpx so much worse than aiohttp when facing …

    May 22, 2024 · In the FastAPI web framework, why is httpx so much worse than aiohttp when facing high concurrent requests? They both reuse the same client instance. test code import …

  6. fastapi - Python uvicorn : The term 'uvicorn' is not recognized as …

    Nov 20, 2020 · @John thanks for the fast reply. It is still not working. I have changed the question again

  7. FastAPI: ModuleNotFoundError: No module named 'uvicorn'

    Feb 19, 2021 · FastAPI: ModuleNotFoundError: No module named 'uvicorn' Asked 4 years, 4 months ago Modified 7 months ago Viewed 91k times

  8. What are the best practices for structuring a FastAPI project?

    Nov 21, 2020 · The problem that I want to solve related the project setup: Good names of directories so that their purpose is clear. Keeping all project files (including virtualenv) in one …

  9. How to configure FastAPI logging so that it works both with …

    Aug 29, 2023 · I was struggling to figure out how to get uvicorn logs to just use the same config that I have set up for all my other logging stuff. After learning uvicorn sets propagate = False, I …

  10. python - How to create a FastAPI endpoint that can accept either …

    Dec 31, 2024 · I would like to create an endpoint in FastAPI that might receive either multipart/form-data or JSON body. Is there a way I can make such an endpoint accept either, …