About 8,070,000 results
Open links in new tab
  1. FastAPI no module named "my module" - FastAPI cannot find my …

    Jun 29, 2024 · FastAPI cannot find my Python Package. It seems relatively obvious that this is an issue with Python paths and imports, however I do not know how to fix it. What surprised me is …

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

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

    I am having a class to send notifications. When being initialized, it involves making a connection to a notification server, which is time-consuming. I use a background task in FastAPI to send

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

  5. How to customize error response in FastAPI? - Stack Overflow

    Feb 2, 2022 · I tried to put the line app=FastAPI() in a try-catch block, however, it doesn't work. Is there any way I can handle this issue with own response instead of the above mentioned auto …

  6. fastapi - How to return status code in response correctly ... - Stack ...

    Jul 6, 2021 · So I am learning FastAPI and I am trying to figure out how to return the status code correctly. I made an endpoint for uploading a file and I want to make a special response in …

  7. swagger - FastAPI Fetch error Failed to load .../openapi.json: 404 ...

    Jun 20, 2024 · It seems the issue arises because FastAPI needs to know the root path for all routes when deployed behind a reverse proxy or API Gateway that adds a prefix to the URL. …

  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. python - How can I install fastapi properly? - Stack Overflow

    Dec 26, 2021 · The OP is trying to install fastapi[all] which seems to require compiling from source. No, I don't agree with you, I just provided the viable solution and I use it all the time. …

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