Differences between revisions 1 and 2
Revision 1 as of 2005-02-01 04:14:02
Size: 1320
Editor: ZoomQuiet
Comment: CheerPyTut -- 快速学习教程
Revision 2 as of 2005-02-01 04:47:12
Size: 1320
Editor: ZoomQuiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
 * CheerPyTut -- 快速学习教程  * CherrPyTut -- 快速学习教程

吻合 pythonic 精神! 灵活,高效,柔韧! 的 web 应用平台

-- ZoomQuiet [DateTime(2005-02-01T04:14:02Z)] TableOfContents

樱桃蟒

CherryPy2特性

  • stand-alone Python applications embedding their own multi-threaded web server
  • 独立运行的多线程Python 嵌入式 web server
  • CheeryPy 将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教程

CherryPy 关注

  • lihui

CherryPyQuickIn (last edited 2009-12-25 07:14:34 by localhost)