WebOb

WebOb是一个Python库,它围绕WSGI请求环境提供包装器,还有一个对象来帮助创建WSGI响应。(WebOb is a Python library that provides wrappers around the WSGI request environment, and an object to help create WSGI responses. )

Github stars Tracking Chart

WebOb是一个Python库,它围绕WSGI请求环境提供包装器,还有一个对象来帮助创建WSGI响应。 对象映射了HTTP的指定行为,包括头解析,内容协商以及条件和范围请求的正确处理。
这有助于您创建丰富的应用程序和有效的中间件,而无需了解WSGI和HTTP的所有复杂性。
WebOb是“Pylons Project”下的一个项目。
WebOb提供HTTP请求和响应的对象。 具体来说,它通过包装WSGI请求环境和响应状态/headers /app_iter(body)来实现。
请求和响应对象为解析HTTP请求和形成HTTP响应提供了许多便利。 两个对象都是读/写:因此,WebOb也是创建HTTP请求和解析HTTP响应的好方法。
WebOb的好处
  • 将大多数HTTP规范映射到友好的数据结构。
  • 经过验证的代码库,可以围绕并隐藏所有已知的WSGI怪癖。
  • 零已知问题(报告的错误总是随时修正)。
  • 100%测试覆盖率。
  • 没有外部依赖。
  • 支持Python 3。

Overview

Name With OwnerPylons/webob
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:
Release Count76
Last Release Name1.8.7 (Posted on )
First Release Name0.8 (Posted on )
Created At2011-09-17 19:32:24
Pushed At2024-03-04 01:05:23
Last Commit At
Stargazers Count427
Watchers Count20
Fork Count184
Commits Count2.5k
Has Issues Enabled
Issues Count222
Issue Open Count36
Pull Requests Count178
Pull Requests Open Count7
Pull Requests Close Count56
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

WebOb

.. image:: https://travis-ci.com/Pylons/webob.png?branch=master
:target: https://travis-ci.com/Pylons/webob

.. image:: https://readthedocs.org/projects/webob/badge/?version=stable
:target: https://docs.pylonsproject.org/projects/webob/en/stable/
:alt: Documentation Status

WebOb provides objects for HTTP requests and responses. Specifically
it does this by wrapping the WSGI <http://wsgi.readthedocs.io/en/latest/>_ request
environment and response status/headers/app_iter(body).

The request and response objects provide many conveniences for parsing
HTTP request and forming HTTP responses. Both objects are read/write:
as a result, WebOb is also a nice way to create HTTP requests and
parse HTTP responses.

Support and Documentation

See the WebOb Documentation website <https://docs.pylonsproject.org/projects/webob/en/stable/>_ to view
documentation, report bugs, and obtain support.

License

WebOb is offered under the MIT-license <https://docs.pylonsproject.org/projects/webob/en/stable/license.html>_.

Authors

WebOb was authored by Ian Bicking and is currently maintained by the Pylons Project <https://pylonsproject.org/>_ and a team of contributors.

To the top