skillfed

rauth

A Python library for OAuth 1.0/a, 2.0, and Ofly.

rauth v0.7.3 1.2M downloads/30d#4,182 on PyPI1,600
Permissive license MIT Abandoned released

What it is and what it does

Rauth is a Python OAuth consumer library that wraps the Requests HTTP library to handle OAuth 1.0/a and OAuth 2.0 authentication flows. It abstracts away the complexity of signing requests, managing tokens, and exchanging credentials, letting you focus on making authenticated API calls to services that support OAuth.

The library provides service wrapper objects (like OAuth1Service) that encapsulate provider-specific endpoints and handle the multi-step authentication handshake. Once authenticated, you get an OAuth session object that behaves like a normal HTTP session but automatically signs requests with the correct OAuth credentials. The package was built for production use and reports 100% test coverage, but has not been maintained since 2017.

Use it for:

  • Authenticate with Twitter, Flickr, or other OAuth 1.0 providers to fetch user data or post on behalf of a user.
  • Build a web application that lets users log in via OAuth 2.0 (e.g., Google, GitHub) without storing passwords.
  • Integrate Shutterfly's Ofly authentication into a photo-sharing application.
  • Automate API calls to OAuth-protected services while managing token refresh and expiration.
  • Prototype OAuth flows in a command-line tool or script without writing low-level HTTP signing logic.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Rauth provides OAuth 1.0/a and OAuth 2.0 consumer support for Python applications, enabling authenticated requests to services like Twitter without handling low-level protocol details.

No. While rauth is permissively licensed and has low install friction, it has been abandoned since 2017 with no maintenance or security updates. OAuth specifications and provider APIs have evolved significantly; compatibility with modern Python versions is unverified and likely broken. For new projects, use actively maintained alternatives like authlib or oauthlib. Only consider rauth if you are maintaining legacy code already using it and cannot migrate.

Install

rauth on PyPI

pip

pip install rauth

uv

uv add rauth

poetry

poetry add rauth

Installing rauth

Before you install

Installation is straightforward with no runtime dependencies. However, the package is abandoned—last release was 2017-01-22 and the repository was archived. No maintenance or security updates are available.

License in practice

Licensed under MIT (permissive), so you may use, modify, and distribute rauth freely in commercial and private projects with minimal restrictions.

Quickstart

pip install rauth

from rauth import OAuth1Service

twitter = OAuth1Service(
    name='twitter',
    consumer_key='YOUR_KEY',
    consumer_secret='YOUR_SECRET',
    request_token_url='https://api.twitter.com/oauth/request_token',
    access_token_url='https://api.twitter.com/oauth/access_token',
    authorize_url='https://api.twitter.com/oauth/authorize',
    base_url='https://api.twitter.com/1.1/')

request_token, request_token_secret = twitter.get_request_token()

Package targets Python 2.6, 2.7, and 3.3; compatibility with modern Python versions (3.8+) is unverified and likely broken due to abandonment.

Verify before relying

  • Whether rauth works reliably with Python 3.8 and later versions given its abandonment since 2017.
  • Current OAuth provider compatibility—API endpoints and authentication flows may have changed since the last release.
  • Whether Requests v1.x dependency specification still resolves correctly with modern pip resolvers.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 3,491 days since the last release
Last repo commit (repository archived)
First released
Downloads 1,232,845/month — #4,182 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: rauth-0.7.3-py2-none-any.whl

Keywords: oauth, oauth2, rauth, requests

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOSOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3.3Programming Language :: Python :: ImplementationProgramming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities

Tags

oauth 1.0 python libraryoauth 2.0 consumertwitter authentication pythonoauth session managementrequests oauth wrapper
oauth-legacyauthentication

More Python Modules packages