web.httpserver.runsimple

Here are the examples of the python api web.httpserver.runsimple taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

Example 1

Project: exocortex-halo Source File: exocortex_web_to_speech.py
Function: run
    def run(self, port=3030, *middleware):
        func = self.wsgifunc(*middleware)
        return web.httpserver.runsimple(func, ('127.0.0.1', port))

Example 2

Project: lmb Source File: server.py
Function: run
def run(port=8080, address='0.0.0.0'):
    a_p = (address, port)
    threading.Thread(target=web.httpserver.runsimple,
                     args=(app.wsgifunc(), a_p)).start()

Example 3

Project: nsun Source File: server.py
Function: run
    def run(self, port=12010, *middleware):
        func = self.wsgifunc(*middleware)
        return web.httpserver.runsimple(func, ('0.0.0.0', port))