FastAPI Camelcase
Package for providing a class for camelizing request and response bodies for fastapi while keeping your python code snake cased.
Full code can be found on github
Dependencies
pydantic
pyhumps
Usage
# using CamelModel instead of Pydantic BaseModel
from fastapi_camelcase import CamelModel
class User(CamelModel):
first_name: str
last_name: str
age: int