google-auth-stubs
Type stubs for google-auth
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-stubsuv
uv add google-auth-stubspoetry
poetry add google-auth-stubsInstalling 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
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-api-python-client-stubsProvides type stubs for…
permissive · top 5,000 on PyPI
google-auth-oauthlib-stubsProvides type stubs for google-auth-oauthlib to…
permissive · top 15,000 on PyPI
googleapis-common-protos-stubsProvides type stubs for…
permissive · top 15,000 on PyPI
django-stubsProvides type stubs and a mypy plugin to enable…
permissive · top 5,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI
google-re2-stubsProvides type stubs for the google-re2 package,…
permissive · top 15,000 on PyPI
homeassistant-stubsProvides PEP 484 type stubs for Home Assistant…
permissive · top 15,000 on PyPI
ob-metaflow-stubsProvides type hints and stub files for the…
permissive · top 15,000 on PyPI
motor-typesProvides Python type stubs for Motor, enabling…
permissive · top 15,000 on PyPI
celery-typesProvides type stubs for Celery and related…
permissive · top 5,000 on PyPI