lunar is a WSGI based webframework in pure Python, without any third-party dependency.
Project description
A WSGI based webframework.
What is Lunar?
Lunar是一个玩具式的网络框架,基于PEP333和它的进化版PEP3333,它包括
一个模板引擎: https://github.com/jasonlvhit/lunar/blob/master/lunar/template.py
一个Sqlite的ORM框架: https://github.com/jasonlvhit/lunar/blob/master/lunar/database.py
一个Router,用于请求转发和路由: https://github.com/jasonlvhit/lunar/blob/master/lunar/router.py
一个简单的对Request和Response对象的封装
查看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.
Happy hacking.
from lunar.lunar import Lunar @app.route('/', methods = ["GET", "POST"]) def hello(): return "Hello, lunar!" if __name__ == '__main__': app.run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lunar-0.0.1.tar.gz
.
File metadata
- Download URL: lunar-0.0.1.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd9bdfdeb2201776a815035a14523c7107d8b189810068a33f3edbd8f9728eab |
|
MD5 | 851924af8e9e41195fab7c45b9be99d2 |
|
BLAKE2b-256 | 882e47aae33e9104b4f1d7996c829e175c9344fa197e4bf03201e3da7a177424 |
File details
Details for the file lunar-0.0.1-py2.7.egg
.
File metadata
- Download URL: lunar-0.0.1-py2.7.egg
- Upload date:
- Size: 74.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a84859bc03b6a4f45bf88bab80480eae26db2b907887572457938c1faf3defb |
|
MD5 | 1020a803d868ff5e4d98555203941fb4 |
|
BLAKE2b-256 | 129aae26e29d0c3a4a4620adb9ba070afedc41d096a364522c81a011bcafc963 |