types-requests-oauthlib
Typing stubs for requests-oauthlib
What it is and what it does
This is a type stub package that provides type annotations for requests-oauthlib, allowing static type checkers to validate code that uses OAuth authentication. The package is maintained as part of typeshed, the canonical repository of type stubs for the Python ecosystem, and aims to provide accurate annotations for requests-oauthlib version 2.0.*.
When installed, it allows type checkers like mypy and pyright to understand and catch type errors in code using the requests and types-oauthlib dependencies without requiring requests-oauthlib itself to have built-in type hints. The package has low install friction, is actively maintained, and carries no runtime overhead since it only provides type information for development-time checking.
Use it for:
- Enable type checkers to validate code that uses OAuth authentication with requests and types-oauthlib.
- Catch type mismatches in OAuth session configuration and request parameters before runtime.
- Integrate requests-oauthlib into a typed codebase without suppressing type checker warnings.
- Support development workflows that require static type safety for HTTP authentication code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type hints for requests-oauthlib, enabling static type checkers like mypy and pyright to validate code using OAuth authentication with the requests HTTP client.
Yes, if you use requests-oauthlib and run a type checker in your development workflow. It has no runtime cost, low install friction, permissive Apache-2.0 licensing, and active maintenance. Install it only if you're already using a type checker; it provides no value to code that isn't type-checked.
Install
types-requests-oauthlib on PyPI
pip
pip install types-requests-oauthlibuv
uv add types-requests-oauthlibpoetry
poetry add types-requests-oauthlibInstalling types-requests-oauthlib
Before you install
Low install friction; a pure stub package with minimal dependencies (types-oauthlib and requests). Actively maintained as part of typeshed, with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 is permissive; you can use this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install types-requests-oauthlib
# Type checkers will now understand types-oauthlib and requests types
import types_requests_oauthlib
Requires Python 3.10 or later; only useful when running a type checker as part of your development workflow.
Verify before relying
- Whether this stub version remains compatible with requests-oauthlib versions other than 2.0.*
- Whether type checker versions newer than mypy 2.1.0 and pyright 1.1.410 are supported
- Specific OAuth use cases and code patterns this stub enables type checking for
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — types-oauthlib, requests |
| Maintenance | actively maintained — 65 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 351,040/month — #7,326 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_requests_oauthlib-2.0.0.20260610-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-python-http-clientProvides type hints for python-http-client,…
permissive · top 15,000 on PyPI
types-pysftpProvides type hints for the pysftp package,…
permissive · top 15,000 on PyPI
types-html5libProvides type hints for the html5lib HTML…
permissive · top 5,000 on PyPI
types-tomlProvides type hints for the toml package,…
permissive · top 1,000 on PyPI
types-mockProvides type stubs for the mock library,…
permissive · top 5,000 on PyPI
types-pycurlProvides type hints for the pycurl HTTP client…
permissive · top 15,000 on PyPI
types-uWSGIProvides type hints for the uWSGI Python API,…
permissive · top 15,000 on PyPI
types-PySocksProvides type stubs for PySocks, enabling…
permissive · top 15,000 on PyPI
GitHubKitA fully typed Python SDK for GitHub's REST and…
permissive · top 5,000 on PyPI