--- id: types-requests-oauthlib version: "2.0.0.20260610" license: Apache-2.0 license_treatment: permissive maintenance: active --- # types-requests-oauthlib — Typing stubs for requests-oauthlib License: permissive · Maintenance: active · Downloads: 351.0K/mo ## 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 above — 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 pip install types-requests-oauthlib uv add types-requests-oauthlib poetry add types-requests-oauthlib ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 351.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs requests-oauthlib, typing hints oauth requests, mypy requests-oauthlib, static type checking oauth, pyright type stubs, requests oauth type annotations, typeshed stubs, type-stubs, type-checking [View on SkillFed](https://skillfed.io/packages/types-requests-oauthlib) · [View on PyPI](https://pypi.org/project/types-requests-oauthlib/)