{"id":477190,"date":"2023-08-09T09:08:44","date_gmt":"2023-08-09T09:08:44","guid":{"rendered":""},"modified":"2023-09-05T11:14:14","modified_gmt":"2023-09-05T11:14:14","slug":"fastapi","status":"publish","type":"wiki","link":"https:\/\/oneproxy.pro\/ua\/wiki\/fastapi\/","title":{"rendered":"FastAPI"},"content":{"rendered":"<p>FastAPI \u2014 \u0446\u0435 \u0432\u0438\u0441\u043e\u043a\u043e\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0430, \u043f\u0440\u043e\u0441\u0442\u0430 \u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u0456 \u0432\u0435\u0431-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f API \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e Python 3.6+ \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0445 \u043f\u0456\u0434\u043a\u0430\u0437\u043e\u043a \u0442\u0438\u043f\u0443 Python. \u0412\u0456\u043d \u0431\u0443\u0432 \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u0438\u0439 \u0442\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u0449\u043e\u0431 \u0431\u0443\u0442\u0438 \u0434\u0443\u0436\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u0432\u0430\u043d\u0438\u043c \u0456 \u043f\u0440\u043e\u0441\u0442\u0438\u043c \u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u0456, \u0432\u043e\u0434\u043d\u043e\u0447\u0430\u0441 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u044e\u0447\u0438 \u043d\u0430\u0434\u0456\u0439\u043d\u0438\u0439 \u043d\u0430\u0431\u0456\u0440 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u044f\u043a\u0456 \u0440\u043e\u0431\u043b\u044f\u0442\u044c \u0439\u043e\u0433\u043e \u0447\u0443\u0434\u043e\u0432\u0438\u043c \u0432\u0438\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u0441\u0443\u0447\u0430\u0441\u043d\u043e\u0457 \u0432\u0435\u0431-\u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438.<\/p>\n<h2>\u0413\u0435\u043d\u0435\u0437\u0438\u0441 FastAPI<\/h2>\n<p>FastAPI \u0431\u0443\u0432 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0439 \u0421\u0435\u0431\u0430\u0441\u0442\u044c\u044f\u043d\u043e\u043c \u0420\u0430\u043c\u0456\u0440\u0435\u0441\u043e\u043c \u0456 \u0432\u043f\u0435\u0440\u0448\u0435 \u0432\u0438\u043f\u0443\u0449\u0435\u043d\u0438\u0439 \u0443 \u0433\u0440\u0443\u0434\u043d\u0456 2018 \u0440\u043e\u043a\u0443. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u044e \u043c\u043e\u0442\u0438\u0432\u0430\u0446\u0456\u0454\u044e \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438 FastAPI \u0431\u0443\u043b\u043e \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0432\u0435\u0431-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443, \u044f\u043a\u0430 \u0431\u0443\u043b\u0430 \u0431 \u0432\u0438\u0441\u043e\u043a\u043e\u0435\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u044e \u0442\u0430 \u0437\u0440\u0443\u0447\u043d\u043e\u044e \u0434\u043b\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0447\u0438 \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u043d\u043e\u0432\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439 Python, \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u043e \u043f\u0456\u0434\u043a\u0430\u0437\u043a\u0438 \u0442\u0438\u043f\u0443 Python 3.6+. \u041f\u0435\u0440\u0448\u0456 \u0437\u0433\u0430\u0434\u043a\u0438 \u043f\u0440\u043e FastAPI \u0437\u2019\u044f\u0432\u0438\u043b\u0438\u0441\u044f \u043d\u0430 GitHub, \u0434\u0435 \u0437 \u0442\u0438\u0445 \u043f\u0456\u0440 \u0432\u0456\u043d \u043d\u0430\u0431\u0443\u0432 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u0456 \u0437\u0430\u0432\u0434\u044f\u043a\u0438 \u0441\u0432\u043e\u0457\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0456, \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0442\u0430 \u0447\u0443\u0434\u043e\u0432\u0456\u0439 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0446\u0456 \u0441\u043f\u0456\u043b\u044c\u043d\u043e\u0442\u0438.<\/p>\n<h2>\u0423 \u0441\u0432\u0456\u0442\u0456 FastAPI<\/h2>\n<p>FastAPI \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0456\u044e \u0430\u043d\u043e\u0442\u0430\u0446\u0456\u0439 \u0442\u0438\u043f\u0456\u0432 \u0456 \u043f\u043e\u0442\u0443\u0436\u043d\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 Starlette \u0434\u043b\u044f \u0432\u0435\u0431-\u0447\u0430\u0441\u0442\u0438\u043d. \u0412\u0456\u043d \u0442\u0430\u043a\u043e\u0436 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 Pydantic \u0434\u043b\u044f \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u0434\u0430\u043d\u0438\u0445. \u0426\u0456 \u0434\u0432\u0430 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0456 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0438 \u0432 \u043f\u043e\u0454\u0434\u043d\u0430\u043d\u043d\u0456 \u0437 \u0443\u043d\u0456\u043a\u0430\u043b\u044c\u043d\u0438\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u044f\u043c\u0438 FastAPI \u0440\u043e\u0431\u043b\u044f\u0442\u044c \u0439\u043e\u0433\u043e \u043f\u043e\u0442\u0443\u0436\u043d\u0438\u043c \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0434\u043b\u044f \u0432\u0435\u0431-\u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438.<\/p>\n<p>\u041d\u0430 \u0432\u0456\u0434\u043c\u0456\u043d\u0443 \u0432\u0456\u0434 \u0434\u0435\u044f\u043a\u0438\u0445 \u0456\u043d\u0448\u0438\u0445 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0456\u0432, FastAPI \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u0438\u0439 \u044f\u043a \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0438\u0439, \u0449\u043e \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u0439\u043e\u043c\u0443 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u043a\u0456\u043b\u044c\u043a\u0430 \u0437\u0430\u043f\u0438\u0442\u0456\u0432 \u043e\u0434\u043d\u043e\u0447\u0430\u0441\u043d\u043e. \u0426\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0456\u0441\u0442\u044c \u0434\u043e\u0441\u044f\u0433\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043a\u043b\u044e\u0447\u043e\u0432\u0438\u0445 \u0441\u043b\u0456\u0432 Python async \u0456 await, \u0449\u043e \u0440\u043e\u0431\u0438\u0442\u044c FastAPI \u0447\u0443\u0434\u043e\u0432\u0438\u043c \u0432\u0438\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c \u0456 \u043c\u0456\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0456\u0441\u0456\u0432 \u0443 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u0430\u0441\u0456.<\/p>\n<h2>\u041e\u0441\u043d\u043e\u0432\u043d\u0456 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 FastAPI<\/h2>\n<p>FastAPI \u043c\u0430\u0454 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u043d\u0430\u0431\u0456\u0440 \u0444\u0443\u043d\u043a\u0446\u0456\u0439, \u044f\u043a\u0456 \u0432\u0456\u0434\u0440\u0456\u0437\u043d\u044f\u044e\u0442\u044c \u0439\u043e\u0433\u043e \u0432\u0456\u0434 \u0456\u043d\u0448\u0438\u0445 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0456\u0432:<\/p>\n<ol>\n<li><strong>\u0448\u0432\u0438\u0434\u043a\u043e<\/strong>: \u0426\u0435 \u043e\u0434\u043d\u0430 \u0437 \u043d\u0430\u0439\u0448\u0432\u0438\u0434\u0448\u0438\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0456\u0432, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0445 \u0434\u043b\u044f Python, \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0447\u0438\u0441\u044c \u043b\u0438\u0448\u0435 NodeJS \u0456 Go \u0437\u0430 \u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044e.<\/li>\n<li><strong>\u043b\u0435\u0433\u043a\u043e<\/strong>: \u0432\u0456\u043d \u0434\u0443\u0436\u0435 \u0437\u0440\u0443\u0447\u043d\u0438\u0439 \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0456\u0432, \u0432\u0438\u043c\u0430\u0433\u0430\u0454 \u043c\u0435\u043d\u0448\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0443, \u0449\u043e \u043f\u043e\u043b\u0435\u0433\u0448\u0443\u0454 \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f \u043d\u043e\u0432\u0438\u043c \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0430\u043c.<\/li>\n<li><strong>\u0406\u043d\u0442\u0443\u0457\u0442\u0438\u0432\u043d\u043e \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u043b\u0438\u0439<\/strong>: FastAPI \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u043f\u0435\u0440\u0435\u0432\u0430\u0433\u0438 \u043f\u0456\u0434\u043a\u0430\u0437\u043a\u0438 \u0442\u0438\u043f\u0443 Python \u0434\u043b\u044f \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u043d\u043e\u0457 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0438 \u0434\u0430\u043d\u0438\u0445, \u0441\u0435\u0440\u0456\u0430\u043b\u0456\u0437\u0430\u0446\u0456\u0457 \u0442\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u0457.<\/li>\n<li><strong>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432<\/strong>: FastAPI \u0431\u0430\u0437\u0443\u0454\u0442\u044c\u0441\u044f (\u0456 \u043f\u043e\u0432\u043d\u0456\u0441\u0442\u044e \u0441\u0443\u043c\u0456\u0441\u043d\u0438\u0439 \u0437) \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c\u0438 \u0434\u043b\u044f API: OpenAPI (\u0440\u0430\u043d\u0456\u0448\u0435 \u0432\u0456\u0434\u043e\u043c\u0438\u0439 \u044f\u043a Swagger) \u0456 JSON Schema.<\/li>\n<li><strong>\u041c\u0456\u0446\u043d\u0438\u0439<\/strong>: \u0412\u0456\u043d \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u043e\u0431\u0440\u043e\u0431\u043a\u0443 \u0430\u0432\u0442\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u0457 OAuth2, \u0432\u0435\u0431-\u0442\u043e\u043a\u0435\u043d\u0438 JSON, HTTP\/2 \u0456 WebSockets.<\/li>\n<li><strong>\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u0432\u0430\u043d\u0438\u0439<\/strong>: FastAPI \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0443\u0454 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0443 \u043e\u0431\u0440\u043e\u0431\u043a\u0443 \u0437\u0430\u043f\u0438\u0442\u0456\u0432, \u0449\u043e \u0440\u043e\u0431\u0438\u0442\u044c \u0439\u043e\u0433\u043e \u0447\u0443\u0434\u043e\u0432\u0438\u043c \u0432\u0438\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u0440\u043e\u0431\u043a\u0438 \u0434\u043e\u0432\u0433\u043e\u0442\u0440\u0438\u0432\u0430\u043b\u0438\u0445 \u0437\u2019\u0454\u0434\u043d\u0430\u043d\u044c \u0456 \u043e\u043d\u043e\u0432\u043b\u0435\u043d\u044c \u0443 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u0430\u0441\u0456.<\/li>\n<\/ol>\n<h2>\u0422\u0438\u043f\u0438 \u0434\u043e\u0434\u0430\u0442\u043a\u0456\u0432 FastAPI<\/h2>\n<p>\u041d\u0435 \u0456\u0441\u043d\u0443\u0454 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u0445 \u00ab\u0442\u0438\u043f\u0456\u0432\u00bb FastAPI, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0446\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430, \u0430 \u043d\u0435 \u043a\u043b\u0430\u0441\u0438\u0444\u0456\u043a\u0430\u0446\u0456\u044f. \u041e\u0434\u043d\u0430\u043a \u0439\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0440\u0456\u0437\u043d\u0438\u0445 \u0442\u0438\u043f\u0456\u0432 \u0432\u0435\u0431-\u0434\u043e\u0434\u0430\u0442\u043a\u0456\u0432:<\/p>\n<ol>\n<li><strong>API<\/strong>: \u0432 \u043f\u0435\u0440\u0448\u0443 \u0447\u0435\u0440\u0433\u0443 \u0440\u043e\u0437\u0440\u043e\u0431\u043b\u0435\u043d\u043e \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043d\u0430\u0434\u0456\u0439\u043d\u0438\u0445 \u0456 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u0432\u0430\u043d\u0438\u0445 API.<\/li>\n<li><strong>\u0412\u0435\u0431-\u0434\u043e\u0434\u0430\u0442\u043a\u0438<\/strong>: \u0439\u043e\u0433\u043e \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u043f\u043e\u0432\u043d\u043e\u0446\u0456\u043d\u043d\u0438\u0445 \u0432\u0435\u0431-\u0434\u043e\u0434\u0430\u0442\u043a\u0456\u0432.<\/li>\n<li><strong>\u041c\u0456\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0456\u0441\u0438<\/strong>: FastAPI \u0454 \u0447\u0443\u0434\u043e\u0432\u0438\u043c \u0432\u0438\u0431\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u043c\u0456\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0456\u0441\u0456\u0432 \u0437\u0430\u0432\u0434\u044f\u043a\u0438 \u0441\u0432\u043e\u0457\u0439 \u0448\u0432\u0438\u0434\u043a\u043e\u0441\u0442\u0456 \u0442\u0430 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u0432\u0430\u043d\u043e\u0441\u0442\u0456.<\/li>\n<li><strong>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u0430\u0441\u0456<\/strong>: \u0417\u0430\u0432\u0434\u044f\u043a\u0438 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u0446\u0456 WebSockets \u0432\u0456\u043d \u043f\u0456\u0434\u0445\u043e\u0434\u0438\u0442\u044c \u0434\u043b\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0430\u0441\u0443.<\/li>\n<\/ol>\n<h2>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0456 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0442\u0430 \u0432\u0438\u0440\u0456\u0448\u0435\u043d\u043d\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e FastAPI<\/h2>\n<p>FastAPI \u0448\u0438\u0440\u043e\u043a\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0432 \u0433\u0430\u043b\u0443\u0437\u044f\u0445, \u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0447\u0438 \u0432\u0456\u0434 \u0444\u0456\u043d\u0442\u0435\u0445 \u0434\u043e \u0431\u0456\u043e\u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0456\u0439, \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0437\u0430\u0432\u0434\u0430\u043d\u044c, \u044f\u043a \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f RESTful API, \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u0432 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0447\u0430\u0441\u0456 \u0442\u043e\u0449\u043e.<\/p>\n<p>\u041e\u0434\u043d\u0456\u0454\u044e \u0437 \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u043f\u0456\u0434 \u0447\u0430\u0441 \u0440\u043e\u0431\u043e\u0442\u0438 \u0437 API \u0454 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430 \u0432\u0445\u0456\u0434\u043d\u0438\u0445 \u0434\u0430\u043d\u0438\u0445. FastAPI \u0432\u0438\u0440\u0456\u0448\u0443\u0454 \u0446\u0435 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043f\u0456\u0434\u043a\u0430\u0437\u043e\u043a \u0442\u0438\u043f\u0443 Python \u0456 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0438 Pydantic, \u044f\u043a\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0443\u0454 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0443 \u0434\u0430\u043d\u0438\u0445. \u0406\u043d\u0448\u043e\u044e \u043f\u043e\u0448\u0438\u0440\u0435\u043d\u043e\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u044e \u0454 \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f\u043c\u0438. FastAPI \u0456\u0437 \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u043e\u044e \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u043e\u044e Python asyncio \u0441\u043f\u0440\u043e\u0449\u0443\u0454 \u0440\u043e\u0431\u043e\u0442\u0443 \u0437 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0437\u0430\u0432\u0434\u0430\u043d\u043d\u044f\u043c\u0438.<\/p>\n<h2>FastAPI \u043f\u0440\u043e\u0442\u0438 \u0456\u043d\u0448\u0438\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0456\u0432<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u041e\u0441\u043e\u0431\u043b\u0438\u0432\u0456\u0441\u0442\u044c<\/th>\n<th>FastAPI<\/th>\n<th>\u041a\u043e\u043b\u0431\u0430<\/th>\n<th>\u0414\u0436\u0430\u043d\u0433\u043e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u0448\u0432\u0438\u0434\u043a\u0456\u0441\u0442\u044c<\/td>\n<td>\u0414\u0443\u0436\u0435 \u0432\u0438\u0441\u043e\u043a\u043e<\/td>\n<td>\u041f\u043e\u043c\u0456\u0440\u043d\u0438\u0439<\/td>\n<td>\u041f\u043e\u043c\u0456\u0440\u043d\u0438\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u041a\u0440\u0438\u0432\u0430 \u043d\u0430\u0432\u0447\u0430\u043d\u043d\u044f<\/td>\n<td>\u041d\u0438\u0437\u044c\u043a\u0438\u0439<\/td>\n<td>\u041d\u0438\u0437\u044c\u043a\u0438\u0439<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u0413\u043d\u0443\u0447\u043a\u0456\u0441\u0442\u044c<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<td>\u041f\u043e\u043c\u0456\u0440\u043d\u0438\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u041c\u0430\u0441\u0448\u0442\u0430\u0431\u043e\u0432\u0430\u043d\u0456\u0441\u0442\u044c<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<td>\u041f\u043e\u043c\u0456\u0440\u043d\u0438\u0439<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u0412\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<td>\u041f\u043e\u043c\u0456\u0440\u043d\u0438\u0439<\/td>\n<td>\u0412\u0438\u0441\u043e\u043a\u0438\u0439<\/td>\n<\/tr>\n<tr>\n<td>\u0410\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u0430 \u043f\u0456\u0434\u0442\u0440\u0438\u043c\u043a\u0430<\/td>\n<td>\u0422\u0430\u043a<\/td>\n<td>\u041d\u0435\u043c\u0430\u0454<\/td>\n<td>\u041d\u0435\u043c\u0430\u0454<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u041c\u0430\u0439\u0431\u0443\u0442\u043d\u0454 FastAPI<\/h2>\n<p>\u041c\u0430\u0439\u0431\u0443\u0442\u043d\u0454 FastAPI \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0454 \u0431\u0430\u0433\u0430\u0442\u043e\u043e\u0431\u0456\u0446\u044f\u044e\u0447\u0438\u043c. \u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 \u0456\u0437 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c \u0432\u0438\u0445\u0456\u0434\u043d\u0438\u043c \u043a\u043e\u0434\u043e\u043c, \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044c \u0443\u0447\u0430\u0441\u043d\u0438\u043a\u0456\u0432 \u043f\u043e\u0441\u0442\u0456\u0439\u043d\u043e \u0437\u0440\u043e\u0441\u0442\u0430\u0454, \u0430 \u0446\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e \u043c\u043e\u0436\u043d\u0430 \u043e\u0447\u0456\u043a\u0443\u0432\u0430\u0442\u0438 \u043d\u043e\u0432\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0456\u0439 \u0456 \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u044c. \u041e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0432\u0441\u0435 \u0431\u0456\u043b\u044c\u0448\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0439 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c FastAPI \u0434\u043b\u044f \u0441\u0432\u043e\u0457\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0456\u0432, \u043c\u043e\u0436\u043d\u0430 \u0437 \u0443\u043f\u0435\u0432\u043d\u0435\u043d\u0456\u0441\u0442\u044e \u043f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u0442\u0438, \u0449\u043e \u0432\u0456\u043d \u0437\u0430\u043b\u0438\u0448\u0430\u0442\u0438\u043c\u0435\u0442\u044c\u0441\u044f \u0432\u0430\u0436\u043b\u0438\u0432\u0438\u043c \u0433\u0440\u0430\u0432\u0446\u0435\u043c \u0443 \u0441\u0432\u0456\u0442\u0456 \u0432\u0435\u0431-\u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0456\u0432 Python.<\/p>\n<p>\u041d\u043e\u0432\u0456 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0456\u0457, \u0442\u0430\u043a\u0456 \u044f\u043a \u0431\u0435\u0437\u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0430 \u0430\u0440\u0445\u0456\u0442\u0435\u043a\u0442\u0443\u0440\u0430, \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0438\u0437\u0430\u0446\u0456\u044f \u0442\u0430 \u043c\u0456\u043a\u0440\u043e\u0441\u0435\u0440\u0432\u0456\u0441\u0438, \u0442\u0430\u043a\u043e\u0436 \u0441\u0443\u043c\u0456\u0441\u043d\u0456 \u0437 FastAPI. \u0422\u043e\u043c\u0443 \u043e\u0447\u0456\u043a\u0443\u0454\u0442\u044c\u0441\u044f, \u0449\u043e \u0432\u0456\u043d \u0431\u0443\u0434\u0435 \u0430\u0434\u0430\u043f\u0442\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0442\u0430 \u0440\u043e\u0437\u0432\u0438\u0432\u0430\u0442\u0438\u0441\u044f \u0440\u0430\u0437\u043e\u043c \u0456\u0437 \u0446\u0438\u043c\u0438 \u043d\u043e\u0432\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u0430\u043c\u0438.<\/p>\n<h2>\u041f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440\u0438 \u0442\u0430 FastAPI<\/h2>\n<p>\u041f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 \u2014 \u0446\u0435 \u0441\u0435\u0440\u0432\u0435\u0440, \u044f\u043a\u0438\u0439 \u0434\u0456\u0454 \u044f\u043a \u043f\u043e\u0441\u0435\u0440\u0435\u0434\u043d\u0438\u043a \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0442\u0456\u0432 \u0432\u0456\u0434 \u043a\u043b\u0456\u0454\u043d\u0442\u0456\u0432, \u044f\u043a\u0456 \u0448\u0443\u043a\u0430\u044e\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u0438 \u0437 \u0456\u043d\u0448\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0456\u0432. \u0419\u043e\u0433\u043e \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0432 \u043f\u043e\u0454\u0434\u043d\u0430\u043d\u043d\u0456 \u0437 FastAPI \u0434\u043b\u044f \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0435\u043d\u043d\u044f \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u0445 \u0440\u0456\u0432\u043d\u0456\u0432 \u0431\u0435\u0437\u043f\u0435\u043a\u0438, \u0431\u0430\u043b\u0430\u043d\u0441\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0442\u0430 \u043a\u0435\u0448\u0443\u0432\u0430\u043d\u043d\u044f.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0443 \u0442\u0438\u043f\u043e\u0432\u043e\u043c\u0443 \u0432\u0430\u0440\u0456\u0430\u043d\u0442\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0443 \u0432\u0430\u0441 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0430 FastAPI, \u044f\u043a\u0430 \u043f\u0440\u0430\u0446\u044e\u0454 \u0437\u0430 \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u0442\u0438 \u0437\u0430\u043f\u0438\u0442\u0438 \u0442\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043c\u0456\u0436 \u043a\u043b\u0456\u0454\u043d\u0442\u043e\u043c \u0456 \u0432\u0430\u0448\u043e\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043e\u044e FastAPI. \u0412\u0456\u043d \u043c\u043e\u0436\u0435 \u043a\u0435\u0448\u0443\u0432\u0430\u0442\u0438 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u0432\u0456\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 FastAPI, \u0437\u043c\u0435\u043d\u0448\u0443\u044e\u0447\u0438 \u043d\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0442\u0430 \u043f\u043e\u043a\u0440\u0430\u0449\u0443\u044e\u0447\u0438 \u0447\u0430\u0441 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456. \u041a\u0440\u0456\u043c \u0442\u043e\u0433\u043e, \u043f\u0440\u043e\u043a\u0441\u0456-\u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u0435 \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0438\u0442\u0438 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u0437\u0430\u0445\u043e\u0434\u0438 \u0431\u0435\u0437\u043f\u0435\u043a\u0438, \u044f\u043a-\u043e\u0442 \u043e\u0431\u043c\u0435\u0436\u0435\u043d\u043d\u044f \u0448\u0432\u0438\u0434\u043a\u043e\u0441\u0442\u0456 \u0430\u0431\u043e \u0431\u043b\u043e\u043a\u0443\u0432\u0430\u043d\u043d\u044f \u043f\u0435\u0432\u043d\u0438\u0445 IP-\u0430\u0434\u0440\u0435\u0441.<\/p>\n<h2>\u041f\u043e\u0432&#039;\u044f\u0437\u0430\u043d\u0456 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f<\/h2>\n<ul>\n<li>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0439 FastAPI GitHub: <a href=\"https:\/\/github.com\/tiangolo\/fastapi\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/github.com\/tiangolo\/fastapi<\/a><\/li>\n<li>\u041e\u0444\u0456\u0446\u0456\u0439\u043d\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u044f FastAPI: <a href=\"https:\/\/fastapi.tiangolo.com\/\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/fastapi.tiangolo.com\/<\/a><\/li>\n<li>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0439 Starlette GitHub: <a href=\"https:\/\/github.com\/encode\/starlette\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/github.com\/encode\/starlette<\/a><\/li>\n<li>\u0420\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0456\u0439 Pydantic GitHub: <a href=\"https:\/\/github.com\/samuelcolvin\/pydantic\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/github.com\/samuelcolvin\/pydantic<\/a><\/li>\n<li>\u0406\u043d\u0456\u0446\u0456\u0430\u0442\u0438\u0432\u0430 OpenAPI: <a href=\"https:\/\/www.openapis.org\/\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/www.openapis.org\/<\/a><\/li>\n<li>\u0421\u0445\u0435\u043c\u0430 JSON: <a href=\"https:\/\/json-schema.org\/\" target=\"_new\" rel=\"noopener nofollow\">https:\/\/json-schema.org\/<\/a><\/li>\n<\/ul>","protected":false},"featured_media":468376,"menu_order":0,"template":"","meta":{"_acf_changed":false,"content-type":"","inline_featured_image":false,"footnotes":""},"class_list":["post-477190","wiki","type-wiki","status-publish","has-post-thumbnail","hentry"],"acf":{"faq_title":"Frequently Asked Questions about <mark>FastAPI: A Revolution in Web Development<\/mark>","faq_items":[{"question":"What is FastAPI?","answer":"<p>FastAPI is a high-performance web framework for building APIs with Python 3.6+. It is designed to be efficient, user-friendly, and supports asynchronous request handling.<\/p>"},{"question":"Who created FastAPI and when was it first released?","answer":"<p>FastAPI was created by Sebasti\u00e1n Ram\u00edrez and was first released in December 2018.<\/p>"},{"question":"What are the key features of FastAPI?","answer":"<p>FastAPI boasts several key features, including high speed, easy-to-use development, automatic data validation, and compatibility with open standards like OpenAPI and JSON Schema. It also supports OAuth2 authentication, JSON Web Tokens, HTTP\/2, and WebSockets.<\/p>"},{"question":"What types of applications can be built using FastAPI?","answer":"<p>FastAPI can be used to build a variety of applications, including APIs, web applications, microservices, and real-time applications.<\/p>"},{"question":"How does FastAPI compare to other frameworks like Flask and Django?","answer":"<p>When compared to Flask and Django, FastAPI stands out with its blazing speed, low learning curve, high flexibility, and excellent scalability. Additionally, it supports asynchronous request handling, which the other frameworks lack.<\/p>"},{"question":"What is the future outlook for FastAPI?","answer":"<p>The future of FastAPI looks promising as it is an open-source project with a growing community of contributors. It is expected to adapt to emerging technologies like serverless architecture and microservices.<\/p>"},{"question":"How can proxy servers be used with FastAPI?","answer":"<p>Proxy servers can be combined with FastAPI to provide additional security, load balancing, and caching. They act as intermediaries between the client and FastAPI application, enhancing performance and security.<\/p>"},{"question":"Where can I find more information about FastAPI?","answer":"<p>For more information about FastAPI, you can visit the official GitHub repository (<a href=\"https:\/\/github.com\/tiangolo\/fastapi\" target=\"_new\">https:\/\/github.com\/tiangolo\/fastapi<\/a>) or the official documentation (<a href=\"https:\/\/fastapi.tiangolo.com\/\" target=\"_new\">https:\/\/fastapi.tiangolo.com\/<\/a>). You may also explore related resources like Starlette (<a href=\"https:\/\/github.com\/encode\/starlette\" target=\"_new\">https:\/\/github.com\/encode\/starlette<\/a>) and Pydantic (<a href=\"https:\/\/github.com\/samuelcolvin\/pydantic\" target=\"_new\">https:\/\/github.com\/samuelcolvin\/pydantic<\/a>) used in conjunction with FastAPI.<\/p>"}]},"_links":{"self":[{"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/wiki\/477190","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/wiki"}],"about":[{"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/types\/wiki"}],"version-history":[{"count":0,"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/wiki\/477190\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/media\/468376"}],"wp:attachment":[{"href":"https:\/\/oneproxy.pro\/ua\/wp-json\/wp\/v2\/media?parent=477190"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}