FastAPI हे एक आधुनिक, उच्च-कार्यक्षमता असलेले Python web framework आहे APIs तयार करण्यासाठी, Python type hints वर आधारित. हे type hints वापरून validation, serialization, आणि automatic documentation चालवते — ज्यामुळे तुम्हाला speed, safety, आणि great developer experience एकाच वेळी मिळते.
काही ओळीतून संपूर्ण API
fastapi FastAPI
pydantic BaseModel
app = FastAPI()
():
name:
price:
():
{: item.name, : item.price * }
