Python 的 HTTP 和 WSGI 工具库 Werkzeug

码农软件 · 软件分类 · 网络工具包 · 2019-02-24 21:42:43

软件介绍

Werkzeug 是一个 Python 的 HTTP 和 WSGI 工具库,可以方便的在 Python 程序中处理 HTTP 协议相关内容。

功能包括:

  • HTTP header 解析和输出

  • 易用的 request 和 response 对象

  • 交互式 JavaScript 的浏览器调试器

  • 100% WSGI 1.0 兼容

  • 支持 Python 2.6, 2.7 和 3.3.

  • 支持 Unicode

  • 支持基本的 session 和签名 cookie

  • 支持 unicode 的 URI 和 IRI 工具

  • 内建用于修复 WSGI 服务器和浏览器 bug 的库

  • 集成 URL 路由

示例代码:

from werkzeug.wrappers import Request, Response

@Request.application
def application(request):
    return Response('Hello World!')

if __name__ == '__main__':
    from werkzeug.serving import run_simple
    run_simple('localhost', 4000, application)

本文地址:https://www.codercto.com/soft/d/63.html

Zero to One

Zero to One

Peter Thiel、Blake Masters / Crown Business / 2014-9-16 / USD 27.00

“This book delivers completely new and refreshing ideas on how to create value in the world.” - Mark Zuckerberg, CEO of Facebook “Peter Thiel has built multiple breakthrough companies, and ......一起来看看 《Zero to One》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码