{"id":38404,"date":"2024-11-01T18:16:32","date_gmt":"2024-11-01T18:16:32","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38404"},"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-fastapi-%ec%95%a0%ed%94%8c%eb%a6%ac%ec%bc%80%ec%9d%b4%ec%85%98-%ea%b5%ac%ec%a1%b0%ed%99%94-%ec%9d%b4%eb%b2%a4%ed%8a%b8-%ed%94%8c%eb%9e%98%eb%84%88","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38404\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c"},"content":{"rendered":"<p><body><\/p>\n<p>FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud574 \uac04\ub2e8\ud55c \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \uacfc\uc815\uc744 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc740 FastAPI \uc11c\ubc84\uc758 \uad6c\uc870\ud654, RESTful API \uc124\uacc4, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9, \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \ub4f1\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<h2>FastAPI \uc18c\uac1c<\/h2>\n<p>FastAPI\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\u26a1 \uc2e0\uc18d\ud55c \uc131\ub2a5: Starlette\ub85c \uad6c\ucd95\ub41c \ube44\ub3d9\uae30 \uae30\ubc18\uc774\ubbc0\ub85c \ub9e4\uc6b0 \ube60\ub985\ub2c8\ub2e4.<\/li>\n<li>\ud83d\udd04 \uc790\ub3d9 \ubb38\uc11c\ud654: Swagger UI\uc640 ReDoc\uc744 \uc0ac\uc6a9\ud558\uc5ec API \ubb38\uc11c\ub97c \uc790\ub3d9 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud83d\udce6 \ud0c0\uc785 \ud78c\ud305: Python \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucf54\ub4dc \ud488\uc9c8\uacfc \uac00\ub3c5\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<li>\ud83d\udd12 \ubcf4\uc548 &amp; \uc778\uc99d: OAuth2\uc640 JWT\ub97c \ud1b5\ud574 \uac15\ub825\ud55c \uc778\uc99d\uacfc \uc778\uac00 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>\ud658\uacbd \uc124\uc815<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \uae30\ubcf8 \ud658\uacbd\uc744 \uc124\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uba3c\uc800, FastAPI\uc640 Uvicorn\uc744 \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<h2>\ud504\ub85c\uc81d\ud2b8 \uad6c\uc870\ud654<\/h2>\n<p>\uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ucf54\ub4dc\ub97c \uad6c\uc870\ud654\ud558\ub294 \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>\nevent_planner\/\n\u251c\u2500\u2500 app\/\n\u2502   \u251c\u2500\u2500 main.py\n\u2502   \u251c\u2500\u2500 models.py\n\u2502   \u251c\u2500\u2500 schemas.py\n\u2502   \u251c\u2500\u2500 database.py\n\u2502   \u2514\u2500\u2500 routes\/\n\u2502       \u2514\u2500\u2500 events.py\n\u2514\u2500\u2500 requirements.txt\n<\/code><\/pre>\n<h3>1. main.py<\/h3>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc5d4\ud2b8\ub9ac \ud3ec\uc778\ud2b8\uc778 <code>main.py<\/code> \ud30c\uc77c\uc5d0\uc11c\ub294 FastAPI \uc778\uc2a4\ud134\uc2a4\ub97c \uc0dd\uc131\ud558\uace0, \uc911\uac04\uc6e8\uc5b4 \ubc0f \ub77c\uc6b0\ud130\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import FastAPI\nfrom .routes import events\n\napp = FastAPI()\n\n@app.get(\"\/\")\nasync def read_root():\n    return {\"message\": \"\uc774\ubca4\ud2b8 \ud50c\ub798\ub108 API\uc5d0 \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4!\"}\n\napp.include_router(events.router)\n<\/code><\/pre>\n<h3>2. models.py<\/h3>\n<p><code>models.py<\/code> \ud30c\uc77c\uc740 SQLAlchemy \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc815\uc758\ud569\ub2c8\ub2e4. \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uc774\ubca4\ud2b8\uc5d0 \ub300\ud55c \uae30\ubcf8\uc801\uc778 \ubaa8\ub378\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from sqlalchemy import Column, Integer, String\nfrom .database import Base\n\nclass Event(Base):\n    __tablename__ = \"events\"\n    \n    id = Column(Integer, primary_key=True, index=True)\n    title = Column(String, index=True)\n    description = Column(String)\n    location = Column(String)\n    time = Column(String)\n<\/code><\/pre>\n<h3>3. schemas.py<\/h3>\n<p><code>schemas.py<\/code>\uc5d0\uc11c\ub294 Pydantic\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \uac80\uc99d \ubc0f \uc9c1\ub82c\ud654\ub97c \ud569\ub2c8\ub2e4. \uc774 \ud30c\uc77c\uc740 API\uc758 \uc694\uccad \ubc14\ub514\uc640 \uc751\ub2f5 \ubaa8\ub378\uc744 \uc815\uc758\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from pydantic import BaseModel\n\nclass EventBase(BaseModel):\n    title: str\n    description: str\n    location: str\n    time: str\n\nclass EventCreate(EventBase):\n    pass\n\nclass Event(EventBase):\n    id: int\n\n    class Config:\n        orm_mode = True\n<\/code><\/pre>\n<h3>4. database.py<\/h3>\n<p><code>database.py<\/code>\uc5d0\uc11c\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744 \uc124\uc815\ud558\uace0 \uc138\uc158\uc744 \uad00\ub9ac\ud569\ub2c8\ub2e4. SQLAlchemy\ub97c \ud1b5\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uc815\uc744 \uc9c4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from sqlalchemy import create_engine\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy.orm import sessionmaker\n\nSQLALCHEMY_DATABASE_URL = \"sqlite:\/\/\/.\/events.db\"\n\nengine = create_engine(SQLALCHEMY_DATABASE_URL, connect_args={\"check_same_thread\": False})\nSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)\n\nBase = declarative_base()\n<\/code><\/pre>\n<h3>5. routes\/events.py<\/h3>\n<p>\uc774\ubca4\ud2b8 \uad00\ub828 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ub2f4\ub2f9\ud558\ub294 <code>events.py<\/code> \ud30c\uc77c\uc5d0\uc11c\ub294 CRUD \uae30\ub2a5\uc744 \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import APIRouter, Depends, HTTPException\nfrom sqlalchemy.orm import Session\nfrom .. import models, schemas\nfrom ..database import SessionLocal\n\nrouter = APIRouter()\n\n# \uc758\uc874\uc131 \uc8fc\uc785\uc744 \uc704\ud55c \ud568\uc218\ndef get_db():\n    db = SessionLocal()\n    try:\n        yield db\n    finally:\n        db.close()\n\n@router.post(\"\/events\/\", response_model=schemas.Event)\nasync def create_event(event: schemas.EventCreate, db: Session = Depends(get_db)):\n    db_event = models.Event(**event.dict())\n    db.add(db_event)\n    db.commit()\n    db.refresh(db_event)\n    return db_event\n\n@router.get(\"\/events\/{event_id}\", response_model=schemas.Event)\nasync def read_event(event_id: int, db: Session = Depends(get_db)):\n    db_event = db.query(models.Event).filter(models.Event.id == event_id).first()\n    if db_event is None:\n        raise HTTPException(status_code=404, detail=\"\uc774\ubca4\ud2b8\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.\")\n    return db_event\n\n@router.get(\"\/events\/\", response_model=list[schemas.Event])\nasync def read_events(skip: int = 0, limit: int = 10, db: Session = Depends(get_db)):\n    events = db.query(models.Event).offset(skip).limit(limit).all()\n    return events\n<\/code><\/pre>\n<h2>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc2e4\ud589<\/h2>\n<p>\ubaa8\ub4e0 \uc124\uc815\uc774 \uc644\ub8cc\ub418\uba74 Uvicorn\uc744 \ud1b5\ud574 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>uvicorn app.main:app --reload<\/code><\/pre>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/127.0.0.1:8000\/docs<\/code>\ub97c \uc5f4\uc5b4 \uc790\ub3d9 \uc0dd\uc131\ub41c API \ubb38\uc11c\uc640 Swagger UI\ub97c \ud655\uc778\ud558\uba70 API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc124\uc815<\/h2>\n<p>SQLite \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0, \ub370\uc774\ud130\ubca0\uc774\uc2a4\ub97c \ucd08\uae30\ud654\ud558\uace0 \ud14c\uc774\ube14\uc744 \uc0dd\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c \ucf54\ub4dc\ub97c <code>main.py<\/code>\uc5d0 \ucd94\uac00\ud558\uc5ec \ucc98\uc74c \uc2e4\ud589\ud560 \ub54c \ud14c\uc774\ube14\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import FastAPI\nfrom .database import engine, Base\n\n# DB \ucd08\uae30\ud654\nBase.metadata.create_all(bind=engine)\n<\/code><\/pre>\n<h2>\uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec<\/h2>\n<p>\uc774\ubc88 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c\ub294 \uac04\ub2e8\ud55c \uc0ac\uc6a9\uc790 \uc778\uc99d\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 OAuth2\uc640 JWT\ub97c \uc9c0\uc6d0\ud558\ubbc0\ub85c, \uc774\ub97c \uc774\uc6a9\ud574 \ubcf4\ud638\ub41c \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc774\ubca4\ud2b8 \uc0ad\uc81c \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \uc778\uc99d\uc744 \ucd94\uac00\ud558\ub294 \ubc29\uc2dd\uc73c\ub85c \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm\nfrom fastapi import Depends\nfrom .. import models, schemas\nimport bcrypt\n\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\ndef fake_hash_password(password: str):\n    return \"fakehashed\" + password\n\n@router.post(\"\/token\")\nasync def login(form_data: OAuth2PasswordRequestForm = Depends()):\n    user = db.query(models.User).filter(models.User.username == form_data.username).first()\n    if not user or not bcrypt.checkpw(form_data.password.encode('utf-8'), user.hashed_password.encode('utf-8')):\n        raise HTTPException(status_code=400, detail=\"\uc798\ubabb\ub41c \uc0ac\uc6a9\uc790\uba85 \ub610\ub294 \ube44\ubc00\ubc88\ud638\")\n    return {\"access_token\": user.username, \"token_type\": \"bearer\"}\n<\/code><\/pre>\n<h2>\uacb0\ub860<\/h2>\n<p>\uc774\ub7ec\ud55c \ub2e8\uacc4\ub97c \ud1b5\ud574 FastAPI\uc640 SQLAlchemy\ub97c \ud65c\uc6a9\ud558\uc5ec \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uae30\ubcf8 \uad6c\uc870\ub97c \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4. \uc774 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \ub354 \ubc1c\uc804\ub41c \uae30\ub2a5\uc744 \ucd94\uac00\ud574\ubcf4\uba70 FastAPI\uc758 \ub2e4\uc591\ud55c \ud2b9\uc9d5\uc744 \uacbd\ud5d8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \ubb38\uc11c\ud654\uc640 \ube44\ub3d9\uae30 \ucc98\ub9ac\uac00 \ud6a8\uc728\uc801\uc774\uae30 \ub54c\ubb38\uc5d0, \ubcf5\uc7a1\ud55c \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc758 \ub3c4\uc804 \uacfc\uc81c\ub97c \uc27d\uac8c \uadf9\ubcf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ud504\ub85c\uc81d\ud2b8\ub97c \ud1b5\ud574 FastAPI\uc758 \uc2e4\uc81c \uc0ac\uc6a9 \uc0ac\ub840\ub97c \uc811\ud574\ubcf4\uae38 \ubc14\ub78d\ub2c8\ub2e4!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud574 \uac04\ub2e8\ud55c \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \uacfc\uc815\uc744 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc740 FastAPI \uc11c\ubc84\uc758 \uad6c\uc870\ud654, RESTful API \uc124\uacc4, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9, \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \ub4f1\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4. FastAPI \uc18c\uac1c FastAPI\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4: \u26a1 \uc2e0\uc18d\ud55c \uc131\ub2a5: Starlette\ub85c \uad6c\ucd95\ub41c \ube44\ub3d9\uae30 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38404\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c&#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-38404","post","type-post","status-publish","format-standard","hentry","category-fastapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \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\/38404\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud574 \uac04\ub2e8\ud55c \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \uacfc\uc815\uc744 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc740 FastAPI \uc11c\ubc84\uc758 \uad6c\uc870\ud654, RESTful API \uc124\uacc4, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9, \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \ub4f1\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4. FastAPI \uc18c\uac1c FastAPI\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4: \u26a1 \uc2e0\uc18d\ud55c \uc131\ub2a5: Starlette\ub85c \uad6c\ucd95\ub41c \ube44\ub3d9\uae30 &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38404\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:16:32+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\/38404\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38404\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\",\"datePublished\":\"2024-11-01T18:16:32+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38404\/\"},\"wordCount\":57,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38404\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38404\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:16:32+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38404\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38404\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38404\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \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\/38404\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0 \ud6a8\uc728\uc801\uc778 API\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud574 \uac04\ub2e8\ud55c \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uac1c\ubc1c\ud558\ub294 \uacfc\uc815\uc744 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uacfc\uc815\uc740 FastAPI \uc11c\ubc84\uc758 \uad6c\uc870\ud654, RESTful API \uc124\uacc4, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9, \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec \ub4f1\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4. FastAPI \uc18c\uac1c FastAPI\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4: \u26a1 \uc2e0\uc18d\ud55c \uc131\ub2a5: Starlette\ub85c \uad6c\ucd95\ub41c \ube44\ub3d9\uae30 &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\"","og_url":"https:\/\/atmokpo.com\/w\/38404\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:16:32+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\/38404\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38404\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c","datePublished":"2024-11-01T18:16:32+00:00","dateModified":"2024-11-26T06:44:25+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38404\/"},"wordCount":57,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38404\/","url":"https:\/\/atmokpo.com\/w\/38404\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:16:32+00:00","dateModified":"2024-11-26T06:44:25+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38404\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38404\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38404\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uad6c\uc870\ud654, \uc774\ubca4\ud2b8 \ud50c\ub798\ub108 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c"}]},{"@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\/38404","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=38404"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38404\/revisions"}],"predecessor-version":[{"id":38405,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38404\/revisions\/38405"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}