requests-oauth
Hook for adding Open Authentication support to Python-requests HTTP library.
What it is and what it does
requests-oauth is a plugin that integrates OAuth 1.0 authentication into the requests HTTP library. It provides a hook mechanism to automatically sign requests with OAuth credentials, supporting both Authorization header and URL-encoded authentication methods. The package allows you to initialize OAuth credentials once and reuse them across multiple requests by attaching the hook to a requests session, and supports the three-legged OAuth flow for obtaining user authorization and access tokens.
However, the package has been abandoned since its last release on 2012-06-21, with no updates for over 5000 days. This raises serious concerns about compatibility with modern Python and requests versions, as well as whether the codebase has received any security review in recent years. OAuth 1.0 itself is rarely used in modern APIs.
Use it for:
- Integrating with legacy OAuth 1.0 APIs that require OAuth 1.0 authentication and still support this older standard
- Automating OAuth token exchange and request signing for applications using the three-legged OAuth flow
- Building HTTP clients that need to sign requests with OAuth 1.0 credentials without manually constructing Authorization headers
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OAuth 1.0 authentication support to the requests library, allowing HTTP requests to be signed with OAuth credentials via header or URL-encoded methods.
No. The package is abandoned (last release 2012-06-21) with no declared runtime dependencies and unspecified Python support, making compatibility with modern Python and requests versions highly uncertain. If you must use OAuth 1.0, verify this package works with your specific environment first before committing to it.
Install
requests-oauth on PyPI
pip
pip install requests-oauthuv
uv add requests-oauthpoetry
poetry add requests-oauthInstalling requests-oauth
Before you install
High install friction with no runtime dependencies declared. Package is abandoned since 2012 with last release on 2012-06-21 and no commits for over 5000 days, creating significant uncertainty about compatibility with modern Python and requests versions.
License in practice
BSD license is permissive and poses no restriction on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install requests-oauth
from requests_oauth import OAuthHook
import requests
oauth_hook = OAuthHook(access_token, access_token_secret, consumer_key, consumer_secret, header_auth=True)
client = requests.session(hooks={'pre_request': oauth_hook})
response = client.get('http://api.example.com/endpoint')
Package is abandoned with no declared runtime dependencies; compatibility with modern requests and Python versions is unverified.
Verify before relying
- Whether this package works with current versions of requests library
- Python version compatibility (requires_python is unspecified)
- Whether OAuth 1.0 is appropriate for your target API (OAuth 2.0 is now standard)
- Security review status given abandonment since 2012-06-21
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 5,167 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,841,324/month — #3,497 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: requests-oauth-0.4.1.tar.gz
Keywords: requests, python-requests, OAuth, open authentication
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
mastercard-oauth1-signerGenerates OAuth 1.0a-compliant signatures for…
permissive · top 15,000 on PyPI
rauthRauth provides OAuth 1.0/a and OAuth 2.0…
permissive · top 5,000 on PyPI
requests-oauth2clientAn OAuth 2.x client for Python that obtains,…
permissive · top 5,000 on PyPI
mohawkMohawk implements the Hawk HTTP authorization…
copyleft · top 5,000 on PyPI
requests-authAdds OAuth2, API key, Basic, and NTLM…
permissive · top 15,000 on PyPI
oauth2Implements OAuth 1.0 authentication for Python…
permissive · top 15,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
gpsoauthImplements Google Play Services OAuth…
permissive · top 15,000 on PyPI
xdkA Python SDK for interacting with the X API,…
permissive · top 15,000 on PyPI
ovhLightweight Python wrapper for OVHcloud APIs…
permissive · top 15,000 on PyPI