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星跟蹤圖

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。

概覽

名稱與所有者Pylons/webob
主編程語言Python
編程語言Python (語言數: 1)
平台
許可證
發布數76
最新版本名稱1.8.7 (發布於 )
第一版名稱0.8 (發布於 )
創建於2011-09-17 19:32:24
推送於2024-03-04 01:05:23
最后一次提交
星數427
關注者數20
派生數184
提交數2.5k
已啟用問題?
問題數222
打開的問題數36
拉請求數178
打開的拉請求數7
關閉的拉請求數56
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

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.

去到頂部