webpy Python simple web框架

webpy简介

webpy,Python第三方库,web框架,as simple as it is powerful。

webpy应用实例

import web

urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:
    def GET(self, name):
        if not name:
            name = '笨鸟工具,x1y1z1.com'
        return 'Hello, ' + name + '!'

if __name__ == "__main__":
    app.run()

webpy Github统计数据

web.py is in the public domain; it can be used for whatever purpose with absolutely no restrictions.

Github 5.9k stars

webpy安装命令

pip install web.py

Python版本要求

The latest 0.62 release supports Python >= 3.5

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


行业导航 / Python指南 :
























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