google-auth-oauthlib-stubs
Type stubs for google-auth-oauthlib
What it is and what it does
This package provides type stub files (.pyi) for the google-auth-oauthlib library, enabling static type checkers like mypy to understand the types and signatures of Google's OAuth authentication library. Type stubs are metadata-only files that describe the public interface of a library without containing runtime code, allowing developers to catch type errors during development rather than at runtime.
The stubs are designed for developers using google-auth-oauthlib who want full type safety in their authentication flows. They work alongside the actual google-auth-oauthlib package (which must be installed separately) and the related google-auth-stubs and requests-oauthlib packages. Since the package was released on 2025-06-20 and has not been updated since, it represents a point-in-time snapshot of the API; whether it remains synchronized with the underlying library's evolution is unclear.
Use it for:
- Add type checking to a FastAPI or Flask app that authenticates users via Google OAuth.
- Catch type errors in custom OAuth flow implementations before deployment.
- Enable IDE autocompletion and type hints for google-auth-oauthlib in a typed codebase.
- Enforce type safety in a team project that uses mypy or similar type checkers.
- Integrate google-auth-oauthlib into a Pydantic or dataclass-based configuration system with full type support.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for google-auth-oauthlib to enable static type checking in Python code that uses Google OAuth authentication.
Yes, if you use google-auth-oauthlib and require type checking. The low install friction, permissive MIT license, and lack of known vulnerabilities make it safe to add. However, the aging maintenance status (no updates since 2025-06-20, minimal community engagement) means you should verify that the stubs match your version of google-auth-oauthlib and be prepared to maintain a fork or find alternatives if the stubs fall out of sync.
Install
google-auth-oauthlib-stubs on PyPI
pip
pip install google-auth-oauthlib-stubsuv
uv add google-auth-oauthlib-stubspoetry
poetry add google-auth-oauthlib-stubsInstalling google-auth-oauthlib-stubs
Before you install
Low install friction with a pure-Python wheel. Maintenance status is aging—the package was first released on 2025-06-20 and has not been updated since, with minimal community engagement (1 star). Suitable for type checking but expect limited ongoing support.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions, making this safe to use in most projects without licensing concerns.
Quickstart
pip install google-auth-oauthlib-stubs
import google_auth_oauthlib.flow
# Type checker now understands google_auth_oauthlib types
Requires Python 3.12 or later; intended for use with a type checker like mypy, not for runtime behavior.
Verify before relying
- Whether these stubs cover the full API surface of google-auth-oauthlib or only a subset.
- Whether the stubs are actively maintained alongside google-auth-oauthlib releases.
- Community adoption and feedback on stub accuracy and completeness.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.12) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — google-auth-oauthlib, requests-oauthlib, google, google-auth-stubs |
| Maintenance | aging — 420 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 84,765/month — #13,977 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_auth_oauthlib_stubs-1.2.0-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
google-auth-stubsProvides type stubs for the google-auth…
permissive · top 5,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
google-auth-oauthlibIntegrates oauthlib with google-auth to handle…
permissive · top 1,000 on PyPI
googleapis-common-protos-stubsProvides type stubs for…
permissive · top 15,000 on PyPI
Flask-OAuthlibFlask-OAuthlib adds OAuth 1.0a and OAuth 2.0…
permissive · top 15,000 on PyPI
oauthlibOAuthLib implements OAuth 1.0 and OAuth 2.0…
permissive · top 1,000 on PyPI
requests-oauthlibAdds OAuth 1 and OAuth 2 authentication support…
permissive · top 1,000 on PyPI
google-authHandles server-to-server authentication with…
permissive · top 100 on PyPI
google-reauthProvides two-factor authentication reauth…
permissive · top 5,000 on PyPI
google-api-python-client-stubsProvides type stubs for…
permissive · top 5,000 on PyPI