About 8,260,000 results
Open links in new tab
  1. python - How to create a FastAPI endpoint that can accept either …

    Dec 31, 2024 · 8 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, …

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

    Dec 26, 2021 · 0 When you install with pip install "fastapi[standard]" it comes with some default optional standard dependencies.

  3. 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 …

  4. 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 …

  5. Video Streaming App using FastAPI and OpenCV - Stack Overflow

    Aug 31, 2020 · Below are given two options (with complete code samples) on how to stream (live) video using FastAPI and OpenCV. Option 1 demonstrates an approach based on your …

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

    Nov 20, 2020 · Continue to help good content that is interesting, well-researched, and useful, rise to the top! To gain full voting privileges,

  7. Locking resource in FastAPI - using a multiprocessing Worker

    Aug 7, 2024 · I would like to make an FastAPI service with one /get endpoint which will return a ML-model inference result. It is pretty easy to implement that, but the catch is I periodically …

  8. 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 …

  9. Performance results differ between run_in_threadpool () and run_in ...

    Mar 28, 2024 · If the background task function is defined with async def, FastAPI will run it directly in the event loop, whereas if it is defined with normal def, FastAPI will use run_in_threadpool() …

  10. FastAPI/uvicorn not working when specifying host [duplicate]

    The FastAPI/uvicorn server is not working when specifying the host.