# requests/requests-oauthlib

OAuthlib support for Python-Requests!

Repository: https://github.com/requests/requests-oauthlib
Canonical: https://ross.abutalabs.com/products/requests-oauthlib
Homepage: https://requests-oauthlib.readthedocs.org/
Language: Python
License: ISC
License Family: permissive
Topics: python, python-requests, oauth2-client, oauth-client
Last push: 2025-06-18T06:42:02+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 27, release rhythm 8, longevity 100
- inputs: {"age_days": 5031, "days_push": 441, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1775, forks 433 (observed 2026-08-28T04:05:34.426697+00:00)

## What it is
A Python library that adds OAuth 1 and OAuth 2 authentication support to the Requests HTTP library. It wraps OAuthlib to provide simple session classes for authenticating against OAuth-protected APIs.

## Use cases
- authenticate python requests against oauth2 apis
- call twitter api with oauth1 from python
- add oauth authorization code flow to http client
- get access tokens for google api with requests
- sign http requests with oauth1 credentials

## When to choose
- you use the requests library and need OAuth 1 or OAuth 2 authentication
- you want a simple, well-documented wrapper over OAuthlib
- you need to interact with OAuth-protected APIs like Twitter or Google

## When to avoid
- you need raw OAuth server/provider implementation (use oauthlib directly)
- you use an HTTP client other than requests
- you need async HTTP requests

## Facets
- artifact type: library
- maturity: stable
- function: auth, http-client
- domain: security, apis, web-development, developer-tools
- platform: python, cross-platform
- tags: oauth1, oauth2, requests, authentication, http

## Member repositories
- requests/requests-oauthlib (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:34.426697+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:25:21.802655+00:00, confidence not recorded.
  - readme: https://github.com/requests/requests-oauthlib (fetched 2026-08-28T04:05:34.426697+00:00, sha 380a315ddfd5)
  - registry_pypi: https://pypi.org/pypi/requests-oauthlib/json (fetched 2026-08-29T11:04:22.408067+00:00, sha 2631b91af852)
- Data as of 2026-08-30T08:39:29.467469+00:00.
