Created
June 18, 2015 23:50
-
-
Save MasazI/a457f484266fa471ce2b to your computer and use it in GitHub Desktop.
python_bottle_sample.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bottle import route, run | |
# アノテーションでURLを記述 | |
@route('/deepapi/json/:name') | |
def hello(name): | |
return '<h1>Deep %s!</h1>' % name | |
# オプションをつけるとデバッグ実行 | |
run(host='masai-no-MacBook-Pro.local', port=8080, debug=True, reloader=True) | |
#run(host='localhost', port=8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment