skillfed

requests-oauth

Hook for adding Open Authentication support to Python-requests HTTP library.

requests-oauth v0.4.1 1.8M downloads/30d#3,497 on PyPI187
Permissive license BSD Abandoned released

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-oauth

uv

uv add requests-oauth

poetry

poetry add requests-oauth

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules

Tags

oauth 1.0 requests librarypython oauth authenticationrequests oauth hookoauth signed http requestspython oauth v1 client
oauth-1.0abandonedlegacy-api

More Python Modules packages