ããã°ã©ãã¼ããããããªã«ãã¨ç¬èªã®ããè¨èªãä½ããã¡ãã©ãããããããã§ãã
æ¨æ¥ã11 æ 16 æ¥ã«éå¬ããã WEBã¨ã³ã¸ãã¢åå¼·ä¼ #15 ã® LT 10 åæ ã§ããã¹ããã JSON ã CSV ã«èªåå¤æãã Python ã©ã¤ãã©ãªãä½ã£ããã¨ããã¿ã¤ãã«ã§ç»å£ãã¦ãã¾ããã
ã¹ã©ã¤ãã¯ä»¥ä¸ã§ãã
ネストした JSON を CSV に自動変換する Pythonライブラリを作った - Google スライド
çºè¡¨ã®å 容èªä½ã¯ã以åã®è¨äºã®ä¸èº«ããããããã解説ãã¾ããã
å人çã«ã¯ããã®çºè¡¨ã§ã¯ Step 1 ~ 6 ã«åãã¦æ®µéçã« JSON ãã CSV ã¸å¤æããææ³ãè²ã¦ã¦ããã¨ãããè¦ã©ããã§ãã
ä»ã®æ¹ã®çºè¡¨ã§ã¯ãjavascript ã® HTTP ã¯ã©ã¤ã¢ã³ã axios ã Typescript ã®ä¸çã§åå®å ¨ã«ããããã«ãè¦ç´ã¥ããããåå®ç¾©ãã¡ã¤ã«ãã axios ã©ããã¼ãçæãããã¼ã«ãaspidaããé¢ç½ããªã¨æãã¾ããã
VS Code ã§ã®è£å®ãå¹ããã¨ã§éçºå¹çãä¸ããããã§ããã¾ãããã ã®ãã¼ã«ã«ã¯ã¨ã©ã¾ãããåå®ç¾©ãã¡ã¤ã«ã¨ãã®ã©ããã¼ã npm ããã±ã¼ã¸ã¨ã㦠@aspida/<domain>
ãªã©ã®ããã«å
¬éãããã¨ã§ Typescript ã§ã® @types/<domain>
ã®ãããªä¸çãä½ãä¸ããéæãã¶ã¡ä¸ãã¦ããããã®ä¸ç観ã«æåãã¾ããã
çºè¡¨ã¹ã©ã¤ããå ¬éããã¦ããªãã®ãæ®å¿µã§ããï¼ã¹ã©ã¤ããè¦ãªãã¨ãã®æåã¯ä¼ãããªãã¨æãï¼ãGithub ãªãã¸ããªã¯ä»¥ä¸ã§ããæ大æã®å é¨ã§æ¡ç¨ããã¦ãããããã®ã§ä¹ã£ãã£ã¦ã¿ãã®ãããã¨æãã¾ãã
ãã¨ãç¬èªã®ãã«ã¹ã¯ã©ãã javascript View ã©ã¤ãã©ãªãMa_gicianï¼ä»®ï¼ãã®çºè¡¨ãé¢ç½ãã£ãã§ããYet Another Vue.js ãªã®ããªã¨ããå°è±¡ãåãã¾ããããã¨ã«ããã³ã¼ãã£ã³ã°éãæ¸ããããã®ç¬èªæ§æã HTML ã¿ã°ã«åãè¾¼ããã¨ã§å°éã®ã³ã¼ã㧠Vue.js ã¨åããã¨ãã§ãããããã§ãã
ã¾ããä»ã®ã©ã¤ãã©ãªããã®ä¹ãæããæå°éã§ã³ã¹ãã§ã§ãããããªå·¥å¤«ãããã¦ããããããã²ãã²ãã¨éå¿ãæãã¾ãããã¾ã ããªãªã¼ã¹ã¯ããã¦ããã絶è³éçºä¸ã§ãæ£å¼å称ãã³ã¼ãã¯å ¬éããã¦ã¾ããããä»å¾ã«æå¾ ã§ãã
ä½è ã®æ¹ ã®è¨äºãèªãã¨ãå¤é¨ä¾åãªããããã©ã¼ãã³ã¹ã妥åããªããªã©ãåã®å¥½ããªæãã ã£ãã®ã§æ³¨ç®ãã¦ããããã¨æãã¾ãã
æå¾ã«çºè¡¨ä¸ã®ãã¤ã¼ããå¼ç¨ãã¦çãããããã¨æãã¾ãã
4人ç®ãããã¹ããã JSON ã CSV ã«èªåå¤æãã Python ã©ã¤ãã©ãªãä½ã£ãã #WEM15
— Motohashi Tsuyoshi (@t_mozza) 2019å¹´11æ15æ¥
ã¢ãªã®é£¼è²ï¼ åä¾ã®é ãã£ããªãã #WEM15
— OSCA (@engineer_osca) 2019å¹´11æ15æ¥
ã¤ã¥ãã¦ãããããããã¤ãã¤ãã®å¦çããã â¦ï¼ #WEM15
— ãããã¾ã@AWSå ¥éä¸ (@iwasiman) 2019å¹´11æ15æ¥
ãã£ããããããªãã«ããåå¼·ä¼ãªã®ã«ãåæ°åºãã¦å¤§å¦çãç»å£ãã¦ããã¦ããå¬ããããããããã #WEM15
— OSCA (@engineer_osca) 2019å¹´11æ15æ¥
ãã¼ã¿ãµã¤ã¨ã³ã¹æ¥çã§ã¯JSONããCSVã好ã¾ããããã§ã #WEM15
— Motohashi Tsuyoshi (@t_mozza) 2019å¹´11æ15æ¥
csvã¨jsonã®å¤æã£ã¦æ±ç¨çãªãã®èããã¨ã»ãã¨é£ããããããã #WEM15
— the.arc (@arc_candy) 2019å¹´11æ15æ¥
CSVã¯ã¨ã³ãã©éçºã ã¨ããåºã¦ãã¾ãwããã¼ãããã«é·ãã®éãé åã®JSONã¯å¤§å¤ãã...ð #WEM15
— ãããã¾ã@AWSå ¥éä¸ (@iwasiman) 2019å¹´11æ15æ¥
é·ãã®ç°ãªãé åãå«ãJSONã¯èªã¿åãå´ãä¸ä¾¿ãªã®ã§ãé åãå±éãã #WEM15
— Motohashi Tsuyoshi (@t_mozza) 2019å¹´11æ15æ¥
ã©ãã©ãè¤éåãã¦ãã¦è¦ã¦ã¦é¢ç½ãww #WEM15
— the.arc (@arc_candy) 2019å¹´11æ15æ¥
ããããåã ã£ãããããããããã¼ã¿æ§é éãããããããç¡çã«CSVã«ããã®ããã¾ããããã¨ãè¨ã£ã¡ããããw #WEM15
— OSCA (@engineer_osca) 2019å¹´11æ15æ¥
è¤éåãããã¦ãCSV諦ãã¦JSONã¤ãããããªãã»ã»ã»
— ih6190@é·å²¡ (@ihirhs) 2019å¹´11æ15æ¥
ãããJSONã®è¯ãã§ããã¨ãè¨ã£ã¦#WEM15
é·ãã®ç°ãªãé åãè¤æ°å«ãJSONã¯ç©´ã空ããã
— Motohashi Tsuyoshi (@t_mozza) 2019å¹´11æ15æ¥
ãã¹ãããé·ãã®ç°ãªãé åãå«ãJSONã¯ã¤ã³ããã¯ã¹çªå·ãä»ããã
æ±ç¨çã«å¯¾å¿ããã®ã£ã¦å¤§å¤ã ãªã #WEM15
ã«ã³ã以å¤ã®ã»ãã¬ã¼ã¿ã使ã£ã¦ç¡çããé åãè©°ãè¾¼ã¿ãããªãw #WEM15
— ã¤ã® (@wasi_wasimaru) 2019å¹´11æ15æ¥
csvãæ§é çãªjsonã«å¤æããã®ãè¾ãããªã
— the.arc (@arc_candy) 2019å¹´11æ15æ¥
#WEM15
ãµã³ãã«ããã¡ã¿ãã¼ã¿çæããã®è¯ãã§ãããDBã¹ãã¼ããçæããä»çµã¿ããã¾ã«è¦ãããããããããã®éçºè ã¯æ¬²ãã¦ãã¨æã #WEM15
— Motohashi Tsuyoshi (@t_mozza) 2019å¹´11æ15æ¥
ãµã³ãã«ãé£ãããã¨ã¡ã¿ãã¼ã¿ãçæãã¦ãããé¢æ°ãä½ã£ãã¨ãããå®å©çãªä»çµã¿ç´¹ä»ã§ããã #WEM15
— ãããã¾ã@AWSå ¥éä¸ (@iwasiman) 2019å¹´11æ15æ¥
JSON ã CSV ã«å¤æããèãæ¹ãæ°é®®ã§ããï¼ ã¢ã¤ãã£ã¢ã®ã¹ããã¯ã«ãã¾ããããã£ããã¼
— æç 游漩 (@StewEucen) 2019å¹´11æ15æ¥