åãã« ãã®è¨äºã¯commmune Advent Calendar 2023ã®8æ¥ç®ã¨ãã¦æ稿ããã¾ããã O'REILLYãµãã¹ã¯å§ãã¾ãã å¼ç¤¾ã§ã¯ãO'REILLY社ã®æ¬èªã¿æ¾é¡ã®ãµãã¹ã¯O'Reilly Online Learningãã¨ã³ã¸ãã¢ã«æä¾ãã¦ãã¾ããããã¯ä¸»ã«ãã¨ã³ã¸ãã¢å ¨ä½ã®æè¡åã®åºä¸ããã¨ãå ±éèªèå½¢æããç®çã¨ãããã®ã§ãã (åè: https://note.com/commmune/n/n88a9731812ba) å¿è«å人ã§èªããã¨ãã®å¯è½ã§ããæè§ã ãããã¼ã ã§åãæ¬ãèªã¿ããã¨æã輪èªä¼ãéå¬ãã¦ããã¾ãããã®ä¸ã§ç¹ã«å¹æçã ã£ã輪èªä¼ã®ææ³ã«ã¤ãã¦å ±æãããã¨æãã¾ãã 輪èªä¼ã®åé¡ç¹ ãã輪èªä¼ã社å ã§éå¬ãããã¨æã£ã¦ãæ§ã ãªåé¡ç¹ãæãããã¾ããã代表çãªã®ã以ä¸ã®3ç¹ã§ãã 輪èªä¼æºåã®ããã«æ¬ãèªãæéããªã åå è ã®ã¹ã±ã¸ã¥ã¼ã«èª¿æ´ãé£
ã¿ãªãããããã«ã¡ã¯ã ä»åã¯ååãæ稿ããJWTã®èå¯ãè¸ã¾ãã¦ã ã¦ã¼ã¶èªè¨¼ï¼ãã°ã¤ã³ï¼å¾ã«JWTãçºè¡ããã¨ããã¾ã§å®è£ ããã£ã¦ã¿ã¾ãã æè¿ä½¿ã£ã¦ããfastapiã使ç¨ãã¦å®è£ ãã¾ãã ç°å¢æ å ±ç°å¢æ å ±ã¯ä»¥ä¸ã®éãã§ãã # cat /etc/redhat-release CentOS Linux release 7.8.2003 (Core) # python --version Python 3.8.5fastapiãåä½ãããããã®packageã®ã¤ã³ã¹ãã¼ã«ãã¤ãéãä»®æ³ç°å¢ãä½æãã¦ãéçºãã¾ãã # python -m venv my_fastapi_env # ls my_fastapi_env # cd ~/<dev_dir>/my_fastapi # pip install --upgrade pip Collecting pip Downloading pip
FastAPIã使ç¨ããBasicèªè¨¼ãå®ç¾ããããã®æ¹æ³ãç´¹ä»ãã¾ãã ååã¯æä½éåä½ããFastAPIç°å¢ãä½æããã®ã§ãä»åã¯èªè¨¼æ©è½ç·¨ã¨ãªãã¾ãã èªè¨¼æ©è½ã®å®è£ ããåä½ã®ç¢ºèªã¾ã§è¡ãã¾ãã ç°å¢æ§ç¯ç·¨ ã¦ã¼ã¶èªè¨¼ã®å®è£ ãã¼ã¿ãã¼ã¹ã¨ã®æ¥ç¶ãã¼ã¿ãã¼ã¹ãæ¥ç¶ããããã®ã©ã¤ãã©ãªãä½æãã¾ãã æ¥ç¶å ã®æ å ±ã¯docker-composeã§MySQLã«è¨å®ãããã®ã使ç¨ãã¾ãã é常ã§ããã°è¨å®ãã¡ã¤ã«ãç°å¢å¤æ°ã«æ¥ç¶å æ å ±ãå¤ã ãããã¹ãã§ãããä»åã¯ç°¡ç¥åã®ãããªãã©ã«ã§æ¸ãè¾¼ã¿ã¾ãã src/app/lib/database.pyfrom sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessio
NTT ãªã¼ãã³ã½ã¼ã¹ã½ããã¦ã§ã¢ã»ã³ã¿ æ¿å£ è²´è£ Windows Vista 㸠PostgreSQL ãã¤ã³ã¹ãã¼ã«ãããã¼ã¿ãã¼ã¹ãå©ç¨ããããã®ç°å¢ãæ´ãã¾ããã¤ã³ã¹ãã¼ã«ã«ã¯ EnterpriseDB 社ã®ãã¤ããªã»ããã±ã¼ã¸ã使ãã¾ãã解説ã®æå¾ã§ãåæè¨å®ããã¼ã¿ã®ç§»åã«é¢ããããããã質åã«ã¤ãã¦ãè£è¶³ãã¾ãã ã¤ã³ã¹ãã¼ã«ã®æµã æåã«ã¤ã³ã¹ãã¼ã«ãä½ãè¡ãã®ãã¨ãã¤ã³ã¹ãã¼ã«ããããã¡ã¤ã«ãæ´çãã¦ããã¾ããPostgreSQL ãµã¼ãæ¬ä½ã«é¢ãã¦ã¯ãã¦ã£ã¶ã¼ãã«å¾ãã°ä¸æ¬ã§ã¤ã³ã¹ãã¼ã«ããã¾ãã ãã¦ã³ãã¼ã ãã¼ã¸ã§ã³ 8.4 ã§ã¯ãWindows ç¨ã®ããã±ã¼ã¸ã¯ EnterpriseDB 社ã«ããã¡ã³ããã³ã¹ããã¦ãã¾ããã³ãã¥ããã£ã®ãã¦ã³ãã¼ããã¼ã¸ãã辿ããã¤ã³ã¹ãã¼ã©ãå©ç¨ããã®ãæ軽ã§ããpostgresql-8.4.0-1-windows.exe
ãçµæ¸ã«ã¨ã£ã¦ã®ãã¼ã¿ã®ä¾¡å¤ã¯ã30å¹´åã¨æ¯è¼ãã¦1,000å以ä¸ã§ããã ç¾Snowflakeã®CEOã§ãããã©ã³ã¯ã»ã¹ã«ã¼ããã³ (Frank Slootman) ã¯ããèªã (1)ã 2012å¹´ã«åµæ¥ããSnowflakeã¯ãã¯ã©ã¦ããã¼ã¿ã¦ã§ã¢ãã¦ã¹ã®ãªã¼ãã¼çåå¨ã«æé·ãã2020å¹´ã«ã¯ããã¾ã§ã®ã½ããã¦ã§ã¢ä¼æ¥ã¨ãã¦å²ä¸æ大è¦æ¨¡ã®IPOãæãããã ããã¦ä»ãªããSnowflakeã¯ãã®ãã¼ã±ãããç½å¼ãç¶ããç¬èªã®ã¢ããã¼ãã«ãã£ã¦å§åçãªç«¶äºåªä½æ§ãç¯ãä¸ãã¦ããã ã©ããã¦ããã¾ã§ã®æé·ãéãããã¨ãã§ããã®ãã ãã®è¨äºã§ã¯ãSnowflakeããã¤ç«¶ååªä½æ§ã¨ãæé·ãå®ç¾ããã¦ãã¼ã¯ãªçµå¶æ¦ç¥ãç´è§£ãã¦ããããã å¼·åºãªãããã¯ãã®ç«¶ååªä½æ§Snowflakeãæä¾ããã½ãªã¥ã¼ã·ã§ã³ã¯ãã¯ã©ã¦ãä¸ã®ãã¼ã¿ã¦ã§ã¢ãã¦ã¹ã«å¯¾ãã¦ç°¡åãã¤æè»ã«åæãå®è¡ãããã¨ãã§ããã¨ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}