Skip to content

wangshuaiyuan/karloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 

Repository files navigation

karloop

an python web framework like webpy and tornado

install

download the package or check out the project
the cd to the project folder
run these commands:

sudo python setup.py install  

demo

hello world

# 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()

run hello world

python index.py

then open the web browser and go to "127.0.0.1:8888/hello", you will see the hello world.

Notice

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.

About

an python web framework like webpy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages