FastAPI परिचय
Matt Eckerle
Software and Data Engineering Leader
FastAPI, Python में हाई-परफॉर्मेंस APIs जल्दी बनाने का तरीका है



pip install fastapi
main.py में अपना ऐप बनाएँfrom fastapi import FastAPI
app = FastAPI()
@app.get("/")
def read_root():
return {"message": "Hello World"}
fastapi dev main.py

Python संपादक में सर्वर कोड main.py के रूप में लिखें
टर्मिनल से कमांड चलाएँ:
fastapi dev main.py
Application startup complete. दिखे, यह जाँचेंControl + C दबाकर लाइव सर्वर रोकेंFastAPI परिचय