Getting Started

Building webapps with is easy. To get started, save the following code as say, and run it with python Now point your browser to http://localhost:8080/ which responds you with ‘Hello, world!’. Hey, you’re done with your first program with with - with just 8 lines of code!

import web

urls = ("/.*", "hello")
app = web.application(urls, globals())

class hello:
    def GET(self):
        return 'Hello, world!'

if __name__ == "__main__":

Indices and tables