Skip to content

jasonlvhit/lunar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lunar

image

A WSGI based webframework.

image

What is Lunar?

Lunar是一个玩具式的网络框架,基于PEP333和它的进化版PEP3333,它包括

查看example来看看这是怎么运作的。

lunar is a WSGI based webframework in pure Python, without any third-party dependency. lunar include a simple router, which provide the request routing, a template engine for template rendering, a simple wrapper for WSGI request and response, and a ORM framework for sqlite.

Installation

$ pip install lunar

Happy hacking.

from lunar.lunar import Lunar

@app.route('/', methods = ["GET", "POST"])
def hello():
    return "Hello, lunar!"

if __name__ == '__main__':
    app.run()

About

A Python Web Framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages