... 先不談 Django
Joe @ Tainan.py 2013.6.14
你聽過 Bottle 嗎?
今天真的不會提到
Django!
Let's talk about Bottle today:
Part 1: About me
Part 2: Bottle basic
Part 3: Bottle + gevent
Part 4: My sad story
Part 5: ...
Part 1: About me
Joe
應該算是文字工作者
平常用 Vim ...
純
PyConTw 2013 Volunteer
Python newer (1.5 year)
Work at startup:
My blog
Part 2: Bottle basic
Author
Author
Following RFC ... 德國人無誤 Good Job!!
Progress
• 2009 ~ 2013
• Always single file
• Always no dependencies other than STD
• Always lack of ORM, session manageme...
Applications

• Blog, chat room, any small web app ...
• Good at providing API service
• Good performance
• Good for exper...
Who use it ?
Rank
Documentations
Before Tutorial
Tutorial
• sudo pip install bottle
• Features
• WSGI, Single files, Use STD only ....
• Routing
• Templates
• Build-in Ser...
Tutorial - hello world
Go to Official Website !
Tutorial - routing
Tutorial - static files
Tutorial - redirect
Tutorial - error pages
Tutorial - IO
Tutorial - cookies ...
Tutorial - file upload
Tutorial - WSGI
Tutorial - templates
Tutorial - plugins
Tutorial - others ...
Tutorial - more...
Go to Official Website or Blog !!
Part 3: Bottle + gevent
Gevent
Go to stieglitz.github.com/gevent-tutorial/
Run gevent server
Part 4: My sad story
Bottle and me
• One year ... experience
• API server
• FakeAPI server
• Piposea
• Pipostv (web + iOS)
• Memory millionaire...
Bottle and me
• Reasons:
思維不夠 Bottle ...
創業問題 ... 之後再來聊聊 ...
Bottle and me
• Now:
Simple API server ... Good
Simple web app ... Good
Complex app ... Not good, but possible
How ?
Larger Bottle
Larger Bottle
Larger Bottle
Use python decorator, too ...
Larger Bottle
Larger Bottle
Larger Bottle
Larger Bottle
Larger Bottle
Larger Bottle
Part 5: Conclusion
工商服務
• PyconTW 2013 (有教學課程)
敝公司徵才中...
誰來教我寫前端啊 ... Orz
Bottle Intro @ Tainan.py 2013.6.14
Upcoming SlideShare
Loading in...5
×

Bottle Intro @ Tainan.py 2013.6.14

1,776

Published on

歡迎加入 Tainan.py:
http://www.meetup.com/Tainan-py-Python-Tainan-User-Group/

--
其實我的投影片都放在 speakerdeck:
https://speakerdeck.com/excusemejoe

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,776
On Slideshare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Bottle Intro @ Tainan.py 2013.6.14

  1. 1. ... 先不談 Django Joe @ Tainan.py 2013.6.14 你聽過 Bottle 嗎? 今天真的不會提到 Django!
  2. 2. Let's talk about Bottle today: Part 1: About me Part 2: Bottle basic Part 3: Bottle + gevent Part 4: My sad story Part 5: Conclusion
  3. 3. Part 1: About me
  4. 4. Joe 應該算是文字工作者 平常用 Vim ... 純
  5. 5. PyConTw 2013 Volunteer Python newer (1.5 year) Work at startup: My blog
  6. 6. Part 2: Bottle basic
  7. 7. Author
  8. 8. Author Following RFC ... 德國人無誤 Good Job!!
  9. 9. Progress • 2009 ~ 2013 • Always single file • Always no dependencies other than STD • Always lack of ORM, session management support ... • Source code: around 1000+ ~ 3000+
  10. 10. Applications • Blog, chat room, any small web app ... • Good at providing API service • Good performance • Good for experimental service
  11. 11. Who use it ?
  12. 12. Rank
  13. 13. Documentations
  14. 14. Before Tutorial
  15. 15. Tutorial • sudo pip install bottle • Features • WSGI, Single files, Use STD only .... • Routing • Templates • Build-in Server • Utilities for http-related access
  16. 16. Tutorial - hello world Go to Official Website !
  17. 17. Tutorial - routing
  18. 18. Tutorial - static files
  19. 19. Tutorial - redirect
  20. 20. Tutorial - error pages
  21. 21. Tutorial - IO
  22. 22. Tutorial - cookies ...
  23. 23. Tutorial - file upload
  24. 24. Tutorial - WSGI
  25. 25. Tutorial - templates
  26. 26. Tutorial - plugins
  27. 27. Tutorial - others ...
  28. 28. Tutorial - more... Go to Official Website or Blog !!
  29. 29. Part 3: Bottle + gevent
  30. 30. Gevent Go to stieglitz.github.com/gevent-tutorial/
  31. 31. Run gevent server
  32. 32. Part 4: My sad story
  33. 33. Bottle and me • One year ... experience • API server • FakeAPI server • Piposea • Pipostv (web + iOS) • Memory millionaire (web + iOS) 怎麼使用 Bottle 開發的服務都死光光了 XD !
  34. 34. Bottle and me • Reasons: 思維不夠 Bottle ... 創業問題 ... 之後再來聊聊 ...
  35. 35. Bottle and me • Now: Simple API server ... Good Simple web app ... Good Complex app ... Not good, but possible How ?
  36. 36. Larger Bottle
  37. 37. Larger Bottle
  38. 38. Larger Bottle Use python decorator, too ...
  39. 39. Larger Bottle
  40. 40. Larger Bottle
  41. 41. Larger Bottle
  42. 42. Larger Bottle
  43. 43. Larger Bottle
  44. 44. Larger Bottle
  45. 45. Part 5: Conclusion
  46. 46. 工商服務 • PyconTW 2013 (有教學課程) 敝公司徵才中... 誰來教我寫前端啊 ... Orz
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×