TurboGearsPython 的 Web 框架
TurboGears是为Python提供网页前端到后端整合的网站框架,让网站开发更加快速和容易。
安装 pip:
$ curl -O 'https://bootstrap.pypa.io/get-pip.py' $ python get-pip.py
安装 Turbogears:
$ pip install TurboGears2
开发一个简单的 TG web 应用:
from wsgiref.simple_server import make_server from tg import MinimalApplicationConfigurator from tg import expose, TGController # RootController of our web app, in charge of serving content for / class RootController(TGController): @expose(content_type="text/plain") def index(self): return 'Hello World' # Configure a new minimal application with our root controller. config = MinimalApplicationConfigurator() config.update_blueprint({ 'root_controller': RootController() }) # Serve the newly configured web application. print("Serving on port 8080...") httpd = make_server('', 8080, config.make_wsgi_app()) httpd.serve_forever()
使用命令 python webapp.py
启动,并打开浏览器访问 http://localhost:8080/
评论
TurismoJava的Web框架
turismo是一个类似Sinatra的Java的微型Web框架。示例代码:publicclassAppRoutesextendsRoutesList{ protectedvoidmap(){
TurismoJava的Web框架
0
YesodHaskell的web框架
Yesod是Haskell的Web框架用于开发类型安全、RESTful、高性能的Web应用。安装方法:cabalinstallyesod-platform
YesodHaskell的web框架
0
GolangerGo 的 Web 框架
Golanger是一个轻量级的Web应用框架,使用Go语言编写。Golanger框架主要实现了MVC模式(三层架构模式)(Model-View-Controller),它是软件工程中的一种软件架构模式
GolangerGo 的 Web 框架
0
HanamiRuby 的 Web 框架
Hanami是一个全栈的Ruby的Web框架。是一个非常精简、用于单一用途的库。Hanami包含如下组件:Hanami::Model -实体的持久化、仓库和数据映射Hanami::View -视图和模
HanamiRuby 的 Web 框架
0
LiftScala 的 Web 框架
Lift也叫LiftWeb,是一种新的Web应用程序框架。它是一种在Scala编程语言上构建的可伸缩框架。它非常适合ApacheGeronimo这样的可伸缩应用服务器,尤其是在Scala编译为与Jav
LiftScala 的 Web 框架
0
KituraSwift 的 Web 框架
Kitura,来自IBM的基于Swift的Web框架,也是一个HTTP服务器。特性:URL路由(GET,POST,PUT,DELETE)URL参数静态文件服务支持FastCGI支持SSL/TLSJSO
KituraSwift 的 Web 框架
0