{"id":38542,"date":"2024-11-01T18:18:05","date_gmt":"2024-11-01T18:18:05","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38542"},"modified":"2024-11-26T06:44:02","modified_gmt":"2024-11-26T06:44:02","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-fastapi%ec%97%90%ec%84%9c-%ed%8c%8c%ec%9d%bc-%ec%97%85%eb%a1%9c%eb%93%9c-%ec%b2%98%eb%a6%ac%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38542\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<h2>FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30<\/h2>\n<p>\n        FastAPI\ub294 Python\uc73c\ub85c \uac1c\ubc1c\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \uc27d\uac8c API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        \ud2b9\ud788, FastAPI\ub294 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c \ubb38\uc11c\ud654\ub97c \uc9c0\uc6d0\ud558\ub294 \uae30\ub2a5 \ub4f1\uc73c\ub85c \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4.<br \/>\n        \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h3>1. FastAPI \uc18c\uac1c<\/h3>\n<p>\n        FastAPI\ub294 Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 ASGI \ud45c\uc900 \uae30\ubc18\uc758 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c Starlette \uc704\uc5d0\uc11c \ube4c\ub4dc\ub418\uc5c8\uc73c\uba70,<br \/>\n        Pydantic\uc744 \ud1b5\ud574 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. High-performance API\ub97c \ub9cc\ub4e4 \uc218 \uc788\ub3c4\ub85d \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        FastAPI\ub294 RESTful API\ub97c \uad6c\ucd95\ud560 \ub54c \uac04\ud3b8\ud558\uac8c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, OpenAPI \uc2a4\ud399\uc744 \uc790\ub3d9\uc73c\ub85c \ubb38\uc11c\ud654\ud574\uc8fc\ub294 \uae30\ub2a5\ub3c4 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>2. FastAPI \ud658\uacbd \uc124\uc815<\/h3>\n<p>\n        FastAPI\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud558\uc5ec \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<p>\n        \uc5ec\uae30\uc11c `uvicorn`\uc740 ASGI \uc11c\ubc84\ub85c FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\ub294 \ub370 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.\n    <\/p>\n<h3>3. \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5 \uc774\ud574\ud558\uae30<\/h3>\n<p>\n        \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub294 \uc0ac\uc6a9\uc790\uac00 \uc774\ubbf8\uc9c0, \ubb38\uc11c \ubc0f \uae30\ud0c0 \uc5ec\ub7ec \uac00\uc9c0 \ud615\uc2dd\uc744 \uc11c\ubc84\uc5d0 \uc804\uc1a1\ud560 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4.<br \/>\n        FastAPI\ub294 \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \uac04\ud3b8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \ub3c4\uad6c\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<br \/>\n        FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub294 `File`\uacfc `UploadFile` \ud074\ub798\uc2a4\uc758 \ub3c4\uc6c0\uc744 \ubc1b\uc544 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h4>3.1. File\uacfc UploadFile\uc758 \ucc28\uc774\uc810<\/h4>\n<p>\n        &#8211; <strong>File<\/strong>: \uc77c\ubc18\uc801\uc778 \ud544\ub4dc\ucc98\ub7fc \ud30c\uc77c\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \uba54\ubaa8\ub9ac\uc5d0 \ub85c\ub4dc\ud558\ubbc0\ub85c,<br \/>\n        \uc791\uc740 \ud30c\uc77c\uc744 \ubc1b\ub294 \uacbd\uc6b0\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; <strong>UploadFile<\/strong>: \ud30c\uc77c\uc744 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \ucc98\ub9ac\ud560 \uc218 \uc788\uc73c\uba70, \ud30c\uc77c \ub0b4\uc6a9\uc744 \uba54\ubaa8\ub9ac\uc5d0 \ub85c\ub4dc\ud558\uc9c0 \uc54a\uace0,<br \/>\n        \ud30c\uc77c\uc758 \ub0b4\uc6a9\uc744 \ud30c\uc77c \uc2dc\uc2a4\ud15c\uc5d0 \uc800\uc7a5\ud558\uac70\ub098 \ubc84\ud37c\ub9c1\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \ud070 \ud30c\uc77c \ucc98\ub9ac\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>4. \uc608\uc81c \ucf54\ub4dc: FastAPI \ud30c\uc77c \uc5c5\ub85c\ub4dc \uc11c\ubc84<\/h3>\n<p>\n        \uc774\ubc88 \uc139\uc158\uc5d0\uc11c\ub294 FastAPI\ub85c \uac04\ub2e8\ud55c \ud30c\uc77c \uc5c5\ub85c\ub4dc \uc11c\ubc84\ub97c \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uc5ec \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n    <\/p>\n<h4>4.1. \uae30\ubcf8 \uad6c\uc870 \uc124\uc815<\/h4>\n<pre><code>python\nfrom fastapi import FastAPI, File, UploadFile\nfrom fastapi.responses import HTMLResponse\nimport shutil\nimport os\n\napp = FastAPI()\n\nUPLOAD_DIRECTORY = \"uploads\"\n\n# \uc5c5\ub85c\ub4dc \ub514\ub809\ud1a0\ub9ac \uc0dd\uc131\nif not os.path.exists(UPLOAD_DIRECTORY):\n    os.makedirs(UPLOAD_DIRECTORY)\n\n@app.get(\"\/\", response_class=HTMLResponse)\nasync def main():\n    content = \"\"\"\n    <html>\n        <body>\n            <h2>\ud30c\uc77c \uc5c5\ub85c\ub4dc<\/h2>\n            <form action=\"\/uploadfile\/\" enctype=\"multipart\/form-data\" method=\"post\">\n            <input name=\"file\" type=\"file\"\/>\n            <input type=\"submit\" value=\"Upload File\"\/>\n            <\/form>\n        <\/body>\n    <\/html>\n    \"\"\"\n    return content\n\n@app.post(\"\/uploadfile\/\")\nasync def upload_file(file: UploadFile = File(...)):\n    file_location = f\"{UPLOAD_DIRECTORY}\/{file.filename}\"\n    with open(file_location, \"wb\") as buffer:\n        shutil.copyfileobj(file.file, buffer)\n    return {\"info\": f\"file '{file.filename}' saved at '{file_location}'\"}\n<\/code><\/pre>\n<h4>4.2. \ucf54\ub4dc \uc124\uba85<\/h4>\n<p>\n        &#8211; <code>FastAPI<\/code> \uc778\uc2a4\ud134\uc2a4\ub97c \uc0dd\uc131\ud558\uace0, \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ucc98\ub9ac\ud560 root \uacbd\ub85c\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; \uc0ac\uc6a9\uc790\uac00 \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\ub294 HTML \ud3fc\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<br \/>\n        &#8211; POST \uc694\uccad\uc744 \ucc98\ub9ac\ud558\ub294 <code>\/uploadfile\/<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \uc815\uc758\ud558\uace0,<br \/>\n        <code>UploadFile<\/code> \ud0c0\uc785\uc758 \uc778\uc790\ub97c \ubc1b\uc2b5\ub2c8\ub2e4.<br \/>\n        &#8211; \ud30c\uc77c\uc744 \uc77c\uc815\ud55c \uc704\uce58\uc5d0 \uc800\uc7a5\ud558\ub294 \ub85c\uc9c1\uc744 \uad6c\ud604\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>5. FastAPI \uc11c\ubc84 \uc2e4\ud589<\/h3>\n<p>\n        \uc704\uc758 \ucf54\ub4dc\ub97c \uc791\uc131\ud55c \ud6c4, FastAPI \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uba74 \ub429\ub2c8\ub2e4. \uc544\ub798 \uba85\ub839\uc5b4\ub97c \ud130\ubbf8\ub110\uc5d0 \uc785\ub825\ud558\uc5ec \uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.\n    <\/p>\n<pre><code>uvicorn your_file_name:app --reload<\/code><\/pre>\n<p>\n<code>your_file_name<\/code>\uc740 FastAPI \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc815\uc758\ub41c \ud30c\uc77c\uc758 \uc774\ub984\uc73c\ub85c, \ud655\uc7a5\uc790 \uc5c6\uc774 \uc785\ub825\ud569\ub2c8\ub2e4.<br \/>\n        <strong>&#8211;reload<\/strong> \ud50c\ub798\uadf8\ub294 \ucf54\ub4dc \ubcc0\uacbd \uc2dc \uc11c\ubc84\uac00 \uc790\ub3d9\uc73c\ub85c \uc7ac\uc2dc\uc791\ub418\ub3c4\ub85d \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>6. \ud30c\uc77c \uc5c5\ub85c\ub4dc \ud14c\uc2a4\ud2b8<\/h3>\n<p>\n        \uc11c\ubc84\uac00 \uc2e4\ud589\ub418\uace0 \ub098\uba74, \uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/127.0.0.1:8000<\/code>\ub85c \uc811\uadfc\ud569\ub2c8\ub2e4.<br \/>\n        \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \uc704\ud55c \ud3fc\uc774 \ub098\ud0c0\ub098\uba74 \uc6d0\ud558\ub294 \ud30c\uc77c\uc744 \uc120\ud0dd\ud558\uace0 &#8220;Upload File&#8221; \ubc84\ud2bc\uc744 \ud074\ub9ad\ud558\uc5ec \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc\ud569\ub2c8\ub2e4.\n    <\/p>\n<p>\n        \uc5c5\ub85c\ub4dc\uac00 \uc644\ub8cc\ub418\uba74, \uc11c\ubc84\ub294 \ud30c\uc77c\uc774 \uc800\uc7a5\ub41c \uacbd\ub85c\uc640 \ud30c\uc77c \uc774\ub984\uc744 \uc751\ub2f5\uc73c\ub85c \ubc18\ud658\ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>7. \ucd94\uac00 \uace0\ub824 \uc0ac\ud56d<\/h3>\n<p>\n        \uc5c5\ub85c\ub4dc\ub41c \ud30c\uc77c\uc744 \ucc98\ub9ac\ud560 \ub54c \uba87 \uac00\uc9c0 \uace0\ub824\ud574\uc57c \ud560 \uc0ac\ud56d\uc774 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        &#8211; **\ud30c\uc77c \ud06c\uae30 \uc81c\ud55c**: \ub300\uc6a9\ub7c9 \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \ubc29\uc9c0\ud558\uae30 \uc704\ud574 FastAPI\uc758 <code>File<\/code> \ud074\ub798\uc2a4\uc5d0 <code>max_length<\/code> \ub9e4\uac1c\ubcc0\uc218\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        &#8211; **\ud30c\uc77c \ud615\uc2dd \uac80\uc99d**: \uc5c5\ub85c\ub4dc\ud560 \uc218 \uc788\ub294 \ud30c\uc77c \ud615\uc2dd\uc744 \uc81c\ud55c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. MIME \ud0c0\uc785\uc744 \ud655\uc778\ud558\uc5ec \ud5c8\uc6a9\ub41c \ud615\uc2dd\ub9cc \ucc98\ub9ac\ud558\ub3c4\ub85d \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n        &#8211; **\ubcf4\uc548**: \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub294 \ubcf4\uc548\uc5d0 \ub300\ud55c \ucde8\uc57d\uc810\uc744 \uac00\uc9c8 \uc218 \uc788\uc73c\ubbc0\ub85c, \ud30c\uc77c \uc774\ub984\uc744 \uac80\uc99d\ud558\uace0 \ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac \uc774\uc678\uc758 \uc704\uce58\uc5d0 \uc800\uc7a5\ud558\uc9c0 \uc54a\ub3c4\ub85d \uc8fc\uc758\ud574\uc57c \ud569\ub2c8\ub2e4.\n    <\/p>\n<h3>8. \uacb0\ub860<\/h3>\n<p>\n        FastAPI\ub294 \ud30c\uc77c \uc5c5\ub85c\ub4dc\ub97c \uac04\ud3b8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \uac15\uc88c\ub97c \ud1b5\ud574 \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ubcf8 \uac1c\ub150\uacfc \uc88b\uc740 \ucf54\ub4dc\uc758 \uc608\uc81c\ub97c \uc774\ud574\ud558\uc168\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<br \/>\n        \uc2e4\uc81c \ud504\ub85c\uc81d\ud2b8\uc5d0\uc11c \uc801\uc6a9\ud560 \ub54c \ub2e4\uc591\ud55c \ucd94\uac00 \uae30\ub2a5\uacfc \ubcf4\uc548 \uce21\uba74\uc5d0 \uc2e0\uacbd \uc4f0\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.\n    <\/p>\n<h3>9. \ucc38\uace0 \uc790\ub8cc<\/h3>\n<ul>\n<li><a href=\"https:\/\/fastapi.tiangolo.com\/\">FastAPI \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/ko\/docs\/Web\/HTTP\/Methods\/POST\">HTTP POST \uba54\uc11c\ub4dc\uc5d0 \ub300\ud55c \uc124\uba85<\/a><\/li>\n<li><a href=\"https:\/\/realpython.com\/fastapi-python-web-apis\/\">Real Python\uc758 FastAPI \ud29c\ud1a0\ub9ac\uc5bc<\/a><\/li>\n<li><a href=\"https:\/\/towardsdatascience.com\/building-an-api-with-fastapi-8405e9e22e94\">Towards Data Science\uc758 FastAPI API \uad6c\ucd95 \uac15\uc88c<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 FastAPI\ub294 Python\uc73c\ub85c \uac1c\ubc1c\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \uc27d\uac8c API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, FastAPI\ub294 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c \ubb38\uc11c\ud654\ub97c \uc9c0\uc6d0\ud558\ub294 \uae30\ub2a5 \ub4f1\uc73c\ub85c \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c FastAPI\ub294 Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 ASGI &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38542\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30&#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-38542","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\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \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\/38542\/\" \/>\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\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 FastAPI\ub294 Python\uc73c\ub85c \uac1c\ubc1c\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \uc27d\uac8c API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, FastAPI\ub294 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c \ubb38\uc11c\ud654\ub97c \uc9c0\uc6d0\ud558\ub294 \uae30\ub2a5 \ub4f1\uc73c\ub85c \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c FastAPI\ub294 Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 ASGI &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38542\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:18:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:02+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\/38542\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38542\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30\",\"datePublished\":\"2024-11-01T18:18:05+00:00\",\"dateModified\":\"2024-11-26T06:44:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38542\/\"},\"wordCount\":67,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38542\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38542\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:18:05+00:00\",\"dateModified\":\"2024-11-26T06:44:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38542\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38542\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38542\/#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\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30\"}]},{\"@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\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \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\/38542\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 FastAPI\ub294 Python\uc73c\ub85c \uac1c\ubc1c\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \uc27d\uac8c API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ud2b9\ud788, FastAPI\ub294 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c \ubb38\uc11c\ud654\ub97c \uc9c0\uc6d0\ud558\ub294 \uae30\ub2a5 \ub4f1\uc73c\ub85c \ub9e4\uc6b0 \uc720\uc6a9\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud30c\uc77c \uc5c5\ub85c\ub4dc \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c FastAPI\ub294 Python 3.6 \uc774\uc0c1\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 ASGI &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38542\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:18:05+00:00","article_modified_time":"2024-11-26T06:44:02+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\/38542\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38542\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30","datePublished":"2024-11-01T18:18:05+00:00","dateModified":"2024-11-26T06:44:02+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38542\/"},"wordCount":67,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38542\/","url":"https:\/\/atmokpo.com\/w\/38542\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:18:05+00:00","dateModified":"2024-11-26T06:44:02+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38542\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38542\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38542\/#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\uc5d0\uc11c \ud30c\uc77c \uc5c5\ub85c\ub4dc \ucc98\ub9ac\ud558\uae30"}]},{"@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\/38542","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=38542"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38542\/revisions"}],"predecessor-version":[{"id":38543,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38542\/revisions\/38543"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}