types-oauthlib
Typing stubs for oauthlib
Decision gist · record as of 2026-08-14
Yes, if you use oauthlib and type checking. Install it in projects that depend on oauthlib and use mypy or pyright to catch OAuth-related type errors early. It has no runtime cost and is actively maintained as part of typeshed. Skip it only if you do not use static type checking or do not use oauthlib.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Only useful when used alongside a type checker (mypy, pyright, etc.) and the oauthlib package itself.
- Low friction installation with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without restriction.
last release 2026-07-24 (21 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,492,943 downloads/mo, #3,840 on PyPI
Alternatives
Verify before relying
pip install types-oauthlib
# Then use with a type checker in your project that imports oauthlib
# mypy or pyright will now resolve type information for oauthlib- Whether these stubs cover all public APIs of oauthlib 3.3.x or only a subset
- Compatibility with oauthlib versions outside the 3.3.* range
What it is and what it does
types-oauthlib is a type stub package that provides type information for the oauthlib library, which implements OAuth 1.0 and OAuth 2.0 protocols. It allows static type checkers like mypy and pyright to understand and validate code that uses oauthlib, catching type errors before runtime. The stubs are maintained as part of the typeshed project and are tested against mypy 2.3.0 and pyright 1.1.411, targeting oauthlib version 3.3.*.
This package has no runtime dependencies and is purely a development tool—it does not execute code or add functionality to oauthlib itself. It is installed alongside oauthlib in projects that use type checking, and it requires Python 3.10 or later. The package is actively maintained and released regularly as typeshed evolves.
Use it for
- Enable mypy or pyright to type-check code using oauthlib for OAuth 2.0 server and client implementations
- Catch type errors in OAuth token handling and authorization flows before runtime
- Provide IDE autocompletion and type hints when working with oauthlib in a modern editor
- Validate OAuth request/response handling in applications integrating third-party authentication
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use oauthlib and type checking.
Install it in projects that depend on oauthlib and use mypy or pyright to catch OAuth-related type errors early. It has no runtime cost and is actively maintained as part of typeshed. Skip it only if you do not use static type checking or do not use oauthlib.
Install
types-oauthlib on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of typeshed; released 21 days ago with recent commits.
Requires Python 3.10 or later. Only useful when used alongside a type checker (mypy, pyright, etc.) and the oauthlib package itself.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction.
Quickstart
pip install types-oauthlib
# Then use with a type checker in your project that imports oauthlib
# mypy or pyright will now resolve type information for oauthlib
Verify before relying
- Whether these stubs cover all public APIs of oauthlib 3.3.x or only a subset
- Compatibility with oauthlib versions outside the 3.3.* range
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 21 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,492,943 / month, #3,840 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_oauthlib-3.3.0.20260724-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs oauthlib”
- types-oauthlibProvides type stubs for the oauthlib package, enabling type checkers…
- google-auth-oauthlibIntegrates oauthlib with google-auth to handle OAuth 2.0…
- oauthlibOAuthLib implements OAuth 1.0 and OAuth 2.0 request-signing logic as…
Give your agent the search over MCP, or paste the wish link into any chat.
More Security packages
Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.
MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.
joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.
Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.
Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.
ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.
Install only if maintaining existing code that already depends on it, and plan a migration.
See also google-auth-oauthlib-stubs · types-Authlib · types-httplib2 · types-mypy-extensions · types-requests-oauthlib · types-passlib · types-pyflakes · types-boltons · types-auth0-python · types-requests