'flask'에 해당되는 글 1

  1. 2013.10.21 Bottle: Python Web Framework

Bottle: Python Web Framework

http://bottlepy.org
Bottle is a fast, simple and lightweight WSGI micro web-framework for Python. It is distributed as a single file module and has no dependencies other than the Python Standard Library.

- Installation
http://bottlepy.org/docs/dev/tutorial.html#installation
C:\Python33\Scripts> pip install bottle //easy_install도 가능
Downloading/unpacking bottle
  Downloading bottle-0.11.6.tar.gz (60kB): 60kB downloaded
  Running setup.py egg_info for package bottle

Installing collected packages: bottle
  Running setup.py install for bottle

Successfully installed bottle
Cleaning up...


- Hello world


IDLE 쉘상에서 직접 실행하면 잘 안됨.(Flask - Hello world처럼)

- 설치 간단, 의존성 없음.
IDLE로 실행시 Ctrl-C로 내릴 수 있음.(Flask 안됨)========>이거 =-=>별도 파일로 만들어서 실행시켜보자.
리로딩도 된다고 함. 소스 수정하고 F5 누르면 재시작 됨.
자체 템플릿 엔진 제공, 다른 템플릿 엔진도 사용 가능
Dictionary를 리턴하면 json형태로 응답한다.

내가 찾던거다!!!

- 참고 자료
http://bottlepy.org/docs/0.11/
http://bottlepy.org/docs/dev/tutorial.html

API Reference
http://bottlepy.org/docs/dev/api.html

Tutorial: Todo-List Application
http://pantarei.tistory.com/3539
http://bottlepy.org/docs/dev/tutorial_app.html