{"id":38522,"date":"2024-11-01T18:17:50","date_gmt":"2024-11-01T18:17:50","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38522"},"modified":"2024-11-26T06:44:05","modified_gmt":"2024-11-26T06:44:05","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%eb%b9%84%eb%8f%99%ea%b8%b0-%eb%8c%80%ec%9d%91-db-%ec%a0%91%ec%86%8d-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38522\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218"},"content":{"rendered":"<p><body><\/p>\n<p>FastAPI\ub294 Python\uc758 \ube60\ub974\uace0 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud1b5\ud574 \ub192\uc740 \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \ud568\uc218\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0, \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \ubab8\uc18c \uacbd\ud5d8\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc740 \ub300\uaddc\ubaa8 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub098 \ub192\uc740 \ub3d9\uc2dc\uc131\uc774 \uc694\uad6c\ub418\ub294 API \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \ub54c \ud2b9\ud788 \uac15\ub825\ud55c \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>1. \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc774\ub780?<\/h2>\n<p>\ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \uc5ec\ub7ec \uc791\uc5c5\uc744 \ub3d9\uc2dc\uc5d0 \ucc98\ub9ac\ud560 \uc218 \uc788\uac8c \ud574\uc8fc\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ubaa8\ub378\uc785\ub2c8\ub2e4. \uae30\uc874\uc758 \ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub294 \uc791\uc5c5 \ud558\ub098\uac00 \ub05d\ub0a0 \ub54c\uae4c\uc9c0 \ub2e4\uc74c \uc791\uc5c5\uc744 \uae30\ub2e4\ub824\uc57c \ud588\uc9c0\ub9cc, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc5d0\uc11c\ub294 \ud558\ub098\uc758 \uc791\uc5c5\uc774 \uc9c4\ud589\ub418\ub294 \ub3d9\uc548 \ub2e4\ub978 \uc791\uc5c5\uc744 \ub3d9\uc2dc\uc5d0 \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ud2b9\ud788 I\/O \ubc14\uc6b4\ub4dc \uc791\uc5c5\uc5d0\uc11c \ud070 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h3>1.1 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc7a5\uc810<\/h3>\n<ul>\n<li><strong>\uc131\ub2a5 \uc99d\uac00:<\/strong> \uc5ec\ub7ec I\/O \uc791\uc5c5\uc744 \ub3d9\uc2dc\uc5d0 \ucc98\ub9ac\ud558\uc5ec \ub300\uae30 \uc2dc\uac04\uc744 \uc904\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ub9ac\uc18c\uc2a4 \ud6a8\uc728\uc131:<\/strong> CPU \uc0ac\uc6a9\ub960\uc744 \ucd5c\uc801\ud654\ud558\uace0, \ub0ae\uc740 \uc790\uc6d0\uc73c\ub85c \ub9ce\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc751\ub2f5\uc131 \ud5a5\uc0c1:<\/strong> \uc11c\ubc84\uac00 \ud2b9\uc815 \uc791\uc5c5\uc744 \uae30\ub2e4\ub9ac\ub294 \uc2dc\uac04\uc774 \uc904\uc5b4\ub4e4\uc5b4 \uc0ac\uc6a9\uc790\uac00 \ub354 \ube60\ub974\uac8c \uc751\ub2f5\uc744 \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. FastAPI \uc18c\uac1c<\/h2>\n<p>FastAPI\ub294 Python 3.6+\uc744 \uc704\ud55c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0, \uc9c1\uad00\uc801\uc774\uba70, \uc790\ub3d9 \uc644\uc131\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. FastAPI\uc758 \uac00\uc7a5 \ud070 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 ASGI(Asynchronous Server Gateway Interface)\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ucc98\ub9ac\ub97c \uc9c0\uc6d0\ud55c\ub2e4\ub294 \uac83\uc785\ub2c8\ub2e4. \uc774\ub294 \uc6f9 \uc18c\ucf13\uc774\ub098 \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uac19\uc740 \ube44\ub3d9\uae30 I\/O\ub97c \ucc98\ub9ac\ud558\ub294 \ub370 \ub9e4\uc6b0 \uc720\ub9ac\ud569\ub2c8\ub2e4.<\/p>\n<p>FastAPI\ub294 \ub610\ud55c Pydantic\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\uace0 JSON \uc9c1\ub82c\ud654\ub97c \uc81c\uacf5\ud558\uc5ec \uac1c\ubc1c\uc790\uac00 \ubcf4\ub2e4 \uac04\ud3b8\ud558\uac8c API\ub97c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3d5\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>3. \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uadfc \ubc29\ubc95<\/h2>\n<p>\ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc811\uadfc\ud558\uae30 \uc704\ud574\uc11c\ub294 \ube44\ub3d9\uae30 \uc9c0\uc6d0\uc744 \uc704\ud55c ORM(Object Relational Mapping) \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 <strong>SQLAlchemy<\/strong>\uc640 <strong>Databases<\/strong> \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc870\ud569\ud558\uc5ec \ube44\ub3d9\uae30 DB \uc811\uc18d \ud568\uc218\ub97c \uad6c\ud604\ud558\ub294 \uc608\uc81c\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1 \ud544\uc694\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac \uc124\uce58<\/h3>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2dc\uc791\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \uba85\ub839\uc5b4\ub97c \ud130\ubbf8\ub110\uc5d0 \uc785\ub825\ud558\uc5ec \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn sqlalchemy databases asyncpg<\/code><\/pre>\n<p>\uc704 \uba85\ub839\uc5b4\ub294 FastAPI \ud504\ub808\uc784\uc6cc\ud06c, ASGI \uc11c\ubc84(Uvicorn), SQLAlchemy ORM, Databases \ube44\ub3d9\uae30 \ub77c\uc774\ube0c\ub7ec\ub9ac, PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ub4dc\ub77c\uc774\ubc84\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.2 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378 \uc124\uc815<\/h3>\n<p>\uc774\uc81c \ube44\ub3d9\uae30 \uc791\uc5c5\uc744 \uc218\ud589\ud560 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uaca0\uc2b5\ub2c8\ub2e4. SQLAlchemy\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ubaa8\ub378\uc744 \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from sqlalchemy import Column, Integer, String, create_engine\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy.orm import sessionmaker\n\nBase = declarative_base()\n\nclass User(Base):\n    __tablename__ = 'users'\n    \n    id = Column(Integer, primary_key=True, index=True)\n    username = Column(String, unique=True, index=True)\n    email = Column(String, unique=True, index=True)\n<\/code><\/pre>\n<h3>3.3 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc124\uc815<\/h3>\n<p>\ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744 \uc704\ud574 Databases \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>DATABASE_URL = \"postgresql+asyncpg:\/\/user:password@localhost\/dbname\"\ndatabase = Database(DATABASE_URL)\nengine = create_engine(DATABASE_URL)\nBase.metadata.create_all(bind=engine)\n<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c <code>DATABASE_URL<\/code>\uc740 \uc0ac\uc6a9\uc790\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc815\ubcf4\ub97c \uc785\ub825\ud574\uc57c \ud569\ub2c8\ub2e4. \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc0ac\uc6a9\uc790\uac00 <code>user<\/code>, \ube44\ubc00\ubc88\ud638\uac00 <code>password<\/code>\uc774\uba70, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc774\ub984\uc774 <code>dbname<\/code>\uc778 PostgreSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc5f0\uacb0\ud558\ub294 URI\uc785\ub2c8\ub2e4.<\/p>\n<h3>3.4 \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud568\uc218 \uad6c\ud604<\/h3>\n<p>\uc774\uc81c \ud544\uc694\ud55c \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc791\uc5c5 \ud568\uc218\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from databases import Database\n\nasync def get_user(database: Database, user_id: int):\n    query = \"SELECT * FROM users WHERE id = :id\"\n    return await database.fetch_one(query, values={\"id\": user_id})\n\nasync def create_user(database: Database, username: str, email: str):\n    query = \"INSERT INTO users(username, email) VALUES (:username, :email)\"\n    await database.execute(query, values={\"username\": username, \"email\": email})\n<\/code><\/pre>\n<p>\uc704 \ud568\uc218\ub294 \uac01\uac01 \uc0ac\uc6a9\uc790\ub97c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0\uc11c \uc870\ud68c\ud558\uace0, \uc0c8 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud558\ub294 \ube44\ub3d9\uae30 \ud568\uc218\uc785\ub2c8\ub2e4. <code>fetch_one<\/code> \uba54\uc18c\ub4dc\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ucffc\ub9ac\uc5d0 \ub300\ud55c \ub2e8\uc77c \uacb0\uacfc\ub97c \ube44\ub3d9\uae30\uc801\uc73c\ub85c \ubc18\ud658\ud558\uace0, <code>execute<\/code> \uba54\uc18c\ub4dc\ub294 INSERT \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.5 FastAPI \uc571\uacfc \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud568\uc218 \uc5f0\uacb0<\/h3>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud558\uace0, \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud568\uc218\ub97c \ud574\ub2f9 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \uc5f0\uacb0\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.on_event(\"startup\")\nasync def startup():\n    await database.connect()\n\n@app.on_event(\"shutdown\")\nasync def shutdown():\n    await database.disconnect()\n\n@app.get(\"\/users\/{user_id}\")\nasync def read_user(user_id: int):\n    user = await get_user(database, user_id)\n    return user\n\n@app.post(\"\/users\/\")\nasync def create_new_user(username: str, email: str):\n    await create_user(database, username, email)\n    return {\"msg\": \"User created successfully\"}\n<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc2dc\uc791 \uc2dc <code>database.connect()<\/code>\ub97c \ud638\ucd9c\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc5f0\uacb0\ud558\uace0, \uc885\ub8cc \uc2dc <code>database.disconnect()<\/code>\ub97c \ud638\ucd9c\ud558\uc5ec \uc5f0\uacb0\uc744 \uc885\ub8cc\ud569\ub2c8\ub2e4. \uc0ac\uc6a9\uc790\ub97c \uc870\ud68c\ud558\ub294 <code>read_user<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc640 \uc0c8 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud558\ub294 <code>create_new_user<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub3c4 \uc124\uc815\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>4. \ud14c\uc2a4\ud2b8\uc640 \uac80\uc99d<\/h2>\n<p>\uc774\uc81c FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\uace0 \ube44\ub3d9\uae30 API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc900\ube44\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<p>\uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:8000\/docs<\/code>\uc5d0 \uc811\uc18d\ud558\uba74 FastAPI\uc758 \ubb38\uc11c\ud654\ub41c API \uc778\ud130\ud398\uc774\uc2a4\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c \ube44\ub3d9\uae30\uc801\uc73c\ub85c \uc815\uc758\ud55c API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>4.1 \uc0ac\uc6a9\uc790 \uc0dd\uc131 \ud14c\uc2a4\ud2b8<\/h3>\n<p><code>\/users\/<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub85c POST \uc694\uccad\uc744 \ubcf4\ub0b4\uc5b4 \uc0ac\uc6a9\uc790\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\uc2dc \uc694\uccad \ubcf8\ubb38\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>{\n    \"username\": \"testuser\",\n    \"email\": \"test@example.com\"\n}<\/code><\/pre>\n<h3>4.2 \uc0ac\uc6a9\uc790 \uc870\ud68c \ud14c\uc2a4\ud2b8<\/h3>\n<p><code>\/users\/{user_id}<\/code> \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub85c GET \uc694\uccad\uc744 \ubcf4\ub0b4\uc5b4 \uc0ac\uc6a9\uc790\ub97c \uc870\ud68c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 <code>\/users\/1<\/code> \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 ID\uac00 1\uc778 \uc0ac\uc6a9\uc790\uc758 \uc815\ubcf4\ub97c \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. \uacb0\ub860<\/h2>\n<p>FastAPI \ubaa8\ubc14\uc77c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc704\ud55c \uac15\ub825\ud558\uace0 \ud6a8\uc728\uc801\uc778 \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ud544\uc694\ud55c \uae30\ubcf8\uc801\uc778 \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \ud568\uc218\ub97c \uc131\uacf5\uc801\uc73c\ub85c \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\ub97c \ud1b5\ud574 FastAPI\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ub3d9\uc2dc\uc131\uc744 \ub192\uc774\uace0, \ub354 \ub9ce\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8 \uc694\uccad\uc744 \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \uc635\uc158\uc744 \uac16\ucd94\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uad6c\uc870\ub294 \ud2b9\ud788 \ud2b8\ub798\ud53d\uc774 \ub192\uc740 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc131\ub2a5\uc744 \uadf9\ub300\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ucd94\uac00\uc801\uc73c\ub85c, \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \ube44\ub3d9\uae30 \uc791\uc5c5\uc744 \uc704\ud55c \ub2e4\uc591\ud55c \ub77c\uc774\ube0c\ub7ec\ub9ac\uc640 \uae30\uc220\ub3c4 \uc874\uc7ac\ud558\ubbc0\ub85c, \uac01\uac01\uc758 \uc694\uad6c\uc0ac\ud56d\uc5d0 \ub9de\uac8c \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud558\uc5ec \uc0ac\uc6a9\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. \uc774 \uae00\uc774 \uc5ec\ub7ec\ubd84\uc758 FastAPI \uac1c\ubc1c\uc5d0 \ub3c4\uc6c0\uc774 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 Python\uc758 \ube60\ub974\uace0 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud1b5\ud574 \ub192\uc740 \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \ud568\uc218\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0, \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \ubab8\uc18c \uacbd\ud5d8\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc740 \ub300\uaddc\ubaa8 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub098 \ub192\uc740 \ub3d9\uc2dc\uc131\uc774 \uc694\uad6c\ub418\ub294 API \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \ub54c \ud2b9\ud788 \uac15\ub825\ud55c \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc774\ub780? \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \uc5ec\ub7ec &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38522\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218&#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-38522","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, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \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\/38522\/\" \/>\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, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 Python\uc758 \ube60\ub974\uace0 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud1b5\ud574 \ub192\uc740 \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \ud568\uc218\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0, \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \ubab8\uc18c \uacbd\ud5d8\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc740 \ub300\uaddc\ubaa8 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub098 \ub192\uc740 \ub3d9\uc2dc\uc131\uc774 \uc694\uad6c\ub418\ub294 API \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \ub54c \ud2b9\ud788 \uac15\ub825\ud55c \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc774\ub780? \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \uc5ec\ub7ec &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38522\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:05+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\/38522\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38522\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218\",\"datePublished\":\"2024-11-01T18:17:50+00:00\",\"dateModified\":\"2024-11-26T06:44:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38522\/\"},\"wordCount\":60,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38522\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38522\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:50+00:00\",\"dateModified\":\"2024-11-26T06:44:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38522\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38522\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38522\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218\"}]},{\"@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, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \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\/38522\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 Python\uc758 \ube60\ub974\uace0 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \ud1b5\ud574 \ub192\uc740 \uc131\ub2a5\uc744 \ubc1c\ud718\ud569\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \ube44\ub3d9\uae30 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc811\uc18d \ud568\uc218\ub97c \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0c1\uc138\ud788 \uc124\uba85\ud558\uace0, \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \ubab8\uc18c \uacbd\ud5d8\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \ube44\ub3d9\uae30 \uae30\ub2a5\uc740 \ub300\uaddc\ubaa8 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774\ub098 \ub192\uc740 \ub3d9\uc2dc\uc131\uc774 \uc694\uad6c\ub418\ub294 API \uc11c\ubc84\ub97c \uad6c\ucd95\ud560 \ub54c \ud2b9\ud788 \uac15\ub825\ud55c \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. 1. \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc774\ub780? \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \uc5ec\ub7ec &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218\"","og_url":"https:\/\/atmokpo.com\/w\/38522\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:50+00:00","article_modified_time":"2024-11-26T06:44:05+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\/38522\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38522\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218","datePublished":"2024-11-01T18:17:50+00:00","dateModified":"2024-11-26T06:44:05+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38522\/"},"wordCount":60,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38522\/","url":"https:\/\/atmokpo.com\/w\/38522\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:50+00:00","dateModified":"2024-11-26T06:44:05+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38522\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38522\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38522\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ube44\ub3d9\uae30 \ub300\uc751 DB \uc811\uc18d \ud568\uc218"}]},{"@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":[{"id":38574,"url":"https:\/\/atmokpo.com\/w\/38574\/","url_meta":{"origin":38522,"position":0},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc571\uc5d0\uc11c DB\uc5d0 \uc811\uc18d\ud558\uae30 \uc704\ud55c \uc900\ube44","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"FastAPI\ub294 \ucd5c\uc2e0 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c \uc911 \ud558\ub098\ub85c, \uace0\uc131\ub2a5\uacfc \ube60\ub978 \uac1c\ubc1c \uc18d\ub3c4\ub97c \uc790\ub791\ud558\uba70 \ube44\ub3d9\uae30 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\uc5ec \ud6a8\uc728\uc801\uc778 \uc11c\ubc84 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4 \uc218 \uc788\uac8c \ud574\uc90d\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640 \uc5f0\ub3d9\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc62c\ubc14\ub978 \ubc29\ubc95\uc73c\ub85c DB\uc640 \uc5f0\uacb0\ud558\uae30 \uc704\ud574 \ud544\uc694\ud55c \uc900\ube44 \ub2e8\uacc4\uc640 \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc2e4\uc2b5\ud560 \uc218 \uc788\ub3c4\ub85d \uc900\ube44\ud588\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38432,"url":"https:\/\/atmokpo.com\/w\/38432\/","url_meta":{"origin":38522,"position":1},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc774\ubca4\ud2b8 \ubb38\uc11c \ud074\ub798\uc2a4\uc640 \ub77c\uc6b0\ud2b8 \ubcc0\uacbd","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c 1. FastAPI\ub780? FastAPI\ub294 Python\uc758 \ube44\ub3d9\uae30 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, API \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ub370 \ucd5c\uc801\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \uac15\ub825\ud55c \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubb38\uc11c\ud654 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. FastAPI\ub294 \uc2a4\ud0c0\ud2b8\uc5c5\uc5d0\uc11c \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0 \ub2e4\uc591\ud55c \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\ud569\ud558\uba70, OpenAPI\uc640 JSON Schema\ub97c \uc9c0\uc6d0\ud558\uc5ec \uc790\ub3d9\uc73c\ub85c API \ubb38\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ud2b9\uc9d5 \ub355\ubd84\uc5d0 FastAPI\ub294\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25546,"url":"https:\/\/atmokpo.com\/w\/25546\/","url_meta":{"origin":38522,"position":2},"title":"\ud50c\ub7ec\ud130 \uac15\uc88c: 14.2 \ube44\ub3d9\uae30 \ubc29\uc2dd","author":"root","date":"2024\ub144 10\uc6d4 26\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: [\uc624\ub298 \ub0a0\uc9dc] \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc911\uc694\uc131 \ubaa8\ub358 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\uc11c \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \ud544\uc218\uc801\uc778 \uc694\uc18c\uc785\ub2c8\ub2e4. \ud2b9\ud788, \uc0ac\uc6a9\uc790 \uacbd\ud5d8(UX)\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \uc751\ub2f5\uc131\uc744 \ub192\uc774\ub294 \ub370 \uc788\uc5b4\uc11c \ube44\ub3d9\uae30 \uc791\uc5c5\uc740 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4. \ube44\ub3d9\uae30 \ubc29\uc2dd\uc740 \uc5ec\ub7ec \uc791\uc5c5\uc774 \ub3d9\uc2dc\uc5d0 \uc9c4\ud589\ub420 \uc218 \uc788\ub3c4\ub85d \ud558\uc5ec, \ud55c \uc791\uc5c5\uc774 \uc644\ub8cc\ub418\uae30\ub97c \uae30\ub2e4\ub9ac\ub294 \ub3d9\uc548 \ub2e4\ub978 \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\ub294\u2026","rel":"","context":"&quot;\ud50c\ub7ec\ud130 \uac15\uc88c&quot;\uc5d0\uc11c","block_context":{"text":"\ud50c\ub7ec\ud130 \uac15\uc88c","link":"https:\/\/atmokpo.com\/w\/category\/%ed%94%8c%eb%9f%ac%ed%84%b0-%ea%b0%95%ec%a2%8c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38524,"url":"https:\/\/atmokpo.com\/w\/38524\/","url_meta":{"origin":38522,"position":3},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc131\ub2a5 \ucd5c\uc801\ud654\ub97c \uc704\ud55c \uce90\uc2f1 \ubc0f \ub85c\ub4dc \ubc38\ub7f0\uc2f1 \uc804\ub7b5","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \ubc1c\ud589\uc77c: [\uc624\ub298 \ub0a0\uc9dc] \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \uace0\uc131\ub2a5 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub978 \uac1c\ubc1c \uc18d\ub3c4\uc640 \ub192\uc740 \uc131\ub2a5 \ub355\ubd84\uc5d0 \ub9ce\uc740 \uac1c\ubc1c\uc790\ub4e4\uc5d0\uac8c \uc0ac\ub791\ubc1b\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc \uc131\ub2a5\uc774 \uc88b\ub2e4\uace0 \ud574\uc11c \ubaa8\ub4e0 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc774 \uc6d0\ud65c\ud558\uac8c \uc791\ub3d9\ud558\ub294 \uac83\uc740 \uc544\ub2d9\ub2c8\ub2e4. \ud2b9\ud788 \ud2b8\ub798\ud53d\uc774 \ub9ce\uc740 \uc11c\ube44\uc2a4\uc5d0\uc11c\ub294 \uc131\ub2a5 \ucd5c\uc801\ud654\uac00 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 FastAPI \uc11c\ubc84\uc758 \uc131\ub2a5\uc744 \ucd5c\uc801\ud654\ud558\uae30 \uc704\ud55c \uce90\uc2f1(caching)\uacfc \ub85c\ub4dc \ubc38\ub7f0\uc2f1(load\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":42720,"url":"https:\/\/atmokpo.com\/w\/42720\/","url_meta":{"origin":38522,"position":4},"title":"[\uac1d\uccb4\uc9c0\ud5a5] 8.\ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uace0\uae09 \uac1c\ub150, \ube44\ub3d9\uae30 \uba54\uc11c\ub4dc\uc758 \uc2a4\ub808\ub4dc \uad00\ub9ac \ubc0f \uc131\ub2a5 \ucd5c\uc801\ud654","author":"root","date":"2024\ub144 11\uc6d4 13\uc77c","format":false,"excerpt":"\uc791\uc131\uc790: \uc870\uad11\ud615 \uc791\uc131\uc77c: [\ub0a0\uc9dc] 1. \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uac1c\ub150 \uc774\ud574 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 \ub2e4\uc911 \uc2a4\ub808\ub4dc \ud658\uacbd\uc5d0\uc11c \ube44\ub85d \ud558\ub098\uc758 \uc2a4\ub808\ub4dc\uac00 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ub3d9\uc548 \ub2e4\ub978 \uc2a4\ub808\ub4dc\uac00 \ub2e4\ub978 \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\ub3c4\ub85d \ud558\ub294 \ud504\ub85c\uadf8\ub798\ubc0d \ud328\ub7ec\ub2e4\uc784\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc811\uadfc \ubc29\uc2dd\uc740 CPU\uc640 I\/O \uc791\uc5c5\uc744 \ucd5c\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uc131\ub2a5\uc744 \ud5a5\uc0c1\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4. C#\uc5d0\uc11c \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc740 'async' \ubc0f 'await' \ud0a4\uc6cc\ub4dc\ub97c\u2026","rel":"","context":"&quot;csharp&quot;\uc5d0\uc11c","block_context":{"text":"csharp","link":"https:\/\/atmokpo.com\/w\/category\/csharp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":38578,"url":"https:\/\/atmokpo.com\/w\/38578\/","url_meta":{"origin":38522,"position":5},"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ucee8\ud14c\uc774\ub108 \uc2e4\ud589  App Runner \uc124\uc815 \ubc0f \uc2e4\ud589","author":"root","date":"2024\ub144 11\uc6d4 01\uc77c","format":false,"excerpt":"FastAPI\ub294 \ud604\ub300\uc758 API \uc11c\ubc84 \uac1c\ubc1c\uc5d0 \ucd5c\uc801\ud654\ub41c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uba70 \uc790\ub3d9 \ubb38\uc11c\ud654 \uae30\ub2a5\uc774 \ub6f0\uc5b4\ub098\uae30 \ub54c\ubb38\uc5d0 \ub9ce\uc740 \uac1c\ubc1c\uc790\uc640 \uae30\uc5c5\ub4e4\uc774 \uc120\ud0dd\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub85c \uac04\ub2e8\ud55c \uc11c\ubc84\ub97c \uad6c\ud604\ud558\uace0, \uc774\ub97c \ucee8\ud14c\uc774\ub108\ud654\ud558\uc5ec AWS App Runner\uc5d0 \ubc30\ud3ec\ud558\ub294 \uacfc\uc815\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uc18c\uac1c FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ube44\ub3d9\uae30 RESTful API \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \uae30\ub2a5\uc744\u2026","rel":"","context":"&quot;FastAPI\uc11c\ubc84\uac1c\ubc1c&quot;\uc5d0\uc11c","block_context":{"text":"FastAPI\uc11c\ubc84\uac1c\ubc1c","link":"https:\/\/atmokpo.com\/w\/category\/fastapi%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38522","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=38522"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38522\/revisions"}],"predecessor-version":[{"id":38523,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38522\/revisions\/38523"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}