【文件属性】:
文件名称:juno:一个轻量级简单的python web框架
文件大小:32KB
文件格式:ZIP
更新时间:2021-06-02 08:45:23
Python
朱诺
Juno 是一个 Web 框架,旨在使开发速度尽可能快。
存储库: :
我已经有大约 6 年没有更新 Juno 了,也不打算再使用它。 玩得开心。 它不是一个出色的 Web 框架,但其中包含一些有趣的 Python 代码。
使用朱诺
开始:
from juno import *
@route('/')
def index(web):
return 'Juno says hi'
run()
添加一些 url 处理:
@route('/hello/:name/')
def hello(web, name):
return 'Hello, %s' %name
使用模板:
@get('/hi_template/:name/')
def template_hi(web, name):
template('hello.html', name=name)
【文件预览】:
juno-master
----setup.py(2KB)
----.gitignore(30B)
----templates()
--------500.html(264B)
--------404.html(321B)
----TODO(997B)
----LICENSE(1KB)
----doc()
--------2-configuration.md(5KB)
--------0-table_of_contents.md(467B)
--------6-templates.md(2KB)
--------3-requests_and_responses.md(4KB)
--------examples()
--------1-setup.md(2KB)
--------build.py(329B)
--------7-forms.md(1008B)
--------5-models.md(5KB)
--------4-routes.md(2KB)
----README.md(3KB)
----tests()
--------client.py(2KB)
--------test.py(3KB)
----juno.py(31KB)
----MANIFEST(35B)