九月份聚會
X
Tainan.py 現況 • 從 Taipei.py fork 出來的聚會
• 這是第三次與 MOSUT 社群合辦
• 關係圖:
Open source Python
Tainan.py 現況 • 之後聚會場地以成大、南大為主
• 不定期舉辦微聚(餐)會 @ Isrlab
__doc__• Joe: 開場 / 小聊一下與 Web 相關的小玩具
• Kilik Kuo:
• Thread safety about Python's object
• 用 Python 實作 OSX/WIN 的 dual monitor information query 及 URL EntryCache 的探訪與移除
• Liao Wen Satoshi: 使用 Linux/C 組裝軟體的心得
• 中場休息喝飲料
• 陳伯綸: RoBoard Lab 的實習經驗
• 閃電秀 / 工商服務時間
• Descent: 5 分鐘 git 就上手 - 不可能
五分鐘 Web 就上手 - 不可能
Joe @Tainan.py 2013.9.28
Web 相關的小玩具
通常情況
你一定常常用 Web
你不一定常寫 Web也不一定想寫 Web ...
但是 ... 上司可能會請你寫 Web ...
你只好一定要寫 Web ... (吧?)
在此介紹一些玩具給大家參考用 Python 寫 Web 很方便的!
我要寫兩倍的 Code
玩具一:Python 本身內建 Http Server
1. 取得
2. 撰寫
3. 執行: python demo_1.py
Ref.
玩具二:Bottle微框架
1. 取得
2. 撰寫
3. 執行: python demo_2.py
pip install bottle
Ref.
Dynamic Routes
Static Files
Error pages
Redirect
Status code
Headers
Cookies
Templates
Plugins
Mount
request /
玩具三:requestsHttp for humans
1. 取得
2. 撰寫
3. 執行: python demo_3.py
pip install requests
Ref.
玩具四:pyqueryjquery-like library
1. 取得
2. 分析
3. 執行: python demo_4.py
pip install pyqueryyum install python-lxml
Ref.
玩具五:webtest 沒測過的程式不能用
1. 取得
2. 撰寫
3. 執行: python demo_5.py
pip install webtest pytest
Ref.
暖場完畢,接下來進行 N 場精彩的演講 ...
小結
記得訂飲料 ...