firenado是一个基于tornado web framework/server的python web框架。
Firenado的Python项目详细描述
简介
Firenado是一个Web框架,它扩展了原来的Tornado Web框架 添加新功能,如松散耦合组件、服务器端会话层, 基于yaml的配置文件等。
安装
pip install firenado
用法
创建并运行新应用程序:
> firenado project init helloworld > helloworld > firenado app run
默认情况下,将使用基于redis的会话和 redis数据源被定义并链接到会话。
firenado不安装redispy,所以有必要安装它或 会话基于文件。您也可以禁用会话引擎。
要将会话类型更改为文件,请转到helloworld/conf/firenado.yml和 将会话定义更改为:
# Session types could be: # file or redis. session: type: file enabled: true # Redis session handler configuration #data: # source: session # File session handler related configuration path: /tmp
如果你的helloworld项目不在python路径上,那就去吧 helloworld/conf/firenado.yml并配置应用程序设置:
app: component: helloworld data: sources: # Set here references from sources defined on data.sources - session pythonpath: .. port: 8888
支架
费尔纳多是其中之一 Candango Open Source Group 主动性。它在 Apache License, Version 2.0。
此网站和所有文档的许可 Creative Commons 3.0。