About 50 results
Open links in new tab
  1. How to pass an argument to a 'dependencies' function in FastAPI?

    Mar 20, 2025 · The FastAPI Advanced Dependencies guide has a couple examples, specifically oriented around classes. But in your example, so long as verify_token("red") returns a callable with the right …

  2. fastapi - How to read body as any valid json? - Stack Overflow

    Oct 15, 2020 · 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 gets all the …

  3. python - Does FastAPI still need Gunicorn? - Stack Overflow

    Jul 8, 2025 · Shortly after, FastAPI’s creator deprecated the tiangolo/uvicorn-gunicorn-fastapi Docker image, stating: Now that Uvicorn supports managing workers with --workers, including restarting …

  4. 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 others I define, to …

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

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

  6. Python FASTAPI shedule task - Stack Overflow

    Jul 22, 2022 · 10 I want to write a task that will only run once a day at 3:30 p.m. with Python FASTAPI. How can I do it? I tried this but it works all the time.

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

    Dec 26, 2021 · How can I install fastapi properly? Asked 4 years, 3 months ago Modified 6 months ago Viewed 26k times

  8. dependency injection - How do I correctly implement a FastAPI with ...

    Jan 14, 2025 · How do I correctly implement a FastAPI with async db and dependencies? Ask Question Asked 1 year, 2 months ago Modified 1 year ago

  9. python - Ratelimit in Fastapi - Stack Overflow

    Dec 29, 2020 · How to ratelimit API endpoint request in Fastapi application ? I need to ratelimit API call 5 request per second per user and exceeding that limit blocks that particular user for 60 seconds. In …

  10. python - How to access FastAPI backend from a different machine/IP …

    Both the FastAPI backend and the Next.js frontend are running on localost. On the same computer, the frontend makes API calls using fetch without any issues. However, on a different computer on the...