All Projects → nf1s → fastapi-camelcase

nf1s / fastapi-camelcase

Licence: MIT license
Package for providing a class for camelizing request and response bodies for fastapi while keeping your python code snake cased.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to fastapi-camelcase

arel
Lightweight browser hot reload for Python ASGI web apps
Stars: ✭ 69 (+53.33%)
Mutual labels:  fastapi
fastapi-framework
A FastAPI Framework for things like Database, Redis, Logging, JWT Authentication, Rate Limits and Sessions
Stars: ✭ 26 (-42.22%)
Mutual labels:  fastapi
django-fastapi-docs
Django、FastAPI、MySQL、Mongodb、Redis、Devops、Nginx、Vue、Docker、Supervisor、Celery
Stars: ✭ 41 (-8.89%)
Mutual labels:  fastapi
freddie
DRF-like declarative viewsets for FastAPI
Stars: ✭ 49 (+8.89%)
Mutual labels:  fastapi
ZeroToHeroDaprCon
Demos from my Zero to Hero with Dapr session @ DaprCon
Stars: ✭ 36 (-20%)
Mutual labels:  fastapi
codeX
CodeX is a platform which converts code into easy to understand language.
Stars: ✭ 46 (+2.22%)
Mutual labels:  fastapi
fastapi-cloudauth
Simple integration between FastAPI and cloud authentication services (AWS Cognito, Auth0, Firebase Authentication).
Stars: ✭ 221 (+391.11%)
Mutual labels:  fastapi
fastapi-starter
A FastAPI based low code starter: Async SQLAlchemy, Postgres, React-Admin, pytest and cypress
Stars: ✭ 97 (+115.56%)
Mutual labels:  fastapi
fastapi-auth0
FastAPI authentication and authorization using auth0.com
Stars: ✭ 104 (+131.11%)
Mutual labels:  fastapi
fastapi-mvc
Developer productivity tool for making high-quality FastAPI production-ready APIs.
Stars: ✭ 131 (+191.11%)
Mutual labels:  fastapi
fastapi-pydiator
Python clean architecture and usecase implementation with fastapi and pydiator-core
Stars: ✭ 58 (+28.89%)
Mutual labels:  fastapi
deepstack-trainer
deepstack trainer is a Flask powerd, easy to use web app, hepls us to train and test Deepstack AI
Stars: ✭ 16 (-64.44%)
Mutual labels:  fastapi
lupyne
Pythonic search engine based on PyLucene.
Stars: ✭ 61 (+35.56%)
Mutual labels:  fastapi
cloudrun-fastapi
FastAPI on Google Cloud Run
Stars: ✭ 112 (+148.89%)
Mutual labels:  fastapi
yomomma-apiv2
REST-API using FastAPI for Python that gives a 'yo momma' joke
Stars: ✭ 30 (-33.33%)
Mutual labels:  fastapi
Apollo
A basic Application with multiple functionalities built with FastAPI aim to help Users Buy New Items Provided using PaypalAPI 🚀
Stars: ✭ 22 (-51.11%)
Mutual labels:  fastapi
fast-api-sqlalchemy-template
Dockerized web application on FastAPI, sqlalchemy1.4, PostgreSQL
Stars: ✭ 25 (-44.44%)
Mutual labels:  fastapi
pydantic-i18n
pydantic-i18n is an extension to support an i18n for the pydantic error messages.
Stars: ✭ 32 (-28.89%)
Mutual labels:  fastapi
fastapi-zeit-now
A simple example of deploying FastAPI as a Zeit Serverless Function
Stars: ✭ 24 (-46.67%)
Mutual labels:  fastapi
Stack-Lifecycle-Deployment
OpenSource self-service infrastructure solution that defines and manages the complete lifecycle of resources used and provisioned into a cloud! It is a terraform UI with rest api for terraform automation
Stars: ✭ 88 (+95.56%)
Mutual labels:  fastapi

CircleCI codecov Downloads GitHub Pipenv locked Python version GitHub

Fastapi Camelcase

Package for providing a class for camelizing request and response bodies for fastapi while keeping your python code snake cased.

Full documentation can be found here

How to install

pip install fastapi-camelcase

Dependencies

pydantic
pyhumps

How to use

# using CamelModel instead of Pydantic BaseModel
from fastapi_camelcase import CamelModel


class User(CamelModel):
    first_name: str
    last_name: str
    age: int

How to use (full example)

import uvicorn
from fastapi import FastAPI
from fastapi_camelcase import CamelModel


class User(CamelModel):
    first_name: str
    last_name: str
    age: int


app = FastAPI()


@app.get("/user/get", response_model=User)
async def get_user():
    return User(first_name="John", last_name="Doe", age=30)


@app.post("/user/create", response_model=User)
async def create_user(user: User):
    return user


if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8000)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].