{"id":6201,"date":"2025-01-15T18:15:02","date_gmt":"2025-01-15T09:15:02","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=6201"},"modified":"2026-09-30T17:01:37","modified_gmt":"2026-09-30T08:01:37","slug":"fastapi_glossary","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/fastapi_glossary\/","title":{"rendered":"FastAPI\u306e\u6700\u65b0\u52d5\u5411\uff1a\u9ad8\u901f\u306aPython\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5207\u308a\u62d3\u304f\u6b21\u4e16\u4ee3API\u958b\u767a"},"content":{"rendered":"\n<p>FastAPI\u306e\u57fa\u672c\u6982\u5ff5\u304b\u3089\u3001\u9ad8\u901f\u306a\u975e\u540c\u671f\u51e6\u7406\u3001Pydantic\u306b\u3088\u308b\u578b\u5b89\u5168\u306aAPI\u958b\u767a\u3001AI\u30e2\u30c7\u30eb\u9023\u643a\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u6d3b\u7528\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u30022026\u5e74\u6700\u65b0\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u8e0f\u307e\u3048\u3001\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3084\u751f\u6210AI\u6642\u4ee3\u306b\u6c42\u3081\u3089\u308c\u308bAPI\u958b\u767a\u306e\u53ef\u80fd\u6027\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n<h2>FastAPI\u3068\u306f\uff1f<\/h2>\n<p>FastAPI\u306f\u3001Python\u3067\u9ad8\u901f\u304b\u3064\u5b89\u5168\u306aWeb API\u3092\u958b\u767a\u3059\u308b\u305f\u3081\u306b\u8a2d\u8a08\u3055\u308c\u305f\u3001\u30e2\u30c0\u30f3\u306aWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u30022018\u5e74\u306b\u767b\u5834\u3057\u3066\u4ee5\u964d\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u8ff0\u65b9\u6cd5\u3001\u9ad8\u6027\u80fd\u306a\u975e\u540c\u671f\u51e6\u7406\u3001\u81ea\u52d5API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u751f\u6210\u306a\u3069\u304c\u8a55\u4fa1\u3055\u308c\u3001\u73fe\u5728\u3067\u306fPython API\u958b\u767a\u306b\u304a\u3051\u308b\u4e3b\u8981\u306a\u9078\u629e\u80a2\u306e\u4e00\u3064\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>FastAPI\u306f\u3001ASGI\u5bfe\u5fdc\u306e\u8efd\u91cf\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308b <strong>Starlette<\/strong> \u3092\u57fa\u76e4\u306b\u3057\u3001\u30c7\u30fc\u30bf\u691c\u8a3c\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308b <strong>Pydantic<\/strong> \u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u9ad8\u901f\u6027\u3068\u958b\u767a\u52b9\u7387\u3092\u4e21\u7acb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f93\u6765\u3001Python\u306eWeb\u958b\u767a\u3067\u306fDjango\u3084Flask\u304c\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u8fd1\u5e74\u306f\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001\u751f\u6210AI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u666e\u53ca\u306b\u3088\u308a\u3001\u300c\u5fc5\u8981\u306a\u6a5f\u80fd\u3060\u3051\u3092\u9ad8\u901f\u306bAPI\u5316\u3059\u308b\u300d\u958b\u767a\u30b9\u30bf\u30a4\u30eb\u304c\u5897\u52a0\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u6d41\u308c\u306e\u4e2d\u3067FastAPI\u306e\u5b58\u5728\u611f\u306f\u3055\u3089\u306b\u9ad8\u307e\u3063\u3066\u3044\u307e\u3059\u3002<!-- notionvc: 43143c5d-06d7-400a-b064-65747ac89cd5 --><\/p>\n<p><!-- notionvc: ab62dd9d-897e-4656-bb4e-e26d24107dd2 --><\/p>\n<p><!-- notionvc: a5c7116d-fbc5-4ada-ad14-4a2c9b615523 --><\/p>\n<h2>FastAPI\u304c\u9078\u3070\u308c\u308b\u7406\u7531<\/h2>\n<p><b>\u9ad8\u901f\u6027\u3068\u975e\u540c\u671f\u51e6\u7406<\/b><\/p>\n<p>FastAPI\u6700\u5927\u306e\u7279\u5fb4\u306f\u3001\u9ad8\u6027\u80fd\u306aAPI\u51e6\u7406\u80fd\u529b\u3067\u3059\u3002<\/p>\n<p>ASGI\uff08Asynchronous Server Gateway Interface\uff09\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001async\/await\u306b\u3088\u308b\u975e\u540c\u671f\u51e6\u7406\u306b\u5bfe\u5fdc\u3057\u3001\u5927\u91cf\u30a2\u30af\u30bb\u30b9\u3084\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u901a\u4fe1\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7528\u9014\u3067\u306f\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>IoT\u30c7\u30d0\u30a4\u30b9\u304b\u3089\u5927\u91cf\u30c7\u30fc\u30bf\u3092\u53d7\u4fe1\u3059\u308b\u30b7\u30b9\u30c6\u30e0<\/li>\n<li>WebSocket\u3092\u5229\u7528\u3057\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/li>\n<li>\u751f\u6210AI\u3084\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u306e\u63a8\u8ad6API<\/li>\n<li>\u30af\u30e9\u30a6\u30c9\u4e0a\u3067\u52d5\u4f5c\u3059\u308b\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9<\/li>\n<\/ul>\n<p>Python\u306f\u4e00\u822c\u7684\u306b\u51e6\u7406\u901f\u5ea6\u9762\u3067\u4e0d\u5229\u3068\u8a00\u308f\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u304c\u3001FastAPI\u306f\u975e\u540c\u671f\u51e6\u7406\u3084\u8efd\u91cf\u306a\u8a2d\u8a08\u306b\u3088\u308a\u3001Go\u3084Node.js\u306a\u3069\u306eAPI\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u6bd4\u8f03\u3055\u308c\u308b\u307b\u3069\u9ad8\u3044\u6027\u80fd\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<!-- notionvc: caea79e1-6922-4f52-9ac3-ea31b9c427d4 --><\/p>\n<p><b>\u578b\u30d2\u30f3\u30c8\u306b\u3088\u308b\u81ea\u52d5\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u751f\u6210<\/b><\/p>\n<p>FastAPI\u3067\u306f\u3001Python\u6a19\u6e96\u306e\u578b\u30d2\u30f3\u30c8\u3092\u7a4d\u6975\u7684\u306b\u6d3b\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>API\u306e\u5165\u529b\u5024\u3084\u51fa\u529b\u5f62\u5f0f\u3092\u578b\u3068\u3057\u3066\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u305d\u306e\u60c5\u5831\u3092\u3082\u3068\u306bSwagger UI\u3084ReDoc\u5f62\u5f0f\u306eAPI\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<\/p>\n<ul>\n<li>API\u4ed5\u69d8\u66f8\u4f5c\u6210\u306e\u8ca0\u62c5\u8efd\u6e1b<\/li>\n<li>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30fb\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u9593\u306e\u8a8d\u8b58\u5408\u308f\u305b<\/li>\n<li>\u5916\u90e8\u30b7\u30b9\u30c6\u30e0\u9023\u643a\u6642\u306e\u4ed5\u69d8\u5171\u6709<\/li>\n<\/ul>\n<p>\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u8907\u6570\u30c1\u30fc\u30e0\u304c\u95a2\u308f\u308b\u4f01\u696d\u958b\u767a\u3067\u306f\u3001\u5e38\u306b\u6700\u65b0\u72b6\u614b\u306eAPI\u4ed5\u69d8\u3092\u5171\u6709\u3067\u304d\u308b\u70b9\u304c\u5927\u304d\u306a\u30e1\u30ea\u30c3\u30c8\u3067\u3059\u3002<!-- notionvc: 691a7526-023d-47cc-a690-ed0822a12e71 --><\/p>\n<p><b>\u5b66\u7fd2\u30b3\u30b9\u30c8\u306e\u4f4e\u3055\u3068\u30e1\u30f3\u30c6\u30ca\u30d3\u30ea\u30c6\u30a3<\/b><\/p>\n<p>FastAPI\u306fPython\u306e\u57fa\u672c\u7684\u306a\u6587\u6cd5\u3092\u7406\u89e3\u3057\u3066\u3044\u308c\u3070\u6bd4\u8f03\u7684\u77ed\u671f\u9593\u3067\u7fd2\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u578b\u30d2\u30f3\u30c8\u306b\u3088\u308b\u30b3\u30fc\u30c9\u8a2d\u8a08\u306f\u53ef\u8aad\u6027\u304c\u9ad8\u304f\u3001\u9759\u7684\u89e3\u6790\u30c4\u30fc\u30eb\u3068\u3082\u76f8\u6027\u304c\u826f\u3044\u305f\u3081\u3001\u5927\u898f\u6a21\u958b\u767a\u3067\u3082\u4fdd\u5b88\u3057\u3084\u3059\u3044\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u306a\u304c\u3089\u3001\u8a8d\u8a3c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u9023\u643a\u3001\u30af\u30e9\u30a6\u30c9\u30c7\u30d7\u30ed\u30a4\u306a\u3069\u5fc5\u8981\u306a\u6a5f\u80fd\u3092\u81ea\u7531\u306b\u8ffd\u52a0\u3067\u304d\u308b\u67d4\u8edf\u6027\u3082\u9b45\u529b\u3067\u3059\u3002<\/p>\n<p><!-- notionvc: e5a4f802-07d8-4f62-8c92-bec5b2cad8e2 --><\/p>\n<p><!-- notionvc: 6ae3b80b-a578-426e-8dbc-5dabf718da7d --><\/p>\n<h2>\u4e3b\u306a\u7279\u5fb4\u3068\u30e1\u30ea\u30c3\u30c8\u3092\u5177\u4f53\u4f8b\u304b\u3089\u89e3\u8aac<\/h2>\n<p><strong>Pydantic\u306b\u3088\u308b\u30c7\u30fc\u30bf\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3<\/strong><\/p>\n<p>FastAPI\u3067\u306f\u3001Pydantic\u306b\u3088\u3063\u3066\u5165\u529b\u30c7\u30fc\u30bf\u306e\u691c\u8a3c\u3092\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30e6\u30fc\u30b6\u30fc\u60c5\u5831API\u3067\u300c\u5e74\u9f62\u306f\u6574\u6570\u300d\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306f\u6b63\u3057\u3044\u5f62\u5f0f\u300d\u3068\u3044\u3063\u305f\u30eb\u30fc\u30eb\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u3001\u53d7\u4fe1\u30c7\u30fc\u30bf\u3092\u81ea\u52d5\u30c1\u30a7\u30c3\u30af\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>2026\u5e74\u73fe\u5728\u3067\u306f\u3001Pydantic v2\u306b\u3088\u308b\u9ad8\u901f\u5316\u3082\u9032\u307f\u3001\u5927\u91cf\u30c7\u30fc\u30bf\u51e6\u7406\u3084AI\u30b5\u30fc\u30d3\u30b9\u57fa\u76e4\u3067\u3082\u5229\u7528\u3057\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u8907\u96d1\u306a\u5165\u529b\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3092\u66f8\u304f\u5fc5\u8981\u304c\u6e1b\u308a\u3001API\u54c1\u8cea\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5411\u4e0a\u306b\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n<p><strong>Starlette\u30d9\u30fc\u30b9\u3067\u306e\u9ad8\u6027\u80fd\u30b5\u30fc\u30d0\u30fc<\/strong><\/p>\n<p>FastAPI\u306fStarlette\u3092\u57fa\u76e4\u3068\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u8efd\u91cf\u306a\u304c\u3089\u9ad8\u6027\u80fd\u306aWeb\u30b5\u30fc\u30d0\u30fc\u6a5f\u80fd\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u6a5f\u80fd\u306b\u306f\u4ee5\u4e0b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/li>\n<li>\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u7ba1\u7406<\/li>\n<li>\u975e\u540c\u671fI\/O<\/li>\n<li>CORS\u8a2d\u5b9a<\/li>\n<li>WebSocket\u5bfe\u5fdc<\/li>\n<\/ul>\n<p>\u5fc5\u8981\u306a\u6a5f\u80fd\u3060\u3051\u3092\u7d44\u307f\u5408\u308f\u305b\u3089\u308c\u308b\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30ca\u74b0\u5883\u3084\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u74b0\u5883\u3068\u306e\u76f8\u6027\u3082\u826f\u304f\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u30b7\u30b9\u30c6\u30e0\u69cb\u7bc9\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><!-- notionvc: f205b8c5-917a-4571-a5ba-a9c2fc5b6e2e --><\/p>\n<p><!-- notionvc: 61a16e7e-28d8-4f0b-a19e-b325ff054675 --><\/p>\n<h2>\u3053\u3093\u306a\u30b1\u30fc\u30b9\u306b\u4f7f\u3048\u308bFastAPI<\/h2>\n<p><b>\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u9069\u7528<\/b><\/p>\n<p>\u8fd1\u5e74\u306e\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u5de8\u5927\u306a\u30e2\u30ce\u30ea\u30b7\u30c3\u30af\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u3001\u8907\u6570\u306e\u5c0f\u3055\u306a\u30b5\u30fc\u30d3\u30b9\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u65b9\u5f0f\u3078\u306e\u79fb\u884c\u304c\u9032\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>FastAPI\u306f\u8efd\u91cf\u3067\u8d77\u52d5\u304c\u901f\u304f\u3001\u30b5\u30fc\u30d3\u30b9\u5358\u4f4d\u3067\u72ec\u7acb\u3057\u305fAPI\u3092\u69cb\u7bc9\u3057\u3084\u3059\u3044\u305f\u3081\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u958b\u767a\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Kubernetes\u306a\u3069\u306e\u30b3\u30f3\u30c6\u30ca\u57fa\u76e4\u3068\u3082\u7d44\u307f\u5408\u308f\u305b\u3084\u3059\u304f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30b5\u30fc\u30d3\u30b9\u5358\u4f4d\u3067\u30b9\u30b1\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><b>AI\u30e2\u30c7\u30eb\u306e\u30c7\u30d7\u30ed\u30a4<\/b><\/p>\n<p>FastAPI\u306f\u3001\u751f\u6210AI\u6642\u4ee3\u306b\u304a\u3044\u3066\u7279\u306b\u6ce8\u76ee\u3055\u308c\u3066\u3044\u308b\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304cAI\u30e2\u30c7\u30eb\u306eAPI\u5316\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<ul>\n<li>LLM\u63a8\u8ad6API<\/li>\n<li>RAG\uff08\u691c\u7d22\u62e1\u5f35\u751f\u6210\uff09\u30b7\u30b9\u30c6\u30e0<\/li>\n<li>\u753b\u50cf\u8a8d\u8b58\u30e2\u30c7\u30eb<\/li>\n<li>\u9700\u8981\u4e88\u6e2c\u30e2\u30c7\u30eb<\/li>\n<li>\u30ec\u30b3\u30e1\u30f3\u30c9\u30a8\u30f3\u30b8\u30f3<\/li>\n<\/ul>\n<p>\u306a\u3069\u3092Web API\u3068\u3057\u3066\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Python\u306fAI\u30fb\u6a5f\u68b0\u5b66\u7fd2\u30a8\u30b3\u30b7\u30b9\u30c6\u30e0\u304c\u8c4a\u5bcc\u306a\u305f\u3081\u3001\u30e2\u30c7\u30eb\u958b\u767a\u304b\u3089API\u516c\u958b\u307e\u3067\u3092\u540c\u3058\u8a00\u8a9e\u3067\u5b8c\u7d50\u3067\u304d\u308b\u70b9\u3082\u5927\u304d\u306a\u5f37\u307f\u3067\u3059\u3002<!-- notionvc: b8e337c4-bd44-451e-ab17-8089b0ce4f5f --><\/p>\n<p><!-- notionvc: 6e3550cf-c8b4-44e9-a7c3-43c005dd075d --><\/p>\n<p><!-- notionvc: 2f23b7c2-c27e-46bf-9a27-ab976e124f4a --><\/p>\n<h2>FastAPI\u306e\u5c0e\u5165\u30fb\u74b0\u5883\u69cb\u7bc9<\/h2>\n<p>FastAPI\u306e\u5c0e\u5165\u306f\u6bd4\u8f03\u7684\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>Python\u74b0\u5883\u3092\u6e96\u5099\u3057\u3001FastAPI\u672c\u4f53\u3068ASGI\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308bUvicorn\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u958b\u767a\u3067\u306f\u3001<\/p>\n<ul>\n<li>FastAPI\u3067API\u5b9a\u7fa9<\/li>\n<li>Pydantic\u3067\u30c7\u30fc\u30bf\u30e2\u30c7\u30eb\u4f5c\u6210<\/li>\n<li>Uvicorn\u3067\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5<\/li>\n<li>Swagger UI\u3067\u52d5\u4f5c\u78ba\u8a8d<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Docker\u3084\u30af\u30e9\u30a6\u30c9\u30b5\u30fc\u30d3\u30b9\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u672c\u756a\u74b0\u5883\u3078\u306e\u5c55\u958b\u3082\u5bb9\u6613\u3067\u3059\u3002<!-- notionvc: 1bc37509-c3ac-48ad-8b43-fe857b7b7d4f --><\/p>\n<p><!-- notionvc: 75e73526-3c44-4fd6-aab5-1c72ba19d36c --><\/p>\n<p><!-- notionvc: 277daeb4-f2ca-4369-8f0c-01264d24a1b7 --><\/p>\n<h2>\u30d3\u30b8\u30cd\u30b9\u8996\u70b9\u3067\u8003\u3048\u308bFastAPI\u306e\u6d3b\u7528\u30e1\u30ea\u30c3\u30c8<\/h2>\n<p><b>\u958b\u767a\u901f\u5ea6\u306e\u5411\u4e0a\u3068\u30b3\u30b9\u30c8\u524a\u6e1b<\/b><\/p>\n<p>FastAPI\u306f\u3001\u81ea\u52d5\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u751f\u6210\u3084\u578b\u5b89\u5168\u306a\u958b\u767a\u74b0\u5883\u306b\u3088\u308a\u3001API\u958b\u767a\u671f\u9593\u3092\u77ed\u7e2e\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u751f\u6210AI\u30b5\u30fc\u30d3\u30b9\u3084\u30c7\u30fc\u30bf\u6d3b\u7528\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u77ed\u671f\u9593\u3067PoC\u3092\u4f5c\u6210\u3057\u3001\u6539\u5584\u3092\u7e70\u308a\u8fd4\u3059\u958b\u767a\u30b9\u30bf\u30a4\u30eb\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<p>FastAPI\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30a2\u30b8\u30e3\u30a4\u30eb\u578b\u958b\u767a\u3068\u306e\u76f8\u6027\u304c\u9ad8\u3044\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p><b>\u4fdd\u5b88\u6027\u3068\u5c06\u6765\u306e\u62e1\u5f35\u6027<\/b><\/p>\n<p>\u578b\u5b9a\u7fa9\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306f\u3001\u9577\u671f\u904b\u7528\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u3082\u54c1\u8cea\u3092\u7dad\u6301\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u3001<\/p>\n<ul>\n<li>\u30af\u30e9\u30a6\u30c9\u79fb\u884c<\/li>\n<li>AI\u6a5f\u80fd\u8ffd\u52a0<\/li>\n<li>\u5916\u90e8\u30b5\u30fc\u30d3\u30b9\u9023\u643a<\/li>\n<li>\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u5316<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u5c06\u6765\u7684\u306a\u62e1\u5f35\u306b\u3082\u5bfe\u5fdc\u3057\u3084\u3059\u3044\u70b9\u304c\u4f01\u696d\u5229\u7528\u3067\u8a55\u4fa1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<!-- notionvc: b4f6884a-7a2b-48c2-b723-fd1bed47a108 --><\/p>\n<p><!-- notionvc: bfe7c6c9-a883-4c81-a109-79f380039e42 --><\/p>\n<p><!-- notionvc: 449e45e1-5de5-4fa6-9a81-021ca3d41eb8 --><\/p>\n<h2>\u4e8b\u4f8b\u3068\u7d71\u8a08\u30c7\u30fc\u30bf<\/h2>\n<p><b>FastAPI\u306e\u4eba\u6c17\u5ea6\u3092\u793a\u3059GitHub Star\u6570\u306e\u63a8\u79fb\u304a\u3088\u3073\u5229\u7528\u72b6\u6cc1<\/b><\/p>\n<p>FastAPI\u306f\u8fd1\u5e74\u6025\u901f\u306b\u5229\u7528\u8005\u3092\u5897\u3084\u3057\u3066\u304a\u308a\u3001GitHub\u30b9\u30bf\u30fc\u6570\u3067\u3082Python Web\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4e2d\u3067\u4e0a\u4f4d\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b2024\u5e74\u4ee5\u964d\u306f\u3001\u751f\u6210AI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u306e\u5897\u52a0\u306b\u4f34\u3044\u3001AI\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u7528\u9014\u3067\u306e\u63a1\u7528\u304c\u62e1\u5927\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Python\u958b\u767a\u8005\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u3067\u3082\u3001API\u958b\u767a\u3067\u306fFastAPI\u3092\u9078\u629e\u3059\u308b\u30b1\u30fc\u30b9\u304c\u5897\u3048\u3066\u304a\u308a\u3001Flask\u306b\u4ee3\u308f\u308b\u9078\u629e\u80a2\u3068\u3057\u3066\u5b9a\u7740\u3057\u3064\u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><b>\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba\u5c0e\u5165\u4e8b\u4f8b\u3084\u63a1\u7528\u5897\u52a0<\/b><\/p>\n<p>\u4f01\u696d\u3067\u306f\u3001<\/p>\n<ul>\n<li>AI\u30c1\u30e3\u30c3\u30c8\u30dc\u30c3\u30c8\u57fa\u76e4<\/li>\n<li>\u30c7\u30fc\u30bf\u5206\u6790API<\/li>\n<li>\u793e\u5185\u696d\u52d9\u30b7\u30b9\u30c6\u30e0<\/li>\n<li>SaaS\u30d0\u30c3\u30af\u30a8\u30f3\u30c9<\/li>\n<\/ul>\n<p>\u306a\u3069\u5e45\u5e83\u3044\u7528\u9014\u3067FastAPI\u304c\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001\u751f\u6210AI\u3084\u6a5f\u68b0\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u3067\u306f\u300cPython\u3067\u30e2\u30c7\u30eb\u958b\u767a\u3057\u3001\u305d\u306e\u307e\u307eAPI\u5316\u3067\u304d\u308b\u300d\u3068\u3044\u3046\u5229\u70b9\u304b\u3089\u63a1\u7528\u304c\u5897\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><!-- notionvc: 20fe5e0b-1205-4a29-a80f-c0c99f02a288 --><\/p>\n<p><!-- notionvc: 96cbb486-a893-46ec-be64-fcdbbc9e33df --><\/p>\n<p><!-- notionvc: ca7bb808-5845-4092-a564-e5c761b49b2c --><\/p>\n<h2>FastAPI\u306e\u30c7\u30e1\u30ea\u30c3\u30c8\u3068\u4eca\u5f8c\u306e\u5c55\u671b<\/h2>\n<p>FastAPI\u306b\u3082\u6ce8\u610f\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u7b2c\u4e00\u306b\u3001Django\u306e\u3088\u3046\u306a\u30d5\u30eb\u30b9\u30bf\u30c3\u30af\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u8a8d\u8a3c\u3001\u7ba1\u7406\u753b\u9762\u3001ORM\u306a\u3069\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u975e\u540c\u671f\u51e6\u7406\u3092\u6700\u5927\u9650\u6d3b\u7528\u3059\u308b\u306b\u306f\u3001async\/await\u306e\u7406\u89e3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u30012026\u5e74\u73fe\u5728\u3067\u306f\u95a2\u9023\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u958b\u767a\u30ce\u30a6\u30cf\u30a6\u3082\u5145\u5b9f\u3057\u3001\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3067\u3082\u5341\u5206\u5229\u7528\u3067\u304d\u308b\u6210\u719f\u3057\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u5f8c\u306f\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3001LLM\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u666e\u53ca\u306b\u3088\u308a\u3001FastAPI\u306e\u91cd\u8981\u6027\u306f\u3055\u3089\u306b\u9ad8\u307e\u308b\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><!-- notionvc: 6d80cd4d-9cbd-48aa-9954-f49364a6f6d6 --><\/p>\n<p><!-- notionvc: 3bb12eb3-fb0d-4fa2-ad78-ea91488e65f2 --><\/p>\n<h2>\u307e\u3068\u3081\u30fb\u6b21\u306e\u30a2\u30af\u30b7\u30e7\u30f3<\/h2>\n<p>FastAPI\u306f\u3001\u9ad8\u901f\u306a\u51e6\u7406\u6027\u80fd\u3001\u578b\u5b89\u5168\u306a\u958b\u767a\u3001\u81ea\u52d5API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u751f\u6210\u3092\u7279\u5fb4\u3068\u3059\u308b\u6b21\u4e16\u4ee3Python API\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u3001<\/p>\n<ul>\n<li>\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u958b\u767a<\/li>\n<li>AI\u30e2\u30c7\u30eb\u63d0\u4f9b<\/li>\n<li>\u751f\u6210AI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3<\/li>\n<li>\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u958b\u767a<\/li>\n<\/ul>\n<p>\u3068\u3044\u3063\u305f\u6700\u65b0\u306e\u958b\u767a\u9818\u57df\u3067\u9ad8\u3044\u4fa1\u5024\u3092\u767a\u63ee\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089FastAPI\u3092\u5c0e\u5165\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b9\u30c6\u30c3\u30d7\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u516c\u5f0f\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u57fa\u672cAPI\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>Pydantic\u3068\u578b\u30d2\u30f3\u30c8\u3092\u7406\u89e3\u3059\u308b<\/li>\n<li>Swagger UI\u3067API\u8a2d\u8a08\u3092\u78ba\u8a8d\u3059\u308b<\/li>\n<li>Docker\u3084\u30af\u30e9\u30a6\u30c9\u74b0\u5883\u3078\u30c7\u30d7\u30ed\u30a4\u3059\u308b<\/li>\n<li>\u5c0f\u898f\u6a21PoC\u304b\u3089\u5b9f\u904b\u7528\u3078\u5c55\u958b\u3059\u308b<\/li>\n<\/ol>\n<p>2026\u5e74\u73fe\u5728\u3001FastAPI\u306f\u5358\u306a\u308bPython\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u306f\u306a\u304f\u3001AI\u6642\u4ee3\u306e\u30b5\u30fc\u30d3\u30b9\u958b\u767a\u3092\u652f\u3048\u308b\u91cd\u8981\u306aAPI\u57fa\u76e4\u306e\u4e00\u3064\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u9ad8\u901f\u6027\u3068\u958b\u767a\u52b9\u7387\u3092\u4e21\u7acb\u3057\u305f\u3044\u4f01\u696d\u3084\u958b\u767a\u8005\u306b\u3068\u3063\u3066\u3001\u4eca\u5f8c\u3082\u6709\u529b\u306a\u9078\u629e\u80a2\u3067\u3042\u308a\u7d9a\u3051\u308b\u3067\u3057\u3087\u3046\u3002<!-- notionvc: 5885af54-09f1-4822-85f3-75bd6ae03866 --><\/p>\n<p><!-- notionvc: f0edfc4e-5d0f-4034-999e-b051fa643c7d --><\/p>\n<p><!-- notionvc: 02327425-8b0b-428a-b0ed-3b568da726b3 --><\/p>","protected":false},"excerpt":{"rendered":"<p>FastAPI\u306e\u57fa\u672c\u6982\u5ff5\u304b\u3089\u3001\u9ad8\u901f\u306a\u975e\u540c\u671f\u51e6\u7406\u3001Pydantic\u306b\u3088\u308b\u578b\u5b89\u5168\u306aAPI\u958b\u767a\u3001AI\u30e2\u30c7\u30eb\u9023\u643a\u3001\u30de\u30a4\u30af\u30ed\u30b5\u30fc\u30d3\u30b9\u6d3b\u7528\u307e\u3067\u5fb9\u5e95\u89e3\u8aac\u30022026\u5e74\u6700\u65b0\u306e\u30c8\u30ec\u30f3\u30c9\u3092\u8e0f\u307e\u3048\u3001\u4f01\u696d\u30b7\u30b9\u30c6\u30e0\u3084\u751f\u6210AI\u6642\u4ee3\u306b\u6c42\u3081\u3089\u308c\u308bAPI\u958b [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":6183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1249],"tags":[754,331],"class_list":["post-6201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-fastapi","tag-python"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/6201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=6201"}],"version-history":[{"count":1,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/6201\/revisions"}],"predecessor-version":[{"id":9933,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/6201\/revisions\/9933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/6183"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=6201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=6201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=6201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}