skillfed

google-auth-oauthlib-stubs

Type stubs for google-auth-oauthlib

google-auth-oauthlib-stubs v1.2.0 84.8K downloads/30d#13,977 on PyPI1
Permissive license MIT AGING released

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

uv

uv add google-auth-oauthlib-stubs

poetry

poetry add google-auth-oauthlib-stubs

Installing 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

Typing :: Stubs OnlyTyping :: Typed

Tags

type stubs google authgoogle-auth-oauthlib typingtype hints oauth googlestatic type checking oauthgoogle auth type annotationsmypy google oauthpyi stubs authentication
type-stubsoauthgoogle-auth

More Software Development packages