Comparison
oauth2client vs oauthlib vs rauth vs requests-oauthlib
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
OAuth 2.0 client library
Archived. The repository is read-only: no more fixes or releases will come.
pip install oauth2clientA generic, spec-compliant, thorough implementation of the OAuth request-signing logic
Actively maintained. Last release 4 weeks ago, commits in 14 of the last 26 weeks. A safe choice.
pip install oauthlibA Python library for OAuth 1.0/a, 2.0, and Ofly.
Archived. The repository is read-only: no more fixes or releases will come.
pip install rauthOAuthlib authentication support for Requests.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install requests-oauthlibIn short
- oauth2client is archived: avoid it for new projects.
- rauth is archived: avoid it for new projects.
- requests-oauthlib is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- oauthlib is the most used: 263.3M downloads a month.
- oauthlib also has the best Pythie’s Index (81).
- Safe default for a new project: oauthlib.
Side by side
| Metric | oauth2client | oauthlib | rauth | requests-oauthlib |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 5 | Pythie’s Index: 81 | Pythie’s Index: 3 | Pythie’s Index: 18 |
| Verdict | Archived | Actively maintained | Archived | Slowing down |
| Downloads / month | 27.3M | 263.3M | 2.3M | 266.3M |
| Downloads, month over month | +4% | +3% | +84% | +0% |
| GitHub stars | 790 | 3K | 1.6K | 1.8K |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 537 | 365 | 43 | 833 |
| Last release | Sep 7, 2018 | Oct 31, 2026 | Jan 22, 2017 | Mar 22, 2024 |
| Releases, 12 months | 0 | 2 | 0 | 0 |
| Weeks with commits | 0 / 26 | 14 / 26 | 0 / 26 | 0 / 26 |
| Recent contributors | 19 | 14 | 23 | 12 |
| First release | Jun 2011 | Apr 2012 | Mar 2012 | Nov 2012 |
| Python versions | 3.4 – 3.5 | 3.9 – 3.14 | 3.3 | 3.4 – 3.12 |
| License | Apache-2.0 | BSD-3-Clause | MIT | ISC |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.