{"id":38510,"date":"2024-11-01T18:17:43","date_gmt":"2024-11-01T18:17:43","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38510"},"modified":"2024-11-26T06:44:07","modified_gmt":"2024-11-26T06:44:07","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%ec%82%ac%ec%9a%a9%ec%9e%90-%ec%9d%b8%ec%a6%9d-%eb%b0%8f-%ea%b6%8c%ed%95%9c-%eb%b6%80%ec%97%ac-%ea%b8%b0%eb%8a%a5-%ec%b6%94%ea%b0%80%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38510\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30"},"content":{"rendered":"<article>\n<header>\n<p>\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 10\uc77c<\/p>\n<\/header>\n<section>\n<h2>\uc18c\uac1c<\/h2>\n<p>FastAPI\ub294 Python\uc73c\ub85c \uad6c\ucd95\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uacfc \ub370\uc774\ud130 \uac80\uc99d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>1. \ud658\uacbd \uc124\uc815<\/h2>\n<p>FastAPI\uc640 \uad00\ub828 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 Python\uc758 \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790\uc778 pip\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn python-jose passlib[bcrypt]<\/code><\/pre>\n<p>\uac01 \ub77c\uc774\ube0c\ub7ec\ub9ac\uc758 \uc5ed\ud560\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>fastapi<\/strong>: \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c<\/li>\n<li><strong>uvicorn<\/strong>: ASGI \uc11c\ubc84, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\uae30 \uc704\ud574 \uc0ac\uc6a9<\/li>\n<li><strong>python-jose<\/strong>: JWT(Json Web Token) \uc778\ucf54\ub529 \ubc0f \ub514\ucf54\ub529\uc744 \uc704\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac<\/li>\n<li><strong>passlib<\/strong>: \ube44\ubc00\ubc88\ud638 \ud574\uc2f1\uc744 \uc704\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>2. FastAPI \uae30\ubcf8 \uad6c\uc870<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uae30\ubcf8 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"\/\")\ndef read_root():\n    return {\"Hello\": \"World\"}<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub97c \uc2e4\ud589\ud558\uba74 \uae30\ubcf8\uc801\uc778 FastAPI \uc11c\ubc84\uac00 \uc0dd\uc131\ub429\ub2c8\ub2e4. \uc774\ub97c \ubc14\ud0d5\uc73c\ub85c \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \ucd94\uac00\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>3. \uc0ac\uc6a9\uc790 \ubaa8\ub378 \uc815\uc758<\/h2>\n<p>\uc0ac\uc6a9\uc790 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uae30 \uc704\ud574 Pydantic\uc744 \uc0ac\uc6a9\ud560 \uac83\uc785\ub2c8\ub2e4. Pydantic\uc740 \ub370\uc774\ud130 \uac80\uc99d\uc744 \uc790\ub3d9\uc73c\ub85c \ucc98\ub9ac\ud574\uc8fc\ub294 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub85c, FastAPI\uc640 \uc798 \uc5f0\ub3d9\ub429\ub2c8\ub2e4.<\/p>\n<pre><code>from pydantic import BaseModel, EmailStr\nfrom typing import Optional\nfrom passlib.context import CryptContext\n\nclass User(BaseModel):\n    username: str\n    email: EmailStr\n    full_name: Optional[str] = None\n    disabled: Optional[bool] = None\n\nclass UserInDB(User):\n    hashed_password: str<\/code><\/pre>\n<p>\uc704\uc758 User \ubaa8\ub378\uc740 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc815\uc758\ud558\uba70, UserInDB\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ub418\uae30 \uc704\ud574 \ud574\uc2f1\ub41c \ube44\ubc00\ubc88\ud638\ub97c \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>4. \ube44\ubc00\ubc88\ud638 \ud574\uc2f1<\/h2>\n<p>\ube44\ubc00\ubc88\ud638\ub97c \uc548\uc804\ud558\uac8c \uc800\uc7a5\ud558\uae30 \uc704\ud574 \ud574\uc2f1\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4. Passlib \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ube44\ubc00\ubc88\ud638\ub97c \ud574\uc2f1\ud558\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>pwd_context = CryptContext(schemes=[\"bcrypt\"], deprecated=\"auto\")\n\ndef hash_password(password: str) -&gt; str:\n    return pwd_context.hash(password)<\/code><\/pre>\n<p>\ud574\uc2f1\ub41c \ube44\ubc00\ubc88\ud638\ub294 \uc0ac\uc6a9\uc790\ub97c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc800\uc7a5\ud560 \ub54c \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>5. \uc0ac\uc6a9\uc790 \ub4f1\ub85d API<\/h2>\n<p>\uc0ac\uc6a9\uc790 \ub4f1\ub85d\uc744 \ucc98\ub9ac\ud560 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \uc815\ubcf4\ub97c \ud1b5\ud574 \uc0c8\ub85c\uc6b4 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud558\uace0, \ube44\ubc00\ubc88\ud638\ub294 \ud574\uc2f1\ud558\uc5ec \uc800\uc7a5\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import HTTPException, Depends\nfrom fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm\n\nusers_db = {}\n\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\n@app.post(\"\/register\/\")\ndef register(user: User):\n    if user.username in users_db:\n        raise HTTPException(status_code=400, detail=\"Username already registered\")\n    hashed_password = hash_password(user.password)\n    users_db[user.username] = UserInDB(\n        username=user.username, email=user.email, full_name=user.full_name, hashed_password=hashed_password\n    )\n    return {\"msg\": \"User registered successfully!\"}<\/code><\/pre>\n<\/section>\n<section>\n<h2>6. JWT \uc0dd\uc131 \ubc0f \uac80\uc99d<\/h2>\n<p>JWT(Json Web Token)\ub97c \uc774\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec\ub97c \uc218\ud589\ud569\ub2c8\ub2e4. \ub2e4\uc74c \ucf54\ub4dc\uc5d0\uc11c\ub294 JWT\ub97c \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4:<\/p>\n<pre><code>from datetime import datetime, timedelta\nfrom jose import JWTError, jwt\n\nSECRET_KEY = \"mysecretkey\"\nALGORITHM = \"HS256\"\nACCESS_TOKEN_EXPIRE_MINUTES = 30\n\ndef create_access_token(data: dict, expires_delta: Optional[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=ACCESS_TOKEN_EXPIRE_MINUTES)\n    to_encode.update({\"exp\": expire})\n    encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)\n    return encoded_jwt\n\ndef verify_token(token: str):\n    credentials_exception = HTTPException(status_code=401, detail=\"Could not validate credentials\")\n    try:\n        payload = jwt.decode(token, SECRET_KEY, algorithms=[ALGORITHM])\n        username: str = payload.get(\"sub\")\n        if username is None:\n            raise credentials_exception\n    except JWTError:\n        raise credentials_exception\n    return username<\/code><\/pre>\n<\/section>\n<section>\n<h2>7. \ub85c\uadf8\uc778 API<\/h2>\n<p>\uc0ac\uc6a9\uc790\uac00 \ub85c\uadf8\uc778\ud560 \uc218 \uc788\ub294 API\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub294 \uc0ac\uc6a9\uc790\uba85\uacfc \ube44\ubc00\ubc88\ud638\ub97c \uc785\ub825\ud558\uc5ec JWT\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>@app.post(\"\/token\")\ndef login(form_data: OAuth2PasswordRequestForm = Depends()):\n    user = users_db.get(form_data.username)\n    if not user or not pwd_context.verify(form_data.password, user.hashed_password):\n        raise HTTPException(status_code=400, detail=\"Incorrect username or password\")\n    access_token = create_access_token(data={\"sub\": user.username})\n    return {\"access_token\": access_token, \"token_type\": \"bearer\"}<\/code><\/pre>\n<\/section>\n<section>\n<h2>8. \uc778\uc99d\uc774 \ud544\uc694\ud55c API \uc5d4\ub4dc\ud3ec\uc778\ud2b8<\/h2>\n<p>\uc778\uc99d\uc774 \ud544\uc694\ud55c \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud569\ub2c8\ub2e4. OAuth2PasswordBearer \ub97c \uc0ac\uc6a9\ud558\uc5ec API\uc5d0 \uc778\uc99d \uae30\ub2a5\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import Security\n\n@app.get(\"\/users\/me\", response_model=User)\ndef read_users_me(token: str = Depends(oauth2_scheme)):\n    username = verify_token(token)\n    user = users_db.get(username)\n    if user is None:\n        raise HTTPException(status_code=404, detail=\"User not found\")\n    return user<\/code><\/pre>\n<\/section>\n<section>\n<h2>9. \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30<\/h2>\n<p>\uc0ac\uc6a9\uc790 \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \ud2b9\uc815 \uc0ac\uc6a9\uc790\uc5d0\uac8c\ub9cc \uc811\uadfc \ud5c8\uc6a9\ud558\ub294 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>def get_current_active_user(token: str = Depends(oauth2_scheme)):\n    username = verify_token(token)\n    user = users_db.get(username)\n    if user is None or user.disabled:\n        raise HTTPException(status_code=400, detail=\"Inactive user\")\n    return user\n\n@app.get(\"\/users\/me\/role\")\ndef read_user_role(current_user: User = Depends(get_current_active_user)):\n    return {\"username\": current_user.username, \"role\": \"admin\"}<\/code><\/pre>\n<\/section>\n<section>\n<h2>10. FastAPI \uc11c\ubc84 \uc2e4\ud589\ud558\uae30<\/h2>\n<p>FastAPI \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574 uvicorn\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \uc11c\ubc84\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<p>\uc11c\ubc84\uac00 \uc2e4\ud589\ub418\uba74, \/docs \uacbd\ub85c\ub85c \uc811\uc18d\ud558\uc5ec Swagger UI\ub97c \ud1b5\ud574 API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>\uacb0\ub860<\/h2>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \uc131\uacf5\uc801\uc73c\ub85c \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \uac15\ub825\ud55c \uae30\ub2a5\uc744 \ud1b5\ud574 \ud6a8\uc728\uc801\uc778 \uc6f9 API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\uc73c\uba70, JWT\ub97c \ud65c\uc6a9\ud55c \uc778\uc99d \ubc29\uc2dd\uc740 \ubcf4\uc548\uacfc \uc131\ub2a5 \ubaa8\ub450\ub97c \uace0\ub824\ud560 \uc218 \uc788\ub294 \uc88b\uc740 \uc120\ud0dd\uc785\ub2c8\ub2e4. \uc55e\uc73c\ub85c FastAPI\uc758 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ud0d0\uc0c9\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 10\uc77c \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uad6c\ucd95\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uacfc \ub370\uc774\ud130 \uac80\uc99d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud658\uacbd \uc124\uc815 FastAPI\uc640 \uad00\ub828 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 Python\uc758 \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790\uc778 pip\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38510\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\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-38510","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, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\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\/38510\/\" \/>\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, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 10\uc77c \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uad6c\ucd95\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uacfc \ub370\uc774\ud130 \uac80\uc99d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud658\uacbd \uc124\uc815 FastAPI\uc640 \uad00\ub828 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 Python\uc758 \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790\uc778 pip\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38510\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:07+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\/38510\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38510\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30\",\"datePublished\":\"2024-11-01T18:17:43+00:00\",\"dateModified\":\"2024-11-26T06:44:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38510\/\"},\"wordCount\":55,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38510\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38510\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:43+00:00\",\"dateModified\":\"2024-11-26T06:44:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38510\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38510\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38510\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\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, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\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\/38510\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uc791\uc131\uc77c: 2023\ub144 10\uc6d4 10\uc77c \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uad6c\ucd95\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uacfc \ub370\uc774\ud130 \uac80\uc99d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. 1. \ud658\uacbd \uc124\uc815 FastAPI\uc640 \uad00\ub828 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 Python\uc758 \ud328\ud0a4\uc9c0 \uad00\ub9ac\uc790\uc778 pip\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/38510\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:43+00:00","article_modified_time":"2024-11-26T06:44:07+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\/38510\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38510\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30","datePublished":"2024-11-01T18:17:43+00:00","dateModified":"2024-11-26T06:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38510\/"},"wordCount":55,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38510\/","url":"https:\/\/atmokpo.com\/w\/38510\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:43+00:00","dateModified":"2024-11-26T06:44:07+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38510\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38510\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38510\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc0ac\uc6a9\uc790 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \uae30\ub2a5 \ucd94\uac00\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\/38510","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=38510"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38510\/revisions"}],"predecessor-version":[{"id":38511,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38510\/revisions\/38511"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}