skillfed

google-auth-stubs

Type stubs for google-auth

google-auth-stubs v0.3.0 1.1M downloads/30d#4,403 on PyPI1
Permissive license Apache-2.0 DORMANT released

What it is and what it does

google-auth-stubs is a type stub package that adds static type information to the google-auth library. Type stubs are metadata files that tell type checkers like mypy what types and signatures exist in a package, enabling IDE autocompletion and catching type errors at development time. The stubs were generated automatically using stubgen and depend on google-auth, types-requests, and grpc-stubs.

You install this package alongside google-auth in development or testing environments where you want type checking. It does not change runtime behavior—it only provides type information to tools. Since the stubs are auto-generated and the project is dormant, there is a risk that they may lag behind google-auth releases or miss edge cases in the actual API.

Use it for:

  • Enable mypy or pyright type checking in a project that uses google-auth for authentication
  • Get IDE autocompletion and inline type hints when writing code that calls google-auth functions
  • Catch type mismatches in authentication setup before runtime in CI/CD type-checking steps
  • Support typed Python codebases that depend on google-auth without losing type safety

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides type stubs for the google-auth package, enabling static type checking and IDE autocompletion for code using google-auth.

Yes, if you use google-auth and want static type checking. Install it as a dev dependency alongside google-auth. The low friction and permissive license make it a safe addition. However, dormant maintenance means stubs may not cover the latest google-auth features—verify coverage for your specific use case before relying on it in strict type-checking workflows.

Install

google-auth-stubs on PyPI

pip

pip install google-auth-stubs

uv

uv add google-auth-stubs

poetry

poetry add google-auth-stubs

Installing google-auth-stubs

Before you install

Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 718 days ago—but the repository remains active and the package supports current Python versions.

License in practice

Apache-2.0 permissive license allows use in most projects without significant restrictions.

Quickstart

pip install google-auth-stubs

Then in your Python code with google-auth:
import google.auth
credentials, project = google.auth.default()

Verify before relying

  • Whether stubs are kept in sync with google-auth releases and cover the full API surface
  • Whether stubgen-generated stubs are sufficiently complete for complex authentication workflows

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0.0,>=3.6.2)
Install friction low — pure-Python wheel
Runtime dependencies 3 — google-auth, types-requests, grpc-stubs
Maintenance dormant — 718 days since the last release
Last repo commit
First released
Downloads 1,077,495/month — #4,403 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_auth_stubs-0.3.0-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

type stubs google-authgoogle-auth typingmypy google-authstatic type checking authenticationgoogle-auth type hintsIDE autocompletion google-auth
type-stubsstatic-typing

More Software Development packages