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://codercto.com/soft/d/63.html

Beginning ASP.NET 4 in C# and Vb

Beginning ASP.NET 4 in C# and Vb

Imar Spaanjaars / Wrox / 2010-3-19 / GBP 29.99

This book is for anyone who wants to learn how to build rich and interactive web sites that run on the Microsoft platform. With the knowledge you gain from this book, you create a great foundation to ......一起来看看 《Beginning ASP.NET 4 in C# and Vb》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换