I want to use FastAPI. I installed it using pip, and when I am adding it to my project like that: from fastapi import FastApi and running it, Iam getting the
I want to use slowapi on a fastapi python app, for implementing RateLimiter. However, The definitions of the endpoints use a data model for parameters (inheriti
I'm uploading zip files as UploadFile via FastAPI and want to save them to the filesystem using async aiofiles like so: async def upload(in_file: UploadFile = F
Example Here's my code: from typing import List from fastapi import FastAPI, File, UploadFile import asyncio import concurrent.futures app = FastAPI() @app.po
Using a ORM, I want to do a POST request letting some fields with a null value, which will be translated in the database for the default value specified there.
In FastAPI to pass a list of dictionary, generally we will define a pydantic schema and will mention as: param: List[schema_model] The issue I am facing is tha
When I use GET request to send data to the server it works fine, but when use POST request it throws "422 Unprocessable Entity" error. This is my Ajax request c
I try to make a code for image style transfer based on fastapi. I made the code by referring to many articles in Github and stack overflow, I found it effective
I'm looking for a possibility to use uvicorn.run() with a FastAPI app but without uvicorn.run() is blocking the thread. I already tried to use processes, subpro
Maybe someone here have a good idea on how to solve my issue. I have a REST API project driven by FastAPI. Every incomming request comes with a hash in the head
I tried to run FastAPI using uvicorn webserver but it throws an error. I run this command, uvicorn api:app --reload --host 0.0.0.0 but there is an error in the
I tried to run FastAPI using uvicorn webserver but it throws an error. I run this command, uvicorn api:app --reload --host 0.0.0.0 but there is an error in the
According to this tutorial you can create BackgroundTasks from the route function as follow: @app.post("/send-notification/{email}") async def send_notification
I have developed an auth on FastAPI Python using the doc here https://fastapi.tiangolo.com/tutorial/security/oauth2-jwt/ (I use exactly the code shown, nothing
I am trying to use FastAPI to allow my (dockerized) server to respond to API calls returning an image image, and a dictionary additional_dict (for a machine lea
So I have figured out how to code a fastAPI and I am ready to deploy my script to heroku that I have worked with fastAPI (https://fastapi.tiangolo.com/) however
currently I'm using websockets to pass through data that I receive from a Redis queue (pub/sub). But for some reason the websocket doesn't send messages when us
I know usually it is something about project structure that raises this error. But my project structure is the simplest one: . ├── blog.db
Is there a way for a FastAPI application to not display a model in its schema documentation? I have some models which are slight variations of others, and with
I'm using a Flask route to call the Meraky python library and trying to redirect the stdout and stderr of each API call to a websocket or eventually a log file,