Skip to content

FastAPI Camelcase

CircleCI codecov Downloads GitHub Pipenv locked Python version GitHub

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