an python web framework like webpy and tornado
download the package or check out the project
the cd to the project folder
run these commands:
sudo python setup.py install
# coding=utf-8
from karloop.KarlBaseApplication import BaseApplication
from karloop.KarlBaseResponse import BaseResponse
class HelloHandler(BaseResponse):
def get(self):
return self.response("hello world")
handlers = {
"/hello": HelloHandler
}
class HelloApplication(BaseApplication):
def __init__(self):
super(HelloApplication, self).__init__(handlers=handlers)
if __name__ == "__main__":
application = HelloApplication()
application.listen(port=8888)
application.run()
python index.py
then open the web browser and go to "127.0.0.1:8888/hello", you will see the hello world.
there are some bugs about stream video on windows operating system If you find some bugs or know how to fix the bugs please send message to karlvorndoenitz@gmail.com,special thanks.