Bottle
From emboxit
- Create your own web-service using Python and micro web frameworks
- tutorial
- http://localhost:8080/hello helloworld runs from here
- pdf manual
- www.pythondiary.com Bottle review
- Hello scripts that worked
- nx.py
<python> from bottle import route, run
@route('/hello') def hello():
return "Hello World!"
run(host='localhost', port=8080, debug=True) </python>
- nx2.py
<python> from bottle import Bottle, run, template
app = Bottle()
@app.route('/hello') def hello():
return "Hello World!........"
run(app, host='localhost', port=8080) </python>
- As python was not in the windows7 path, I run as below from command-prompt:
c:\python26\python nx.py
- from a folder that contains only nx.py and bottle.py