FastAPI is a Python class that provides all the functionality for your API
FastAPI is a class that inherits directly from Starlette.
You can use all the Starlette functionality with FastAPI too.
(https://fastapi.tiangolo.com/tutorial/first-steps)
Pydantic
All the data validation is performed under the hood by Pydantic, so you get all the benefits from it. And you know you are in good hands.
Pydantic is the most widely used data validation library for Python.
https://docs.pydantic.dev/latest/
Enum
An enumeration (Enum) in programming is a symbolic name for a set of unique values. Enumerations are used to represent a fixed set of constant values, typically related to a specific domain or context. In Python, the enum module provides support for enumerations.
'Python > FastAPI' 카테고리의 다른 글
FastAPI + SQLAlchemy: DB Connection이 지속적으로 생기는 문제 (0) | 2024.05.14 |
---|---|
FastAPI + SQLAlchemy: connection pool log 찍기 # Pool 커스텀 (0) | 2024.05.03 |
FastAPI, Javascript: EventSource Example (0) | 2024.02.21 |
FastAPI: WebSocket Example (0) | 2024.02.20 |
request.scope vs request.headers in FastAPI # ChatGPT (0) | 2024.01.18 |