skillfed

types-requests-oauthlib

Typing stubs for requests-oauthlib

types-requests-oauthlib v2.0.0.20260610 351.0K downloads/30d#7,326 on PyPI37
Permissive license Apache-2.0 Active released

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-oauthlib

uv

uv add types-requests-oauthlib

poetry

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 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs requests-oauthlibtyping hints oauth requestsmypy requests-oauthlibstatic type checking oauthpyright type stubsrequests oauth type annotationstypeshed stubs
type-stubstype-checking

More Software Development packages