Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pythonのアプリ開発にElectronという選択肢
Search
massyuu
October 26, 2017
Programming
1
2.3k
Pythonのアプリ開発にElectronという選択肢
pyfukuoka #2
at 2017/10/26
in Fukuoka City
massyuu
October 26, 2017
Tweet
Share
More Decks by massyuu
See All by massyuu
僕が仕事を楽しむメンタルモデル
massyuu
0
200
自分のTwitter利用を振り返ってみる
massyuu
0
83
Vue×Nativeの開発を簡単にしたかったのです
massyuu
0
380
Authから始めるFirebaseの第一歩
massyuu
1
1.3k
RealWorldHTTPを読んでみた
massyuu
1
540
私の知らないPythonの世界
massyuu
1
510
Other Decks in Programming
See All in Programming
良いユニットテストを書こう
mototakatsu
7
2.2k
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
770
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
280
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
190
42 best practices for Symfony, a decade later
tucksaun
1
180
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
3
280
php-conference-japan-2024
tasuku43
0
270
Semantic Kernelのネイティブプラグインで知識拡張をしてみる
tomokusaba
0
180
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
750
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
100
103 Early Hints
sugi_0000
1
230
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
5
1.2k
Featured
See All Featured
Designing for humans not robots
tammielis
250
25k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Docker and Python
trallard
42
3.1k
How to Ace a Technical Interview
jacobian
276
23k
A designer walks into a library…
pauljervisheath
204
24k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
The Invisible Side of Design
smashingmag
298
50k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.5k
Why Our Code Smells
bkeepers
PRO
335
57k
Unsuck your backbone
ammeep
669
57k
Building Your Own Lightsaber
phodgson
103
6.1k
Transcript
1ZUIPOͷΞϓϦ࡞ʹ &MFDUSPOͱ͍͏બࢶ !NBTTZVV 1Z'VLVPLB
ࣗݾհ NBTTZVVʢϚγϡʔͱ͍͍·͢ʣ 1ZUIPOྺझຯͰϲ݄͘Β͍ ͔Β͕͋͛͋Εੜ͖͍͚ͯΔΤϯδχϟʔ ϑϩϯτ͔ΒόοΫΤϯυ·Ͱ͘ઙ͘ UXJUUFSNBTT@TTO
ͯ͞
1ZUIPOͱ͍͑ ɾػցֶश ɾσʔλղੳ ɾ8&#ΞϓϦέʔγϣϯ ɾεΫϨΠϐϯά ɾɾͱ͍͏Πϝʔδ͕݁ߏ͋Δ
σεΫτοϓΞϓϦΛ࡞Δʹ ,JWZ ϚϧνλονΞϓϦέʔγϣϯ։ൃͷͨΊͷ ΦʔϓϯιʔεϥΠϒϥϦ 1Z2U 2U ΫϩεϓϥοτϑΥʔϜͳ(6*πʔϧΩοτ ͷ 1ZUIPOόʔδϣϯ 1ZUIPOͰσεΫτοϓΞϓϦΛ࡞ΔϑϨʔϜϫʔΫ͋Δ
͕ɺ͔͠͠ 1ZUIPOͰ(6*Λ࣮ݱ͢Δͷͳ͔ͳ͔ࠎ͕ંΕͦ͏ ͬͯΔࣝͰͳΜͱ͔Ͱ͖ͳ͍͔ͳ͊ɾɾ
8&#ΞϓϦΛͲ͏ʹ͔ͯ͠ɾɾ ɾ8&#ΞϓϦͷσβΠϯ͕݁ߏ͖ʢݟ׳Εͨײʣ ɾσβΠϯηϯε͕ͳͯ͘6*ϑϨʔϜϫʔΫͰʂ ɹɹ#PPUTUSBQͱ͔0OTFO6*ͱ͔Ͷ ɾ8&#σεΫτοϓΞϓϦͱ͍͏ྲྀΕ͕ɾɾ
ͦ͜Ͱ&MFDUSPOΛͬͯΈΑ͏
&MFDUSPO KBWBTDSJQUIUNMDTTΛͬͯ ΫϩεϓϥοτϑΥʔϜΞϓϦΛ࡞Δ ΞϓϦέʔγϣϯΤϯδϯ 8JO.BDͰಈ࡞͢ΔΞϓϦΛ࡞ΕΔ "UPNͱ͔7JTVBM4UVEJP$PEFͳΜ͔&MFDUSPO
+4ϑϨʔϜϫʔΫ͑ΑͱݴͬͪΌͩΊ 1ZUIPOͰΔ͜ͱʹҙຯ͕͋Δʢͣʣ
,JWZ͑Α σβΠϯηϯε͕ΞϨͳͷͰ
ࠓճͬͨ͜ͱ 5XJUUFSͷϢʔβʔ*%ͱ݅Λೖྗ͢Δ ˣ ϢʔβʔͷͭͿ͖Λ݅औಘͯ͠දࣔ͢Δ
ԿΛ͏͔ /PEF KTʢ&MFDUSPOಈ͔͢ʣ &MFDUSPOʢ8&#σεΫτοϓΞϓϦʣ 'MBTLʢΞϓϦຊମʣ +JOKBʢςϯϓϨʔτΤϯδϯʣ 0OTFO6*ʢݟͨʣ 5XJUUFS"1*ʢػೳຊମʣ
/PEFKT αʔόʔαΠυͰKBWBTDSJQUΛಈ͔ͨ͢Ίͷڥ ࠓճ&MFDUSPOΛಈ͔ͨ͢Ίʹ༻
'MBTL 1ZUIPOͷܰྔ8&#ΞϓϦέʔγϣϯϑϨʔϜϫʔΫ ܰͯ͘ϧʔςΟϯάػೳ͕͋Ε͍͍ͱࢥͬͯ࠾༻ ࠓճͷΞϓϦͷຊମ from flask import Flask, request app
= Flask(__name__) @app.route("/", methods=['GET', 'POST']) def main(): if request.method == "POST" : # ϦΫΤετͷऔಘ user_name = request.form["username"] count = request.form["count"] IFMMPQZ
+JOKB 1ZUIPO༻ͷςϯϓϨʔτΤϯδϯ ϩδοΫͱ)5.-Λ͚ͯཧͰ͖Δ QZͷதͰ)5.-Λॻ͖ͨ͘ͳ͍ͷͰ࠾༻ {% if tweets != '' %}
<ons-page> <ons-toolbar> <div class="center">{{ user_name }} Tweet</div> <div class="right"><ons-button><a href="/">Back</a></ons-button></div> </ons-toolbar> <ons-scroller> <ons-list> {% for tweet in tweets %} <ons-list-item>{{ tweet.text }}</ons-list-item> {% endfor %} </ons-list> </ons-scroller> </ons-page> {% endif %} JOEFYIUNM
0OTFO6* 6*ϑϨʔϜϫʔΫ ؆୯ʹ͍͍ײ͡ͷ6*Λ࣮ݱͰ͖Δ σβΠϯηϯεͷͳ͍ࣗΛॿ͚ͯ͘ΕΔ <ul> {% for tweet in tweets
%} <li>{{ tweet.text }}</li> {% endfor %} </ul> <ons-list> {% for tweet in tweets %} <ons-list-item>{{ tweet.text }}</ons-list-item> {% endfor %} </ons-list> JOEFYIUNM
5XJUUFS"1* λΠϜϥΠϯΛऔಘ͢ΔͨΊʹ༻ $VTUPNFS,FZ"DDFTT5PLFOͳͲͷऔಘ͕ඞཁ 0"VUIೝূSFRVFTUT@PBVUIMJCΛ͏ͱָ ҙ ϦΫΤετNJOͷ੍ݶ͕͋Γ·͢
σϞ
ϋϚͬͨ͜ͱ σόοάํ๏ &MFDUSPOͱ'MBTLͷΈ߹ΘͤͨϓϩδΣΫτʹ ػೳΛΓࠐΜͰ͠·ͬͨ தී௨ͷ8&#ΞϓϦͳͷͰɺઌʹ'MBTLଆͰ ΞϓϦΛ࡞ΓࠐΜͰ͔ΒΈ߹ΘͤΔ͖ͩͬͨ ΤϥʔͷݪҼ͕ͲͪΒʹ͋Δ͔͔Γਏ͔ͬͨ
ϋϚͬͨ͜ͱ ੩తϑΝΠϧʢ$44KBWBTDSJQUʣͷಡΈࠐΈ 'MBTLϓϩδΣΫτͷʮTUBUJDʯϑΥϧμʹೖΕͯɺ VSM@GPSϞδϡʔϧͰಡΈࠐΊ0, ͍ɺʮ/PU'PVOEʯͳΜͰ͚͢Ͳɾɾ ʢࠓճ$%/ͰରԠͯ͠·͢ʣ
ϞόΠϧ &MFDUSPOʮσεΫτοϓΞϓϦʯ͕࡞ΕΔ ʮϞόΠϧΞϓϦʯͰͳ͍ $PSEPWBͱͷΈ߹Θͤࢼ͍͖͍ͯͨ͠ͱ͜Ζ $PSEPWBɿϞόΠϧΞϓϦ։ൃϑϨʔϜϫʔΫ
·ͱΊ 1ZUIPOͷσεΫτοϓΞϓϦ,JWZ1Z2UͰ࡞Δʂ ɾɾ͚ͩ͡Όͳ͘ɺผͷΞϓϩʔνͰ࣮ݱͰ͖Δ ٕज़ͷֻ͚ࢉͬͯ໘ന͍ΑͶ ʆɾТɾ
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠