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. Newest 'fastapi' Questions - Stack Overflow

    Jan 30, 2026 · Stack Overflow | The World’s Largest Online Community for Developers

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

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

  5. Start Uvicorn with fastapi having main.py and app.py

    Oct 12, 2023 · I was making an authentication backend with Fastapi following the user's guide and don't know how to start a server now. Files and folders of the project structure are the following: …

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

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

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

  8. FastAPI application: page stuck loading - Stack Overflow

    Jul 16, 2025 · I'm trying to create a basic FastAPI application. Initially, my project directory looked like this: .venv/ main.py where .venv/ is my virtual environment with FastAPI installed, while main.py has ...

  9. 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 place, so I can easily...

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

    from fastapi import FastAPI, Request from contextlib import asynccontextmanager @asynccontextmanager async def lifespan(app: FastAPI): ''' Run at startup Initialize the Client and …