rauth
A Python library for OAuth 1.0/a, 2.0, and Ofly.
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 rauthuv
uv add rauthpoetry
poetry add rauthInstalling 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
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
requests-oauthAdds OAuth 1.0 authentication support to the…
permissive · top 5,000 on PyPI
twythonTwython is a Python wrapper for the Twitter API…
permissive · top 15,000 on PyPI
python-twitterA Python wrapper that provides programmatic…
permissive · top 15,000 on PyPI
oauth2Implements OAuth 1.0 authentication for Python…
permissive · top 15,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
AuthlibAuthlib provides a complete implementation of…
permissive · top 1,000 on PyPI
Flask-OAuthlibFlask-OAuthlib adds OAuth 1.0a and OAuth 2.0…
permissive · top 15,000 on PyPI
oauthlibOAuthLib implements OAuth 1.0 and OAuth 2.0…
permissive · top 1,000 on PyPI
django-allauthProvides integrated local and social…
permissive · top 5,000 on PyPI
xclienttransactionGenerates X-Client-Transaction-ID headers for…
permissive · top 15,000 on PyPI