PyCon JP 2021 çºè¡¨è³æã§ãã
ã¯ããã« æ¬è¨äºã¯ããFastAPI for Flask Usersãã翻訳ãããã®ã«ãªãã¾ãã ãã®è¨äºã§ã¯ãFlaskã¨FastAPIãæ¯è¼ããªãããããããã解説ããè¨äºãªã®ã§ã許å¯ãã¨ã£ã¦ç¿»è¨³ãããã¨ã«ãã¾ããã 以ä¸ãæ¬æã«ãªãã¾ãã è¨äºæ¬æ Flaskã¯æ©æ¢°å¦ç¿ããã¸ã§ã¯ãã§ã®APIéçºã®äºå®ä¸ã®é¸æè¢ã¨ãªã£ã¦ãã¾ããã FastAPIã¨å¼ã°ããæ°ãããã¬ã¼ã ã¯ã¼ã¯ããããã³ãã¥ããã£ã¼ããå¤ãã®æ¯æãå¾ã¦ãã¾ãã æè¿ãFlaskã§ä½æãããæ¬çªããã¸ã§ã¯ãã移è¡ãããã¨ã«ãªããFastAPIã試ãã¦ã¿ããã¨ã«ãã¾ããã FastAPIã¯Flaskã©ã¤ã¯ãªææ³ã§è¨è¿°ããã¦ããã®ã§ã移ãæ¿ããé常ã«ç°¡åã§ããããæ°æéã§èµ·åãã¦å®è¡ã§ãã¾ããã èªåãã¼ã¿æ¤è¨¼ãããã¥ã¡ã³ãçæãããã³pydanticã¹ãã¼ããpythonã¿ã¤ãã³ã°ãªã©ã®ãã¹ããã©ã¯ãã£ã¹ã®è¿½å ã«ãããããã¯
ããã«ã¡ã¯ãããã«ãã§ããããã¿ã¤ã ã¸ã£ãã³ã§å ¬å ±äº¤éã®æå»è¡¨ã使ã£ããµã¼ãã¹éçºããªãªã¼ã¹ããã¼ã®æ¹åãæ å½ãã¦ãã¾ãã ä»å㯠Python 製㮠Web ãã¬ã¼ã ã¯ã¼ã¯ã¨ã㦠FastAPI ãå°å ¥ãã話ããããã¨æãã¾ãã Python 製㮠Web ãã¬ã¼ã ã¯ã¼ã¯Python ã«ã¯ä»£è¡¨ç㪠Web ãã¬ã¼ã ã¯ã¼ã¯ã 2 ã¤ããã¾ãã ã»Django: ãã«ã¹ã¿ãã¯ãã¬ã¼ã ã¯ã¼ã¯ ã»Flask: ãã¤ã¯ããã¬ã¼ã ã¯ã¼ã¯ Django ã¯å¤§è¦æ¨¡éçºåããFlask ã¯å°ä¸è¦æ¨¡éçºåãã¨è¨ããã¾ãããä»åéçºãããµã¼ãã¯å°è¦æ¨¡ãªãµã¼ãã ã£ãããã以å㯠Flask ã§éçºãã¦ãã¾ããã ããããã©ã¡ãã®ãã¬ã¼ã ã¯ã¼ã¯ã使ãå ´åã§ãä¸è¨ã®ãããªæ©è½ã使ããã¨ããã¨ãã©ã°ã¤ã³ããµã¼ããã¼ãã£ã®å©ããåããå¿ è¦ãããã¾ãã ã»OpenAPI ã»JSON Schema ã»GraphQL ã»We
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}