jasonlvhit / lunar

A Python Web Framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lunar

https://travis-ci.org/jasonlvhit/lunar.svg?branch=master

A WSGI based webframework.

https://cloud.githubusercontent.com/assets/5202391/5469319/20677e82-8615-11e4-9aed-7773f47f7aea.jpg

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.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 98.7%Language:HTML 1.1%Language:CSS 0.1%Language:Shell 0.1%