def main(): ''' main entry ''' parse_command_line() web = WebServer(port=options.port, address=options.bind) web.run()
from handlers import Handlers from server import WebServer handler = Handlers() server = WebServer(handler.routes) server.run()
#!/usr/bin/env python import web import json from server import WebServer if __name__ == "__main__": webServer = WebServer() webServer.run()