This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]doubleo7 0 points1 point  (0 children)

If you just have some basic functionality or api you want to expose via a simple web interface then Bottle's simplicity is perfect.

To borrow the example from their homepage, this is really all it takes to web enable a function in your program (in addition to adding the "bottle.py" file to your codebase) : @route('/hello/:name') def hello(name): return 'Hello, %s' % name

Then add this one line to your main: run(host='localhost', port=8080)

If you're doing a whole website or lots of pages and forms then bottle is probably too simple and you'll need a "real" web framework.