{"id":38481,"date":"2024-11-01T18:17:26","date_gmt":"2024-11-01T18:17:26","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38481"},"modified":"2024-11-26T06:44:13","modified_gmt":"2024-11-26T06:44:13","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-fastapi-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38481\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58"},"content":{"rendered":"<p><body><\/p>\n<p>\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud604\ub300\uc801\uc778, \ube60\ub978 (\uace0\uc131\ub2a5), \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc791\ub3d9\ud569\ub2c8\ub2e4. RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc73c\uba70, API \uac1c\ubc1c \uc18d\ub3c4\ub97c \ube60\ub974\uac8c \ud574\uc8fc\ub294 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 FastAPI\uc758 \uc124\uce58 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \ub9cc\ub4dc\ub294 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h2>FastAPI\ub780?<\/h2>\n<p>FastAPI\ub294 Python\uc5d0\uc11c \ube44\ub3d9\uae30 API \uad6c\ucd95\uc744 \uc27d\uac8c \ud574\uc8fc\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, <strong>Starlette<\/strong>\uacfc <strong>Pydantic<\/strong> \uc704\uc5d0 \uad6c\ucd95\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ub370\ucf54\ub808\uc774\ud130(Decorator)\ub97c \ud1b5\ud574 \ub77c\uc6b0\ud2b8\ub97c \uc27d\uac8c \uc815\uc758\ud558\uace0, \uc790\ub3d9\uc73c\ub85c Swagger \ubb38\uc11c\ud654 \uc2dc\uc2a4\ud15c\uc744 \uc0dd\uc131\ud574\uc90d\ub2c8\ub2e4. \ud2b9\ud788, \ud0c0\uc785 \ud78c\ud2b8\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac \ubc0f \uc790\ub3d9 \uc644\uc131\uc744 \uc81c\uacf5\ud558\ub294 \uc810\uc774 \ud070 \uc7a5\uc810\uc785\ub2c8\ub2e4.<\/p>\n<h2>FastAPI \uc124\uce58\ud558\uae30<\/h2>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 \uc6b0\uc120 Python\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. Python\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc9c0 \uc54a\ub2e4\uba74, <a href=\"https:\/\/www.python.org\/downloads\/\">Python \uc6f9\uc0ac\uc774\ud2b8<\/a>\uc5d0\uc11c \ub2e4\uc6b4\ub85c\ub4dc \ud6c4 \uc124\uce58\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h3>1\ub2e8\uacc4: Virtual Environment \uc124\uc815\ud558\uae30<\/h3>\n<p>\ud504\ub85c\uc81d\ud2b8\ub97c \uc9c4\ud589\ud558\uae30\uc5d0 \uc55e\uc11c, \uac00\uc0c1 \ud658\uacbd\uc744 \uc0ac\uc6a9\ud558\ub294 \uac83\uc744 \ucd94\ucc9c\ud569\ub2c8\ub2e4. \uac00\uc0c1 \ud658\uacbd\uc744 \ud1b5\ud574 \uc758\uc874\uc131\uc744 \ubd84\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798 \uba85\ub839\uc5b4\ub85c \uac00\uc0c1 \ud658\uacbd\uc744 \uc0dd\uc131\ud558\uace0 \ud65c\uc131\ud654\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>python -m venv fastapi_env\n# Windows\nfastapi_env\\Scripts\\activate\n# macOS\/Linux\nsource fastapi_env\/bin\/activate\n<\/code><\/pre>\n<p>\uac00\uc0c1 \ud658\uacbd\uc774 \ud65c\uc131\ud654\ub418\uba74, \ucee4\ub9e8\ub4dc \ud504\ub86c\ud504\ud2b8\uc5d0 `(fastapi_env)`\uac00 \ud45c\uc2dc\ub429\ub2c8\ub2e4.<\/p>\n<h3>2\ub2e8\uacc4: FastAPI \ubc0f Uvicorn \uc124\uce58\ud558\uae30<\/h3>\n<p>FastAPI\ub97c \uc124\uce58\ud558\ub824\uba74 pip\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Uvicorn\uc740 FastAPI \uc571\uc744 \uc2e4\ud589\ud558\ub294 ASGI \uc11c\ubc84\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>pip install fastapi uvicorn\n<\/code><\/pre>\n<h3>3\ub2e8\uacc4: FastAPI \uc124\uce58 \ud655\uc778\ud558\uae30<\/h3>\n<p>FastAPI\uac00 \uc62c\ubc14\ub974\uac8c \uc124\uce58\ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud558\uae30 \uc704\ud574, \uac04\ub2e8\ud55c Python \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc774 <code>main.py<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uc138\uc694.<\/p>\n<pre><code># main.py\nfrom fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"\/\")\ndef read_root():\n    return {\"Hello\": \"World\"}\n<\/code><\/pre>\n<h2>FastAPI \uc11c\ubc84 \uc2e4\ud589\ud558\uae30<\/h2>\n<p>\uc774\uc81c FastAPI \uc11c\ubc84\ub97c \uc2e4\ud589\ud560 \uc900\ube44\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc774 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud558\uc5ec \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uc138\uc694.<\/p>\n<pre><code>uvicorn main:app --reload\n<\/code><\/pre>\n<p>\uc5ec\uae30\uc11c <code>main:app<\/code>\uc740 <code>main.py<\/code> \ud30c\uc77c\uc758 <code>app<\/code> \uac1d\uccb4\ub97c \ucc38\uc870\ud569\ub2c8\ub2e4. <code>--reload<\/code> \ud50c\ub798\uadf8\ub294 \ucf54\ub4dc \ubcc0\uacbd \uc2dc \uc11c\ubc84\ub97c \uc790\ub3d9\uc73c\ub85c \ub2e4\uc2dc \ub85c\ub4dc\ud574\uc90d\ub2c8\ub2e4.<\/p>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/127.0.0.1:8000<\/code>\uc5d0 \uc811\uc18d\ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 JSON \uc751\ub2f5\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>{\"Hello\": \"World\"}\n<\/code><\/pre>\n<h2>Swagger \ubb38\uc11c \ud655\uc778\ud558\uae30<\/h2>\n<p>FastAPI\ub294 \uc790\ub3d9\uc73c\ub85c Swagger UI\ub97c \uc0dd\uc131\ud558\uc5ec API \ubb38\uc11c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc544\ub798 \uc8fc\uc18c\ub85c \uc774\ub3d9\ud558\uba74 API \ubb38\uc11c\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p><code>http:\/\/127.0.0.1:8000\/docs<\/code><\/p>\n<p>Swagger UI\uc5d0\uc11c\ub294 \uc6b0\ub9ac\uac00 \uc815\uc758\ud55c API\uc758 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ud655\uc778\ud558\uace0, \uc9c1\uc811 \ud638\ucd9c\ud574\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>FastAPI \uae30\ubcf8 \uad6c\uc870 \uc18c\uac1c<\/h2>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c \uc0ac\uc6a9\ub41c \uae30\ubcf8 FastAPI \uad6c\uc870\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uad6c\uc131 \uc694\uc18c\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>FastAPI \uc778\uc2a4\ud134\uc2a4:<\/strong> <code>app = FastAPI()<\/code>\ub85c \uc778\uc2a4\ud134\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774 &#8216;app&#8217; \uac1d\uccb4\ub294 \ub77c\uc6b0\ud130 \ubc0f \ubbf8\ub4e4\uc6e8\uc5b4\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ub77c\uc6b0\ud2b8 \uc815\uc758:<\/strong> @app.get(&#8220;\/&#8221;)\ub294 GET \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 \ub77c\uc6b0\ud2b8\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \uc694\uccad\uc744 \ubc1b\uc73c\uba74 <code>read_root<\/code> \ud568\uc218\uac00 \ud638\ucd9c\ub429\ub2c8\ub2e4.<\/li>\n<li><strong>\uc751\ub2f5:<\/strong> JSON \ud615\ud0dc\ub85c \uc751\ub2f5\uc744 \ubc18\ud658\ud558\uba70, FastAPI\ub294 \uc790\ub3d9\uc73c\ub85c Content-Type \ud5e4\ub354\uc640 \uc0c1\ud0dc \ucf54\ub4dc\ub97c \uc124\uc815\ud574\uc90d\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>FastAPI\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uc5ec\ub7ec \uae30\ub2a5\ub4e4<\/h2>\n<p>FastAPI\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uba87 \uac00\uc9c0 \uc8fc\uc694 \uae30\ub2a5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>\ud0c0\uc785 \uc2dc\uc2a4\ud15c:<\/strong> \ud30c\ub77c\ubbf8\ud130\uc640 \uc751\ub2f5\uc758 \ub370\uc774\ud130 \ud0c0\uc785\uc744 \uba85\ud655\ud788 \uc815\uc758\ud558\uace0 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\uac70\ub300\ud55c \uad6c\uc131\uc694\uc18c:<\/strong> \ub2e4\uc591\ud55c \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uc635\uc158\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d:<\/strong> <code>async\/await<\/code>\uc744 \ud65c\uc6a9\ud558\uc5ec \ube44\ub3d9\uae30 \uc694\uccad \ucc98\ub9ac \uac00\ub2a5.<\/li>\n<li><strong>\ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud1b5\ud569:<\/strong> SQLAlchemy\uc640 \uac19\uc774 \ub2e4\ub978 ORM\uc744 \uc27d\uac8c \ud1b5\ud569\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\uae30\ubcf8\uc801\uc778 CRUD API \uad6c\ud604\ud574\ubcf4\uae30<\/h2>\n<p>\uc774\uc81c FastAPI\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc774\ud574\ud588\uc73c\ub2c8, \uac04\ub2e8\ud55c CRUD(Create, Read, Update, Delete) API\ub97c \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \uba54\ubaa8\ub97c \uad00\ub9ac\ud558\ub294 API\uc758 \uc608\uc785\ub2c8\ub2e4.<\/p>\n<pre><code># main.py\nfrom fastapi import FastAPI\nfrom pydantic import BaseModel\nfrom typing import List\n\napp = FastAPI()\n\nclass Memo(BaseModel):\n    id: int\n    content: str\n\nmemo_list = []\n\n@app.post(\"\/memos\/\", response_model=Memo)\ndef create_memo(memo: Memo):\n    memo_list.append(memo)\n    return memo\n\n@app.get(\"\/memos\/\", response_model=List[Memo])\ndef read_memos():\n    return memo_list\n\n@app.put(\"\/memos\/{memo_id}\", response_model=Memo)\ndef update_memo(memo_id: int, memo: Memo):\n    for idx, m in enumerate(memo_list):\n        if m.id == memo_id:\n            memo_list[idx] = memo\n            return memo\n    return None\n\n@app.delete(\"\/memos\/{memo_id}\")\ndef delete_memo(memo_id: int):\n    global memo_list\n    memo_list = [m for m in memo_list if m.id != memo_id]\n    return {\"message\": \"\uc0ad\uc81c\ub418\uc5c8\uc2b5\ub2c8\ub2e4.\"}\n<\/code><\/pre>\n<h3>CRUD API \uc124\uba85<\/h3>\n<ul>\n<li><strong>Create:<\/strong> <code>\/memos\/<\/code> \uacbd\ub85c\ub85c POST \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 \uc0c8\ub85c\uc6b4 \uba54\ubaa8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>Read:<\/strong> <code>\/memos\/<\/code> \uacbd\ub85c\ub85c GET \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 \ubaa8\ub4e0 \uba54\ubaa8\ub97c \uc870\ud68c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>Update:<\/strong> <code>\/memos\/{memo_id}<\/code> \uacbd\ub85c\ub85c PUT \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 \ud2b9\uc815 \uba54\ubaa8\ub97c \uc218\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>Delete:<\/strong> <code>\/memos\/{memo_id}<\/code> \uacbd\ub85c\ub85c DELETE \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 \ud2b9\uc815 \uba54\ubaa8\ub97c \uc0ad\uc81c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\uc5d0\uc11c\ub294 FastAPI\uc758 \uc124\uce58 \ubc29\ubc95\uacfc \uae30\ubcf8\uc801\uc778 \uc11c\ubc84 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ube60\ub974\uace0 \uc720\uc5f0\ud55c API \uac1c\ubc1c\uc744 \ud560 \uc218 \uc788\uac8c \ub3c4\uc640\uc8fc\uba70, \ube44\ub3d9\uae30 \ucc98\ub9ac\uac00 \uac00\ub2a5\ud558\uae30 \ub54c\ubb38\uc5d0 \ub192\uc740 \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc55e\uc73c\ub85c \ub354 \ub9ce\uc740 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \uace0\uae09 API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucd94\uac00\uc801\uc778 \ud559\uc2b5\uc744 \uc704\ud574 FastAPI\uc758 \uacf5\uc2dd \ubb38\uc11c\ub97c \ucc38\uace0\ud558\uc2dc\uae30\ub97c \uad8c\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<p>\uc2dc\uccad\ud574 \uc8fc\uc154\uc11c \uac10\uc0ac\ud569\ub2c8\ub2e4! \uc5ec\ub7ec\ubd84\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 \ub3c4\uc6c0\uc774 \ub418\uc5c8\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud604\ub300\uc801\uc778, \ube60\ub978 (\uace0\uc131\ub2a5), \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc791\ub3d9\ud569\ub2c8\ub2e4. RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc73c\uba70, API \uac1c\ubc1c \uc18d\ub3c4\ub97c \ube60\ub974\uac8c \ud574\uc8fc\ub294 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 FastAPI\uc758 \uc124\uce58 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \ub9cc\ub4dc\ub294 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4. FastAPI\ub780? FastAPI\ub294 Python\uc5d0\uc11c \ube44\ub3d9\uae30 API \uad6c\ucd95\uc744 \uc27d\uac8c \ud574\uc8fc\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Starlette\uacfc &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38481\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58&#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-38481","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 \uc124\uce58 - \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\/38481\/\" \/>\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 \uc124\uce58 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud604\ub300\uc801\uc778, \ube60\ub978 (\uace0\uc131\ub2a5), \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc791\ub3d9\ud569\ub2c8\ub2e4. RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc73c\uba70, API \uac1c\ubc1c \uc18d\ub3c4\ub97c \ube60\ub974\uac8c \ud574\uc8fc\ub294 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 FastAPI\uc758 \uc124\uce58 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \ub9cc\ub4dc\ub294 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4. FastAPI\ub780? FastAPI\ub294 Python\uc5d0\uc11c \ube44\ub3d9\uae30 API \uad6c\ucd95\uc744 \uc27d\uac8c \ud574\uc8fc\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Starlette\uacfc &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38481\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:13+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=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58\",\"datePublished\":\"2024-11-01T18:17:26+00:00\",\"dateModified\":\"2024-11-26T06:44:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/\"},\"wordCount\":89,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38481\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:26+00:00\",\"dateModified\":\"2024-11-26T06:44:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38481\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38481\/#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 \uc124\uce58\"}]},{\"@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 \uc124\uce58 - \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\/38481\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc548\ub155\ud558\uc138\uc694! \uc624\ub298\uc740 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud604\ub300\uc801\uc778, \ube60\ub978 (\uace0\uc131\ub2a5), \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc791\ub3d9\ud569\ub2c8\ub2e4. RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc73c\uba70, API \uac1c\ubc1c \uc18d\ub3c4\ub97c \ube60\ub974\uac8c \ud574\uc8fc\ub294 \uc720\uc6a9\ud55c \ub3c4\uad6c\uc785\ub2c8\ub2e4. \uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 FastAPI\uc758 \uc124\uce58 \ubc29\ubc95\uacfc \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \ub9cc\ub4dc\ub294 \uc2e4\uc2b5\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4. FastAPI\ub780? FastAPI\ub294 Python\uc5d0\uc11c \ube44\ub3d9\uae30 API \uad6c\ucd95\uc744 \uc27d\uac8c \ud574\uc8fc\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Starlette\uacfc &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58\"","og_url":"https:\/\/atmokpo.com\/w\/38481\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:26+00:00","article_modified_time":"2024-11-26T06:44:13+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":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38481\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38481\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58","datePublished":"2024-11-01T18:17:26+00:00","dateModified":"2024-11-26T06:44:13+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38481\/"},"wordCount":89,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38481\/","url":"https:\/\/atmokpo.com\/w\/38481\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc124\uce58 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:26+00:00","dateModified":"2024-11-26T06:44:13+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38481\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38481\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38481\/#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 \uc124\uce58"}]},{"@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\/38481","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=38481"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38481\/revisions"}],"predecessor-version":[{"id":38483,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38481\/revisions\/38483"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}