[{"data":1,"prerenderedAt":132},["ShallowReactive",2],{"term-f\u002Ffastapi":3,"related-f\u002Ffastapi":115},{"id":4,"title":5,"acronym":6,"body":7,"category":96,"description":97,"difficulty":98,"extension":99,"letter":100,"meta":101,"navigation":59,"path":102,"related":103,"seo":109,"sitemap":110,"stem":113,"subcategory":6,"__hash__":114},"terms\u002Fterms\u002Ff\u002Ffastapi.md","FastAPI",null,{"type":8,"value":9,"toc":90},"minimark",[10,15,19,23,26,30,79,83,86],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"FastAPI is a Python framework that's both blazing fast and auto-generates documentation for your API. You define types with Python type hints, and FastAPI validates requests, builds your docs, and handles serialization automatically. It's what AI engineers reach for when they need a Python API.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"FastAPI is a modern, high-performance Python web framework for building APIs, based on standard Python type hints. It uses Starlette for HTTP and Pydantic for data validation, auto-generates OpenAPI (Swagger) docs, and supports async\u002Fawait natively. Among the fastest Python frameworks.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","from fastapi import FastAPI\napp = FastAPI()\n\n@app.get('\u002Fusers\u002F{user_id}')\nasync def get_user(user_id: int):\n    return {'id': user_id, 'name': 'Alice'}\n","python","",[38,39,40,48,54,61,67,73],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"from fastapi import FastAPI\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"app = FastAPI()\n",[41,55,57],{"class":43,"line":56},3,[41,58,60],{"emptyLinePlaceholder":59},true,"\n",[41,62,64],{"class":43,"line":63},4,[41,65,66],{},"@app.get('\u002Fusers\u002F{user_id}')\n",[41,68,70],{"class":43,"line":69},5,[41,71,72],{},"async def get_user(user_id: int):\n",[41,74,76],{"class":43,"line":75},6,[41,77,78],{},"    return {'id': user_id, 'name': 'Alice'}\n",[11,80,82],{"id":81},"when-youll-hear-this","When You'll Hear This",[16,84,85],{},"\"FastAPI is the go-to for Python AI backends.\" \u002F \"FastAPI auto-generates Swagger docs from your type hints.\"",[87,88,89],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":91},[92,93,94,95],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":81,"depth":50,"text":82},"backend","FastAPI is a Python framework that's both blazing fast and auto-generates documentation for your API.","intermediate","md","f",{},"\u002Fterms\u002Ff\u002Ffastapi",[104,105,106,107,108],"Python","Flask","Django","Validation","Serialization",{"title":5,"description":97},{"changefreq":111,"priority":112},"weekly",0.7,"terms\u002Ff\u002Ffastapi","rmzDzBtYs-2Lz4-mP4ihjn830seVj9DxkY2GCe61Gq0",[116,119,123,126,129],{"title":106,"path":117,"acronym":6,"category":96,"difficulty":98,"description":118},"\u002Fterms\u002Fd\u002Fdjango","Django is the 'batteries included' Python web framework. It comes with an ORM, admin panel, auth system, form handling, and more — all built in.",{"title":105,"path":120,"acronym":6,"category":96,"difficulty":121,"description":122},"\u002Fterms\u002Ff\u002Fflask","beginner","Flask is the lightweight Python web framework — the 'just enough' option. It doesn't come with an ORM, admin panel, or auth system by default.",{"title":104,"path":124,"acronym":6,"category":96,"difficulty":121,"description":125},"\u002Fterms\u002Fp\u002Fpython","Python is a programming language famous for being super readable — almost like writing in English.",{"title":108,"path":127,"acronym":6,"category":96,"difficulty":98,"description":128},"\u002Fterms\u002Fs\u002Fserialization","Serialization is turning a complex object in your code (like a User with methods and nested data) into a flat format that can be sent over the internet, li...",{"title":107,"path":130,"acronym":6,"category":96,"difficulty":121,"description":131},"\u002Fterms\u002Fv\u002Fvalidation","Validation is your backend's bouncer. Before any data gets into the database, the bouncer checks it: 'Is this email actually an email?",1776518279035]