{"id":38610,"date":"2024-11-01T18:18:39","date_gmt":"2024-11-01T18:18:39","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38610"},"modified":"2024-11-26T06:43:51","modified_gmt":"2024-11-26T06:43:51","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-fastapi-%ec%95%a0%ed%94%8c%eb%a6%ac%ec%bc%80%ec%9d%b4%ec%85%98-%ea%b5%ac%ec%a1%b0%ed%99%94-%eb%9d%bc%ec%9a%b0%ed%8a%b8-%ea%b5%ac%ed%98%84","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38610\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604"},"content":{"rendered":"<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API \uac1c\ubc1c\uc744 \uc704\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python \uc5b8\uc5b4\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 \ub192\uc740 \uc131\ub2a5\uc744 \uc720\uc9c0\ud558\uba74\uc11c\ub3c4 \uac1c\ubc1c\uc790\uac00 \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac15\ub825\ud55c \ud0c0\uc785 \uc2dc\uc2a4\ud15c\uacfc \uc790\ub3d9\ud654\ub41c \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uace0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654 \ubc29\ubc95, \uadf8\ub9ac\uace0 \ub77c\uc6b0\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uace0 \uc608\uc81c \ucf54\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>1. FastAPI\ub780?<\/h2>\n<p>FastAPI\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ubc31\uc5d4\ub4dc API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc8fc\ub294 Python \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \ud2b9\uc9d5\uc774 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ube60\ub978 \uc131\ub2a5:<\/strong> Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uba70, \ube44\ub3d9\uae30\uc801\uc774\uace0 \ube60\ub978 \uc2e4\ud589 \uc18d\ub3c4\ub97c \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131:<\/strong> Swagger UI \ubc0f ReDoc\uc744 \ud1b5\ud55c \uc790\ub3d9 API \ubb38\uc11c\ud654\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud0c0\uc785 \ud78c\ud305:<\/strong> Python 3.6 \uc774\uc0c1\uc758 \ud0c0\uc785 \ud78c\ud305\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc \uac00\ub3c5\uc131\uacfc \uc720\uc9c0 \ubcf4\uc218\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. FastAPI\ub85c \uc11c\ubc84 \uac1c\ubc1c \uc2dc\uc791\ud558\uae30<\/h2>\n<p>FastAPI \uc124\uce58\ub294 \uac04\ub2e8\ud569\ub2c8\ub2e4. pip\ub97c \uc0ac\uc6a9\ud558\uc5ec FastAPI\uc640 uvicorn\uc744 \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<h2>3. \uae30\ubcf8 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \uad6c\uc870\ub85c \uad6c\uc131\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>main.py:<\/strong> FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc9c4\uc785\uc810\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>routers:<\/strong> \ub2e4\uc591\ud55c API \ub77c\uc6b0\ud2b8\ub97c \uc815\uc758\ud558\ub294 \ubaa8\ub4c8\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>models:<\/strong> \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378 \ubc0f Pydantic \ubaa8\ub378\uc744 \uc815\uc758\ud558\ub294 \ubaa8\ub4c8\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>schemas:<\/strong> \uc694\uccad \ubc0f \uc751\ub2f5 \ubaa8\ub378\uc744 \uc815\uc758\ud558\ub294 Pydantic \uc2a4\ud0a4\ub9c8\uc785\ub2c8\ub2e4.<\/li>\n<li><strong>services:<\/strong> \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucc98\ub9ac\ud558\ub294 \ubaa8\ub4c8\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>3.1 \uae30\ubcf8 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ucf54\ub4dc<\/h3>\n<p>\uc544\ub798 \ucf54\ub4dc\ub294 FastAPI\uc758 \uae30\ubcf8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"\/\")\nasync def read_root():\n    return {\"Hello\": \"World\"}\n\nif __name__ == \"__main__\":\n    import uvicorn\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000)\n<\/code><\/pre>\n<h2>4. FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub77c\uc6b0\ud305<\/h2>\n<p>FastAPI\uc5d0\uc11c \ub77c\uc6b0\ud305\uc740 \uc6f9 \uacbd\ub85c\uc640 HTTP \uba54\uc11c\ub4dc(GET, POST, PUT, DELETE \ub4f1)\uc5d0 \ub530\ub77c \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\uc2dd\uc744 \uc815\uc758\ud569\ub2c8\ub2e4. FastAPI\ub294 \uac01 \ub77c\uc6b0\ud2b8\uc5d0 \ub300\ud55c HTTP \uba54\uc11c\ub4dc\ub97c \ub370\ucee4\ub808\uc774\ud130 \ud615\ud0dc\ub85c \uc791\uc131\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<\/p>\n<h3>4.1 \ub77c\uc6b0\ud2b8 \uad6c\ud604\ud558\uae30<\/h3>\n<p>\ub77c\uc6b0\ud2b8\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud574 FastAPI\uc5d0 \ub0b4\uc7a5\ub41c \uc5ec\ub7ec \ub370\ucee4\ub808\uc774\ud130\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 &#8220;\/items\/{item_id}&#8221; \uacbd\ub85c\ub85c GET \uc694\uccad\uc744 \ubcf4\ub0bc \ub54c \ud2b9\uc815 \uc544\uc774\ud15c\uc744 \ubc18\ud658\ud558\ub294 \ub77c\uc6b0\ud2b8\ub97c \uc544\ub798\uc640 \uac19\uc774 \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>@app.get(\"\/items\/{item_id}\")\nasync def read_item(item_id: int, q: str = None):\n    return {\"item_id\": item_id, \"q\": q}\n<\/code><\/pre>\n<h3>4.2 \ub2e4\uc591\ud55c HTTP \uba54\uc11c\ub4dc \uc0ac\uc6a9\ud558\uae30<\/h3>\n<p>FastAPI\ub294 GET, POST, PUT, DELETE\uc640 \uac19\uc740 \ub2e4\uc591\ud55c HTTP \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. \uc544\ub798 \uc608\uc81c\ub294 POST \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \uc785\ub825 \ubc1b\uc740 \ub370\uc774\ud130\ub97c \ubc18\ud658\ud558\ub294 \ub77c\uc6b0\ud2b8\ub97c \ubcf4\uc5ec\uc90d\ub2c8\ub2e4:<\/p>\n<pre><code>from pydantic import BaseModel\n\nclass Item(BaseModel):\n    name: str\n    price: float\n    is_offer: bool = None\n\n@app.post(\"\/items\/\")\nasync def create_item(item: Item):\n    return item\n<\/code><\/pre>\n<h2>5. FastAPI \ub77c\uc6b0\ud130\ub85c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654\ud558\uae30<\/h2>\n<p>\ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \ubaa8\ub4e0 \ub77c\uc6b0\ud2b8\ub97c main.py \ud30c\uc77c\uc5d0 \uc815\uc758\ud558\ub294 \uac83\ubcf4\ub2e4 \ubaa8\ub4c8\ud654\ud558\uc5ec \uad00\ub9ac\ud558\ub294 \uac83\uc774 \ud6a8\uc728\uc801\uc785\ub2c8\ub2e4. FastAPI\uc5d0\uc11c\ub294 `APIRouter`\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub77c\uc6b0\ud2b8 \uadf8\ub8f9\uc744 \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>5.1 \ub77c\uc6b0\ud130 \uc124\uc815\ud558\uae30<\/h3>\n<p>\ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\ub97c \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>app\/\n<ul>\n<li>main.py<\/li>\n<li>routers\/\n<ul>\n<li>items.py<\/li>\n<\/ul>\n<\/li>\n<li>models\/\n<ul>\n<li>item.py<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>5.2 items.py \ub77c\uc6b0\ud130 \uad6c\ud604<\/h3>\n<p>items.py \ud30c\uc77c\uc5d0\uc11c \uc544\uc774\ud15c \uad00\ub828 \ubaa8\ub4e0 \ub77c\uc6b0\ud2b8\ub97c \uc815\uc758\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import APIRouter\nfrom models.item import Item\n\nrouter = APIRouter()\n\n@router.post(\"\/items\/\")\nasync def create_item(item: Item):\n    return item\n\n@router.get(\"\/items\/{item_id}\")\nasync def read_item(item_id: int):\n    return {\"item_id\": item_id}\n<\/code><\/pre>\n<h3>5.3 main.py \ud30c\uc77c\uc5d0\uc11c \ub77c\uc6b0\ud130 \ud3ec\ud568\uc2dc\ud0a4\uae30<\/h3>\n<p>\ub77c\uc6b0\ud130\ub97c main.py\uc5d0 \ud3ec\ud568\uc2dc\ucf1c \uc0ac\uc6a9\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\nfrom routers.items import router as items_router\n\napp = FastAPI()\n\napp.include_router(items_router, prefix=\"\/items\", tags=[\"items\"])\n<\/code><\/pre>\n<h2>6. FastAPI\uc640 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\ud558\uae30<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc5f0\ub3d9\ud558\ub294 \uac83\uc740 \uc790\uc8fc \ud544\uc694\ud558\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc544\ub798 \ucf54\ub4dc\ub294 SQLAlchemy\uc640 FastAPI\ub97c \ud1b5\ud569\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc0c1\ud638\uc791\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/p>\n<h3>6.1 SQLAlchemy \uc124\uce58\ud558\uae30<\/h3>\n<p>SQLAlchemy\uc640 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub4dc\ub77c\uc774\ubc84\ub97c \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install sqlalchemy databases<\/code><\/pre>\n<h3>6.2 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc124\uc815<\/h3>\n<p>database.py \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744 \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>from sqlalchemy import create_engine, MetaData\nfrom sqlalchemy.ext.declarative import declarative_base\n\nSQLALCHEMY_DATABASE_URL = \"sqlite:\/\/\/.\/test.db\"\nengine = create_engine(SQLALCHEMY_DATABASE_URL, connect_args={\"check_same_thread\": False})\nmetadata = MetaData()\nBase = declarative_base()\n<\/code><\/pre>\n<h3>6.3 \ubaa8\ub378 \uc815\uc758\ud558\uae30<\/h3>\n<p>models\/item.py\uc5d0\uc11c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>from sqlalchemy import Column, Integer, String\nfrom database import Base\n\nclass Item(Base):\n    __tablename__ = \"items\"\n\n    id = Column(Integer, primary_key=True, index=True)\n    name = Column(String, index=True)\n    price = Column(Integer)\n<\/code><\/pre>\n<h3>6.4 CRUD \uc791\ub3d9 \uad6c\ud604\ud558\uae30<\/h3>\n<p>\uc11c\ube44\uc2a4 \uacc4\uce35\uc5d0 CRUD \uc791\ub3d9\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>from sqlalchemy.orm import Session\nfrom models.item import Item\n\ndef get_item(db: Session, item_id: int):\n    return db.query(Item).filter(Item.id == item_id).first()\n\ndef create_item(db: Session, item: Item):\n    db.add(item)\n    db.commit()\n    db.refresh(item)\n    return item\n<\/code><\/pre>\n<h2>7. FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc2e4\ud589\ud558\uae30<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<h2>8. \uacb0\ub860<\/h2>\n<p>FastAPI\ub294 \ud6cc\ub96d\ud55c \uc131\ub2a5\uacfc \uc9c1\uad00\uc801\uc778 \ucf54\ub4dc \uc791\uc131\uc744 \uc81c\uacf5\ud558\ub294 \uc6f9 API \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uace0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654 \ubc29\ubc95, \ub77c\uc6b0\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud574 \ub2e4\ub8e8\uc5c8\uc2b5\ub2c8\ub2e4. FastAPI\uac00 \uc81c\uacf5\ud558\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 \ud65c\uc6a9\ud558\uc5ec \ubcf4\ub2e4 \ub098\uc740 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>9. \ucd94\uac00 \uc790\ub8cc<\/h2>\n<p>FastAPI \uacf5\uc2dd \ubb38\uc11c\uc5d0\uc11c \ub354 \ub9ce\uc740 \uc815\ubcf4\uc640 \uc790\ub8cc\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4: <a href=\"https:\/\/fastapi.tiangolo.com\/\" target=\"_blank\" rel=\"noopener\">FastAPI Documentation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API \uac1c\ubc1c\uc744 \uc704\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python \uc5b8\uc5b4\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 \ub192\uc740 \uc131\ub2a5\uc744 \uc720\uc9c0\ud558\uba74\uc11c\ub3c4 \uac1c\ubc1c\uc790\uac00 \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac15\ub825\ud55c \ud0c0\uc785 \uc2dc\uc2a4\ud15c\uacfc \uc790\ub3d9\ud654\ub41c \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uace0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654 \ubc29\ubc95, \uadf8\ub9ac\uace0 \ub77c\uc6b0\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uace0 \uc608\uc81c \ucf54\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. FastAPI\ub780? &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38610\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[183],"tags":[],"class_list":["post-38610","post","type-post","status-publish","format-standard","hentry","category-fastapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38610\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API \uac1c\ubc1c\uc744 \uc704\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python \uc5b8\uc5b4\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 \ub192\uc740 \uc131\ub2a5\uc744 \uc720\uc9c0\ud558\uba74\uc11c\ub3c4 \uac1c\ubc1c\uc790\uac00 \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac15\ub825\ud55c \ud0c0\uc785 \uc2dc\uc2a4\ud15c\uacfc \uc790\ub3d9\ud654\ub41c \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uace0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654 \ubc29\ubc95, \uadf8\ub9ac\uace0 \ub77c\uc6b0\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uace0 \uc608\uc81c \ucf54\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. FastAPI\ub780? &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38610\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:18:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:51+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604\",\"datePublished\":\"2024-11-01T18:18:39+00:00\",\"dateModified\":\"2024-11-26T06:43:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/\"},\"wordCount\":102,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38610\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:18:39+00:00\",\"dateModified\":\"2024-11-26T06:43:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38610\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38610\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/38610\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API \uac1c\ubc1c\uc744 \uc704\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python \uc5b8\uc5b4\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 \ub192\uc740 \uc131\ub2a5\uc744 \uc720\uc9c0\ud558\uba74\uc11c\ub3c4 \uac1c\ubc1c\uc790\uac00 \uc9c1\uad00\uc801\uc73c\ub85c \uc774\ud574\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\ub294 \uac15\ub825\ud55c \ud0c0\uc785 \uc2dc\uc2a4\ud15c\uacfc \uc790\ub3d9\ud654\ub41c \ubb38\uc11c \uc0dd\uc131 \uae30\ub2a5\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\uace0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654 \ubc29\ubc95, \uadf8\ub9ac\uace0 \ub77c\uc6b0\ud2b8 \uad6c\ud604\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uace0 \uc608\uc81c \ucf54\ub4dc\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. FastAPI\ub780? &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604\"","og_url":"https:\/\/atmokpo.com\/w\/38610\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:18:39+00:00","article_modified_time":"2024-11-26T06:43:51+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38610\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38610\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604","datePublished":"2024-11-01T18:18:39+00:00","dateModified":"2024-11-26T06:43:51+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38610\/"},"wordCount":102,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38610\/","url":"https:\/\/atmokpo.com\/w\/38610\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:18:39+00:00","dateModified":"2024-11-26T06:43:51+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38610\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38610\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38610\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \ub77c\uc6b0\ud2b8 \uad6c\ud604"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38610"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38610\/revisions"}],"predecessor-version":[{"id":38611,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38610\/revisions\/38611"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}