Size: 1321
Comment: fix link
|
← Revision 5 as of 2009-12-25 07:14:34 ⇥
Size: 1321
Comment: converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 7: | Line 7: |
-- ZoomQuiet [[[DateTime(2005-02-01T04:14:02Z)]]] [[TableOfContents]] |
-- ZoomQuiet [<<DateTime(2005-02-01T04:14:02Z)>>] <<TableOfContents>> |
吻合 pythonic 精神! 灵活,高效,柔韧! 的 web 应用平台
-- ZoomQuiet [2005-02-01 04:14:02]
Contents
樱桃蟒
CherryPy2特性
- stand-alone Python applications embedding their own multi-threaded web server
- 独立运行的多线程Python 嵌入式 web server
CherryPy 将URL请求对应为类树:
- '/' 请求指'root' object, '/users/'是 'root.users' object,等等
- 请求句柄被映射为标准的类函式:
- '/users/display?id=123' 将调用 root.users.display(id = '123') 处理结果将自动输出到浏览器中
- 你可以自由的控制各种 web 行为,没有什么是不可的
CherryPy 支持sessions的各种格式的外部存储:
- (Database, RAM, file, ...)
- 在函式以外,你可以使用任何想用的技术来完成任务:
- templating, data access etc.
CherryPy 同样可以轻易的操作静态文件,Cookie,文件上传等等web 平台中的合法事务
- CP2 内嵌了web服务,支持单/多线程;可以在任何支持Python 的系统中运行
- ....
- 呜乎哀哉!有些晕了!还是直接玩代码最直观!!!
CherryPy教程
CherryPyTut -- 快速学习教程
CherryPy 关注
- lihui