推荐的包和扩展¶

请求具有多种功能强大且有用的第三方扩展。本页概述了其中一些最好的。

证书CA包¶

Certifi 是一个精心策划的根证书集合,用于在验证TLS主机身份时验证SSL证书的可靠性。它已从请求项目中提取。

CacheControl¶

CacheControl 是向请求添加完整HTTP缓存的扩展。这使得您的Web请求更加高效,并且应该在您发出大量Web请求时使用。

请求工具带¶

Requests-Toolbelt 是请求的某些用户可能需要的实用程序集合,但不属于请求本身。这个库由请求核心团队的成员主动维护,反映了社区中用户最需要的功能。

请求线程¶

Requests-Threads 是一个请求会话,返回令人惊讶的Twisted可等待的延迟,而不是响应对象。这允许使用 async/await python 3上的关键字用法,或者Twisted的编程风格(如果需要)。

请求OAuthlib¶

requests-oauthlib 使自动执行来自请求的OAuth舞蹈成为可能。这对于使用OAuth提供身份验证的大量网站很有用。它还提供了许多调整,处理特定OAuth提供者与标准规范不同的方式。

倍他马克¶

Betamax 记录您的HTTP交互,这样NSA就不必这么做了。仅为python请求而设计的VCR模拟。

Requests is an elegant and simple HTTP library for Python, built for human beings. You are currently looking at the documentation of the development release.

Useful Links

  • Quickstart
  • Advanced Usage
  • API Reference
  • Release History
  • Contributors Guide
  • Recommended Packages and Extensions
  • Requests @ GitHub
  • Requests @ PyPI
  • Issue Tracker

目录

  • 推荐的包和扩展
    • 证书CA包
    • CacheControl
    • 请求工具带
    • 请求线程
    • 请求OAuthlib
    • 倍他马克

Related Topics

  • Documentation overview
    • Previous: 认证
    • Next: 常见问题

快速搜索

©MMXVIX. A Kenneth Reitz Project.
Fork me on GitHub