{"id":1640,"date":"2018-03-19T20:03:58","date_gmt":"2018-03-19T11:03:58","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=1640"},"modified":"2018-11-04T22:36:22","modified_gmt":"2018-11-04T13:36:22","slug":"flask%e3%81%a7%e4%bd%9c%e3%82%8b%e7%b0%a1%e6%98%93%e5%88%86%e6%9e%90%e3%83%84%e3%83%bc%e3%83%ab1","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/1640","title":{"rendered":"Flask\u3067\u4f5c\u308b\u7c21\u6613\u5206\u6790\u30c4\u30fc\u30eb1"},"content":{"rendered":"<p>\u524d\u56de\u3001Flask\u306e\u6982\u8981\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u5b66\u7fd2\u3068\u3057\u3066\u3053\u308c\u304b\u3089\u4f5c\u6210\u3059\u308b\u984c\u6750\u3001\u7c21\u6613\u5206\u6790\u30c4\u30fc\u30eb\u306e\u4ed5\u69d8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u3053\u308c\u304b\u3089\u4f5c\u308b\u3082\u306e<\/h2>\n<p>\u696d\u52d9\u3067\u5206\u6790\u3092\u884c\u3046\u969b\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u306a\u304c\u3089\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3068\u7d50\u679c\u306e\u4e21\u65b9\u3092\u7ba1\u7406\u3059\u308b\u306e\u306f\u610f\u5916\u3068\u9762\u5012\u306a\u3082\u306e\u3067\u3059\u3002\u3053\u306e\u305f\u3081\u3001Flask\u3092\u5229\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3068\u7d50\u679c\u3092\u4fdd\u5b58\u3057\u3066\u4eba\u306b\u898b\u305b\u3089\u308c\u308b\u3088\u3046\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6563\u5e03\u56f3\u884c\u5217\u3092\u984c\u6750\u3068\u3057\u307e\u3059\u3002<\/p>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_plot_sample.png\"><img loading=\"lazy\" src=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_plot_sample.png\" alt=\"\" width=\"642\" height=\"456\" class=\"alignnone size-full wp-image-1664\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_plot_sample.png 642w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_plot_sample-300x213.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/a>\n<p>CSV\u3001TSV\u5f62\u5f0f\u30c7\u30fc\u30bf\u306e\u5165\u529b\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3001\u6563\u5e03\u56f3\u884c\u5217\u3092\u4f5c\u6210\u3057\u3066\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u4fdd\u5b58\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u304b\u3089\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br \/>\n\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u5148\u306b\u306fsqlite3\u3092\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002(Mac\u3092\u304a\u4f7f\u3044\u306e\u65b9\u306f\u5927\u62b5\u305d\u306e\u307e\u307e\u3067\u4f7f\u3048\u308b\u3068\u601d\u3044\u307e\u3059\u3002)<\/p>\n<p>\u4f5c\u6210\u3059\u308b\u753b\u9762\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u65b0\u898f\u5206\u6790\u753b\u9762\uff1a\u30c7\u30fc\u30bf\u306e\u767b\u9332\u3092\u884c\u3044\u6563\u5e03\u56f3\u884c\u5217\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/li>\n<li>\u4e00\u89a7\u753b\u9762\uff1a\u904e\u53bb\u306b\u767b\u9332\u3057\u305f\u5206\u6790\u306e\u4e00\u89a7\u3067\u3059\u3002\u5206\u6790\u30c7\u30fc\u30bf\u306e\u524a\u9664\u3068\u53c2\u7167\u753b\u9762\u3078\u306e\u9077\u79fb\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/li>\n<li>\u53c2\u7167\u753b\u9762\uff1a\u5206\u6790\u306e\u7d50\u679c\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u3042\u304f\u307e\u3067\u3082Lan\u5185\u3067\u4f7f\u7528\u3059\u308b\u7c21\u6613\u30c4\u30fc\u30eb\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30ce\u30f3\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u5206\u6790\u306e\u65b9\u306b\u3082\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u3001\u4ee5\u4e0b\u306e\u65b9\u91dd\u3067\u8aac\u660e\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u3068\u306b\u304b\u304f\u304a\u624b\u8efd\u306b<\/li>\n<li>\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u306a\u3057<\/li>\n<li>\u8a8d\u8a3c\u306a\u3057<\/li>\n<li>csrf\u30c8\u30fc\u30af\u30f3\u3082\u306a\u3057<\/li>\n<\/ul>\n<h2>\u753b\u9762\u6bce\u306e\u4ed5\u69d8<\/h2>\n<p>\u5404\u753b\u9762\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u3067\u3059\u3002<\/p>\n<h3>\u65b0\u898f\u5206\u6790\u753b\u9762<\/h3>\n<p>\u30c7\u30fc\u30bf\u306e\u767b\u9332\u3068\u30bf\u30a4\u30c8\u30eb\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u9001\u4fe1\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u767b\u9332\u3057\u305f\u30c7\u30fc\u30bf\u306b\u5bfe\u3059\u308b\u6563\u5e03\u56f3\u884c\u5217\u3092\u4f5c\u6210\u3057\u3001\u53c2\u7167\u753b\u9762\u3067\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create.png\"><img loading=\"lazy\" src=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create.png\" alt=\"\" width=\"1261\" height=\"743\" class=\"alignnone size-full wp-image-1665\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create.png 1261w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create-300x177.png 300w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create-768x453.png 768w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_create-1024x603.png 1024w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/a><\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u300c\u5206\u6790\u30c7\u30fc\u30bf\u300d\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u591a\u5909\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u30da\u30fc\u30b9\u30c8\u3057\u307e\u3059\u3002\u4e00\u884c\u76ee\u306f\u30d8\u30c3\u30c0\u30fc\u3068\u3057\u307e\u3059\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u9805\u76ee1<\/td>\n<td>\u9805\u76ee\uff12<\/td>\n<td>\u9805\u76ee\uff13<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.7<\/td>\n<td>0.11<\/td>\n<td>0.46<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.68<\/td>\n<td>0.7<\/td>\n<td>0.35<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.34<\/td>\n<td>0.22<\/td>\n<td>0.01<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.09<\/td>\n<td>0.26<\/td>\n<td>0.54<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.65<\/td>\n<td>0.55<\/td>\n<td>0.62<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>0.19<\/td>\n<td>0.66<\/td>\n<td>0.03<\/td>\n<td>\u30fb\u30fb\u30fb<\/td>\n<\/tr>\n<tr>\n<td>:<\/td>\n<td>:<\/td>\n<td>:<\/td>\n<td>:<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u53c2\u7167\u753b\u9762<\/h3>\n<p>\u767b\u9332\u3057\u305f\u30c7\u30fc\u30bf\u3084\u5206\u6790\u7d50\u679c\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view.png\"><img loading=\"lazy\" src=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view.png\" alt=\"\" width=\"1261\" height=\"913\" class=\"alignnone size-full wp-image-1667\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view.png 1261w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view-300x217.png 300w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view-768x556.png 768w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_view-1024x741.png 1024w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/a><\/p>\n<h3>\u4e00\u89a7\u753b\u9762<\/h3>\n<p>\u904e\u53bb\u306b\u767b\u9332\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4e00\u89a7\u3067\u53c2\u7167\u3057\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index.png\"><img loading=\"lazy\" src=\"http:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index.png\" alt=\"\" width=\"1261\" height=\"743\" class=\"alignnone size-full wp-image-1666\" srcset=\"https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index.png 1261w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index-300x177.png 300w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index-768x453.png 768w, https:\/\/www.python.ambitious-engineer.com\/wp-content\/uploads\/2018\/03\/flask_index-1024x603.png 1024w\" sizes=\"(max-width: 1261px) 100vw, 1261px\" \/><\/a><\/p>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5b9a\u7fa9<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u306fsqlite3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c6\u30fc\u30d6\u30eb\u306f\u7d50\u679c\u683c\u7d0d\u7528\u306bresults\u3068\u3044\u3046\u30c6\u30fc\u30d6\u30eb\u306e\u307f\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5b9a\u7fa9\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p>results\u30c6\u30fc\u30d6\u30eb\u306e\u5b9a\u7fa9<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30ab\u30e9\u30e0<\/th>\n<th>\u5c5e\u6027<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>id<\/td>\n<td>integer primary key autoincrement<\/td>\n<td>\u5206\u6790\u30c7\u30fc\u30bf\u306e\u30ad\u30fc<\/td>\n<\/tr>\n<tr>\n<td>title<\/td>\n<td>text not null<\/td>\n<td>\u5206\u6790\u30c7\u30fc\u30bf\u306e\u30bf\u30a4\u30c8\u30eb<\/td>\n<\/tr>\n<tr>\n<td>data<\/td>\n<td>text not null<\/td>\n<td>\u5206\u6790\u30c7\u30fc\u30bf\u672c\u4f53<\/td>\n<\/tr>\n<tr>\n<td>img<\/td>\n<td>text not null<\/td>\n<td>\u5206\u6790\u7d50\u679c\u306e\u753b\u50cf\uff08\u6563\u5e03\u56f3\u884c\u5217\uff09<\/td>\n<\/tr>\n<tr>\n<td>created<\/td>\n<td>datetime default CURRENT_TIMESTAMP<\/td>\n<td>\u5206\u6790\u65e5\u6642<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u3001Flask\u306e\u6982\u8981\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3001\u5b66\u7fd2\u3068\u3057\u3066\u3053\u308c\u304b\u3089\u4f5c\u6210\u3059\u308b\u984c\u6750\u3001\u7c21\u6613\u5206\u6790\u30c4\u30fc\u30eb\u306e\u4ed5\u69d8\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 \u3053\u308c\u304b\u3089\u4f5c\u308b\u3082\u306e \u696d\u52d9\u3067\u5206\u6790\u3092\u884c\u3046\u969b\u3001\u3044\u308d\u3044\u308d\u8a66\u3057\u306a\u304c\u3089\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3068\u7d50\u679c\u306e\u4e21\u65b9\u3092\u7ba1\u7406\u3059\u308b\u306e\u306f...<\/p>\n","protected":false},"author":1,"featured_media":1714,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[153,3,9],"tags":[171,170],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/1640"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=1640"}],"version-history":[{"count":12,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/1640\/revisions"}],"predecessor-version":[{"id":1967,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/1640\/revisions\/1967"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/1714"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=1640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=1640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=1640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}