fastapi-utils icon indicating copy to clipboard operation
fastapi-utils copied to clipboard

Reusable utilities for FastAPI

Results 97 fastapi-utils issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** pydantic v2 [got released](https://github.com/pydantic/pydantic/releases). However, fastapi-utils has a `pydantic

enhancement

I am using FastAPISessionMaker in my fastapi app. I am getting **QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00** error of sqlalchemy. I checked in...

enhancement

**Describe the bug** I create a `user.py` to check fastapi-utils, there are 4 method. - @router.get("/user") - @router.post("/user") - @router.get("/user/{user_id}") - @router.get("/user/query_by_name") when I try execute the query_by_name, seems it...

bug

Hello! [Following the SQLA2.0 migration guide](https://docs.sqlalchemy.org/en/20/changelog/migration_20.html) I walked through where SQLAlchemy was used in the codebase and it appears no changes were needed. To further test this I install the...

from fastapi import ( APIRouter, Request, Depends, HTTPException, status ) from sqlalchemy.orm import Session from schemas.user import User as UserScheme,UserCreate as UserCreateScheme from models.user import User from core.db.connection import get_db...

bug

While using the @cbv i encountered the problem that i couldn't use the endpoint without path params on a similar path. It somehow messes with the validator, i think? ```Python...

bug

Although windows compatibility does not seem to be a priority for the project, these changes make fastapi_utils.add_timing_middleware compatible with win32. I believe these commits abide by the contributing guidelines, if...

Test Code: ```python from fastapi import Request, FastAPI, Depends, APIRouter from fastapi_utils.cbv import cbv def get_locale(request: Request): return request.headers.get("locale", "en_US") router = APIRouter() @router.get("/test") def get_test(locale=Depends(get_locale)): return {"locale": locale} @cbv(router)...

bug

**Description** When you add a [timing middlware](https://fastapi-utils.davidmontague.xyz/user-guide/timing-middleware/) I see this on the LOGs: ``` INFO:app.engine:TIMING: Wall: 320.7ms | CPU: 12.7ms | app.app.users.router.create_user ``` It is not clear what `Wall` means......

question

# Trying to create generic CRUD class for all endpoints I am fairly new to FastAPI(migrating from Django) and I am trying to create a generic CRUD operations class that...

question