--- id: requests-oauthlib version: "2.0.0" license: ISC license_treatment: permissive maintenance: aging --- # requests-oauthlib — OAuthlib authentication support for Requests. License: permissive · Maintenance: aging · Popularity: top 1,000 on PyPI ## Install pip install requests-oauthlib uv add requests-oauthlib poetry add requests-oauthlib ## Description Requests-OAuthlib |build-status| |coverage-status| |docs| ========================================================= This project provides first-class OAuth library support for `Requests `_. The OAuth 1 workflow -------------------- OAuth 1 can seem overly complicated and it sure has its quirks. Luckily, requests_oauthlib hides most of these and let you focus at the task at hand. Accessing protected resources using requests_oauthlib is as simple as: .. code-block:: pycon >>> from requests_oauthlib import OAuth1Session >>> twitter = OAuth1Session('client_key', client_secret='client_secret', resource_owner_key='resource_owner_key', resource_owner_secret='resource_owner_secret') >>> url = 'https://api.twitter.com/1/account/settings.json' >>> r = twitter.get(url) Before accessing resources you will need to obtain a few credentials from your provider (e.g. Twitter) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full `OAuth 1 workflow guide on RTD... ## AI interpretation — verify before relying Provides OAuth 1 and OAuth 2 authentication support for the Requests HTTP library, enabling seamless integration with OAuth-protected APIs and services. Verdict: Production-stable OAuth library (Development Status 5) with broad Python 3 support (3.4–3.12) and no known vulnerabilities. Install friction is low and dependencies are minimal. The aging maintenance status (874 days since release) warrants monitoring, but the active repository and top-1000 popularity suggest continued viability for OAuth workflows. [View on SkillFed](https://skillfed.io/packages/requests-oauthlib) · [View on PyPI](https://pypi.org/project/requests-oauthlib/)