{"id":38406,"date":"2024-11-01T18:16:33","date_gmt":"2024-11-01T18:16:33","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38406"},"modified":"2024-11-26T06:44:25","modified_gmt":"2024-11-26T06:44:25","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%eb%9d%bc%ec%9a%b0%ed%8a%b8-%eb%b3%80%ea%b2%bd","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38406\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd"},"content":{"rendered":"<p><body><\/p>\n<article>\n<header>\n<p>\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c<\/p>\n<\/header>\n<section>\n<h2>\uc18c\uac1c<\/h2>\n<p>\n                FastAPI\ub294 \ud604\ub300\uc758 \uc6f9 API\ub97c \ube60\ub974\uace0 \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ud30c\uc6cc\ud480\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4.<br \/>\n                Python 3.6 \uc774\uc0c1\uc744 \uc9c0\uc6d0\ud558\uba70, \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131, \ub370\uc774\ud130 \uac80\uc99d, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<br \/>\n                \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud574 \ub85c\uadf8\uc778 API\ub97c \ub9cc\ub4e4\uace0, \uc774\ud6c4\uc5d0 \uc774\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<br \/>\n                \uc6b0\ub9ac\ub294 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1\uc744 \uad6c\ud604\ud55c \ud6c4, \uc774\ub97c \uc548\uc804\ud558\uac8c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \ub2e8\uacc4\ubcc4\ub85c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n            <\/p>\n<\/section>\n<section>\n<h2>FastAPI \uc2dc\uc791\ud558\uae30<\/h2>\n<p>FastAPI\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574\uc11c\ub294 Python\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \ud130\ubbf8\ub110\uc5d0 \uc785\ub825\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<p>\uc124\uce58\uac00 \uc644\ub8cc\ub418\uba74, \uc544\ub798\uc640 \uac19\uc774 \uae30\ubcf8\uc801\uc778 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\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<\/code><\/pre>\n<p>\uc774 \ucf54\ub4dc\ub97c <code>main.py<\/code>\ub77c\ub294 \ud30c\uc77c\uc5d0 \uc800\uc7a5\ud558\uace0, \uc544\ub798\uc758 \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \uc11c\ubc84\ub97c \uc2e4\ud589\ud574\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<\/section>\n<section>\n<h2>\ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790\uac00 \uc774\uba54\uc77c\uacfc \ube44\ubc00\ubc88\ud638\ub97c \ud1b5\ud574 \ub85c\uadf8\uc778\ud560 \uc218 \uc788\ub294 API \ub77c\uc6b0\ud2b8\ub97c \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800, \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\uae30 \uc704\ud55c \uac04\ub2e8\ud55c \ub370\uc774\ud130 \ubaa8\ub378\uc744 \ub9cc\ub4e4\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from pydantic import BaseModel\n\nclass User(BaseModel):\n    email: str\n    password: str\n<\/code><\/pre>\n<p>\ub2e4\uc74c\uc73c\ub85c, \ub85c\uadf8\uc778 API\ub97c \ucd94\uac00\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>@app.post(\"\/login\")\nasync def login(user: User):\n    # \uc77c\ubc18\uc801\uc73c\ub85c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc0c1\ud638\uc791\uc6a9\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.\n    fake_db = {\"user@example.com\": \"hashed_password\"}\n    \n    if user.email in fake_db and user.password == fake_db[user.email]:\n        return {\"message\": \"\ub85c\uadf8\uc778 \uc131\uacf5!\"}\n    return {\"message\": \"\uc798\ubabb\ub41c \uc774\uba54\uc77c \ub610\ub294 \ube44\ubc00\ubc88\ud638\uc785\ub2c8\ub2e4.\"}\n<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 \uae30\ubcf8\uc801\uc778 \ub85c\uadf8\uc778 \uac80\uc99d\uc744 \uc218\ud589\ud558\uace0, \uc131\uacf5 \uc5ec\ubd80\uc5d0 \ub530\ub77c \ub2e4\ub978 \uba54\uc2dc\uc9c0\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\ubcf4\uc548 \uac15\ud654<\/h2>\n<p>\ub85c\uadf8\uc778 API\uc758 \ubcf4\uc548\uc744 \uac15\ud654\ud558\uae30 \uc704\ud574 \ube44\ubc00\ubc88\ud638\ub97c \ud574\uc2f1\ud558\uc5ec \uc800\uc7a5\ud558\uba74 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ubcf4\ub2e4 \uc548\uc804\ud558\uac8c \ubcf4\ud638\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ube44\ubc00\ubc88\ud638 \ud574\uc2f1\uc5d0\ub294 <code>bcrypt<\/code> \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub97c \ud1b5\ud574 \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install bcrypt<\/code><\/pre>\n<p>\uadf8\ub9ac\uace0 \uc544\ub798\uc640 \uac19\uc774 \ube44\ubc00\ubc88\ud638\ub97c \ud574\uc2f1\ud558\uace0 \ud655\uc778\ud558\ub294 \ud568\uc218\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>import bcrypt\n\ndef hash_password(password: str) -&gt; str:\n    return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')\n\ndef verify_password(plain_password: str, hashed_password: str) -&gt; bool:\n    return bcrypt.checkpw(plain_password.encode('utf-8'), hashed_password.encode('utf-8'))\n<\/code><\/pre>\n<p>\ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8\uc5d0\uc11c\ub294 \uc774\uc81c \ud574\uc2dc\ub41c \ube44\ubc00\ubc88\ud638\ub97c \uc0ac\uc6a9\ud558\uc5ec \ube44\ubc00\ubc88\ud638 \ud655\uc778\uc744 \uc218\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>@app.post(\"\/login\")\nasync def login(user: User):\n    fake_db = {\"user@example.com\": hash_password(\"securepassword\")}\n    \n    if user.email in fake_db and verify_password(user.password, fake_db[user.email]):\n        return {\"message\": \"\ub85c\uadf8\uc778 \uc131\uacf5!\"}\n    return {\"message\": \"\uc798\ubabb\ub41c \uc774\uba54\uc77c \ub610\ub294 \ube44\ubc00\ubc88\ud638\uc785\ub2c8\ub2e4.\"}\n<\/code><\/pre>\n<\/section>\n<section>\n<h2>\ub77c\uc6b0\ud2b8 \ubcc0\uacbd\ud558\uae30<\/h2>\n<p>\uc774\uc81c \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 JWT(JSON Web Token)\ub97c \ud1b5\ud574 \ucc98\ub9ac\ud558\ub3c4\ub85d \ubcc0\uacbd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. JWT\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc548\uc804\ud55c \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud574\uc8fc\ub294 \ud1a0\ud070 \uae30\ubc18 \uc778\uc99d \uc2dc\uc2a4\ud15c\uc785\ub2c8\ub2e4.<\/p>\n<p>\uc6b0\uc120, \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc778 <code>pyjwt<\/code>\ub97c \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install pyjwt<\/code><\/pre>\n<p>JWT \ud1a0\ud070\uc744 \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\ub294 \uc720\ud2f8\ub9ac\ud2f0 \ud568\uc218\ub97c \ub9cc\ub4ed\ub2c8\ub2e4:<\/p>\n<pre><code>import jwt\nfrom datetime import datetime, timedelta\n\nSECRET_KEY = \"your_secret_key\"  # \uc548\uc804\ud558\uac8c \ubcf4\uad00\ud574\uc57c \ud569\ub2c8\ub2e4.\nALGORITHM = \"HS256\"\n\ndef create_access_token(data: dict, expires_delta: timedelta = None):\n    to_encode = data.copy()\n    if expires_delta:\n        expire = datetime.utcnow() + expires_delta\n    else:\n        expire = datetime.utcnow() + timedelta(minutes=15)\n    to_encode.update({\"exp\": expire})\n    return jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)\n\ndef verify_token(token: str):\n    try:\n        payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])\n        return payload\n    except jwt.PyJWTError:\n        return None\n<\/code><\/pre>\n<p>\uc774\uc81c \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8\ub97c \ubcc0\uacbd\ud558\uc5ec JWT\ub97c \ubc18\ud658\ud558\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>@app.post(\"\/login\")\nasync def login(user: User):\n    fake_db = {\"user@example.com\": hash_password(\"securepassword\")}\n    \n    if user.email in fake_db and verify_password(user.password, fake_db[user.email]):\n        access_token = create_access_token(data={\"sub\": user.email})\n        return {\"access_token\": access_token, \"token_type\": \"bearer\"}\n    return {\"message\": \"\uc798\ubabb\ub41c \uc774\uba54\uc77c \ub610\ub294 \ube44\ubc00\ubc88\ud638\uc785\ub2c8\ub2e4.\"}\n<\/code><\/pre>\n<\/section>\n<section>\n<h2>\ud1a0\ud070 \uc778\uc99d\uc744 \uc704\ud55c \ubcf4\ud638 \ub77c\uc6b0\ud2b8<\/h2>\n<p>\uc774\uc81c JWT\ub97c \uc0ac\uc6a9\ud55c \ubcf4\ud638 \ub77c\uc6b0\ud2b8\ub97c \ucd94\uac00\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778 \ud6c4 \ubc1c\uae09\ubc1b\uc740 \ud1a0\ud070\uc744 \ud1b5\ud574 \uc811\uadfc\ud560 \uc218 \uc788\ub294 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ub9cc\ub4e4\uc5b4\ubcfc \uac83\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer\n\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\nasync def get_current_user(token: str = Depends(oauth2_scheme)):\n    payload = verify_token(token)\n    if payload is None:\n        raise HTTPException(\n            status_code=status.HTTP_401_UNAUTHORIZED,\n            detail=\"\uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \ud1a0\ud070\uc785\ub2c8\ub2e4.\",\n            headers={\"WWW-Authenticate\": \"Bearer\"},\n        )\n    return payload\n\n@app.get(\"\/users\/me\")\nasync def read_users_me(current_user: dict = Depends(get_current_user)):\n    return current_user\n<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 \uc0ac\uc6a9\uc790\uac00 JWT\ub97c \ud1b5\ud574 \uc778\uc99d\ub41c \uacbd\uc6b0\uc5d0\ub9cc \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ubc18\ud658\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\uacb0\ub860 \ubc0f \uc694\uc57d<\/h2>\n<p>\uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud558\uc5ec \ub85c\uadf8\uc778 API\ub97c \uad6c\ud604\ud558\uace0, \uc774\ub97c JWT\ub97c \ud1b5\ud574 \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc744 \ub2e8\uacc4\ubcc4\ub85c \uc124\uba85\ud588\uc2b5\ub2c8\ub2e4. \ubcf4\uc548\uc774 \uc911\uc694\ud55c \ud604\ub300\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc740 \ud544\uc218\uc801\uc774\uba70, FastAPI\ub294 \uc774\ub97c \uac04\ud3b8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub2e4\uc74c \ub2e8\uacc4\ub85c\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \uc5f0\ub3d9, \uc0ac\uc6a9\uc790 \ub4f1\ub85d \ub4f1\uc758 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uc5ec \ubcf4\ub2e4 \ubcf5\uc7a1\ud55c \uc2dc\uc2a4\ud15c\uc744 \uad6c\ucd95\ud558\ub294 \uac83\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>FastAPI\ub294 \uc9c1\uad00\uc801\uc774\uace0 \uac15\ub825\ud55c API \uac1c\ubc1c\uc744 \uac00\ub2a5\ud558\uac8c \ud558\uba70, \ub2e4\uc591\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640\uc758 \ud1b5\ud569\uc73c\ub85c \uc774\ub97c \ub354\uc6b1 \ud655\uc7a5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc744 \ud1b5\ud574 FastAPI\uc758 \uae30\ub2a5\uacfc JWT\ub97c \ud65c\uc6a9\ud55c \uc778\uc99d \ubc29\ubc95\uc5d0 \ub300\ud55c \uc774\ud574\uac00 \uae4a\uc5b4\uc9c0\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<\/section>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc18c\uac1c FastAPI\ub294 \ud604\ub300\uc758 \uc6f9 API\ub97c \ube60\ub974\uace0 \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ud30c\uc6cc\ud480\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python 3.6 \uc774\uc0c1\uc744 \uc9c0\uc6d0\ud558\uba70, \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131, \ub370\uc774\ud130 \uac80\uc99d, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud574 \ub85c\uadf8\uc778 API\ub97c \ub9cc\ub4e4\uace0, \uc774\ud6c4\uc5d0 \uc774\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1\uc744 \uad6c\ud604\ud55c \ud6c4, \uc774\ub97c \uc548\uc804\ud558\uac8c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38406\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd&#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-38406","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, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \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\/38406\/\" \/>\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, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc18c\uac1c FastAPI\ub294 \ud604\ub300\uc758 \uc6f9 API\ub97c \ube60\ub974\uace0 \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ud30c\uc6cc\ud480\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python 3.6 \uc774\uc0c1\uc744 \uc9c0\uc6d0\ud558\uba70, \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131, \ub370\uc774\ud130 \uac80\uc99d, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud574 \ub85c\uadf8\uc778 API\ub97c \ub9cc\ub4e4\uace0, \uc774\ud6c4\uc5d0 \uc774\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1\uc744 \uad6c\ud604\ud55c \ud6c4, \uc774\ub97c \uc548\uc804\ud558\uac8c &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38406\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:16:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:25+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\/38406\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38406\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd\",\"datePublished\":\"2024-11-01T18:16:33+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38406\/\"},\"wordCount\":33,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38406\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38406\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:16:33+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38406\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38406\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38406\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd\"}]},{\"@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, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \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\/38406\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 1\uc77c \uc18c\uac1c FastAPI\ub294 \ud604\ub300\uc758 \uc6f9 API\ub97c \ube60\ub974\uace0 \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ud30c\uc6cc\ud480\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python 3.6 \uc774\uc0c1\uc744 \uc9c0\uc6d0\ud558\uba70, \uc790\ub3d9 \ubb38\uc11c \uc0dd\uc131, \ub370\uc774\ud130 \uac80\uc99d, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud574 \ub85c\uadf8\uc778 API\ub97c \ub9cc\ub4e4\uace0, \uc774\ud6c4\uc5d0 \uc774\ub97c \ubcc0\uacbd\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uae30\ubcf8\uc801\uc778 \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1\uc744 \uad6c\ud604\ud55c \ud6c4, \uc774\ub97c \uc548\uc804\ud558\uac8c &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd\"","og_url":"https:\/\/atmokpo.com\/w\/38406\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:16:33+00:00","article_modified_time":"2024-11-26T06:44:25+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\/38406\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38406\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd","datePublished":"2024-11-01T18:16:33+00:00","dateModified":"2024-11-26T06:44:25+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38406\/"},"wordCount":33,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38406\/","url":"https:\/\/atmokpo.com\/w\/38406\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:16:33+00:00","dateModified":"2024-11-26T06:44:25+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38406\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38406\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38406\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub85c\uadf8\uc778 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd"}]},{"@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\/38406","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=38406"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38406\/revisions"}],"predecessor-version":[{"id":38407,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38406\/revisions\/38407"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}