CherryPy Python面向对象HTTP框架

CherryPy简介

CherryPy,Python面向对象的HTTP框架,允许以与构建任何其他面向对象程序大致相同的方式构建web应用程序。

CherryPy应用实例

import cherrypy

class HelloWorld(object):
    @cherrypy.expose
    def index(self):
        return "Hello World! Hello,  笨鸟工具,x1y1z1.com"

cherrypy.quickstart(HelloWorld())

CherryPy Github统计数据

BSD-3-Clause license

Github 1.7k stars

CherryPy安装命令

pip install cherrypy

Python版本要求

CherryPy18.0.0 Python 3 only

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.