google-api-python-client-stubs
Type stubs for google-api-python-client
Decision gist · record as of 2026-08-14
Yes, if you use google-api-python-client and want static type checking or better IDE support. Install it alongside google-api-python-client; it has low friction and no runtime overhead. Be aware that explicit type annotations require TYPE_CHECKING blocks or string annotations to avoid crashes.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7+.
- Types are stub-only and cannot be imported at runtime; use TYPE_CHECKING blocks or string annotations for explicit type annotations.
- Low install friction; pure stub package with minimal dependencies (google-api-python-client, types-httplib2, typing-extensions).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows broad use, modification, and distribution with minimal restrictions.
last release 2026-07-11 (34 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,367,935 downloads/mo, #2,318 on PyPI
Alternatives
Verify before relying
pip install google-api-python-client-stubs
# In your code with type checking enabled:
from __future__ import annotations
from google-api-python-client import discovery
service = discovery.build('sheets', 'v4', credentials=creds)- Whether stub completeness and accuracy match current google-api-python-client API surface
- Performance impact of type inference on large codebases using many Google API services
- Frequency of stub updates relative to google-api-python-client release cycle
What it is and what it does
This package provides type stubs for google-api-python-client, the official Python library for accessing Google APIs. It bridges the gap between the library's dynamic nature—where resources and methods are attached at runtime—and static type checkers, enabling both type checking and improved editor autocomplete.
The stubs are generated automatically from Google's Discovery Documents and cover all API services and versions. Because the underlying library is highly dynamic (resources are instances of a single class with dynamically attached methods, and requests/responses are dictionaries), the stubs define TypedDicts and classes that exist only in the stub files, not in the runtime library. This means explicit type annotations must use TYPE_CHECKING guards or string annotations to avoid runtime crashes.
Use it for
- Enable type checkers to validate code using google-api-python-client without runtime errors.
- Get IDE autocomplete and inline documentation for API methods and parameters.
- Explicitly annotate function arguments and return types when working with Google APIs.
- Catch API usage errors at development time rather than at runtime.
- Improve code maintainability in projects that integrate multiple Google services.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use google-api-python-client and want static type checking or better IDE support.
Install it alongside google-api-python-client; it has low friction and no runtime overhead. Be aware that explicit type annotations require TYPE_CHECKING blocks or string annotations to avoid crashes.
Install
google-api-python-client-stubs on PyPI
Before you install
Low install friction; pure stub package with minimal dependencies (google-api-python-client, types-httplib2, typing-extensions). Actively maintained with recent release.
Requires Python 3.7+. Types are stub-only and cannot be imported at runtime; use TYPE_CHECKING blocks or string annotations for explicit type annotations.
License in practice
Apache-2.0 permissive license allows broad use, modification, and distribution with minimal restrictions.
Quickstart
pip install google-api-python-client-stubs
# In your code with type checking enabled:
from __future__ import annotations
from google-api-python-client import discovery
service = discovery.build('sheets', 'v4', credentials=creds)
Verify before relying
- Whether stub completeness and accuracy match current google-api-python-client API surface
- Performance impact of type inference on large codebases using many Google API services
- Frequency of stub updates relative to google-api-python-client release cycle
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesgoogle-api-python-clienttypes-httplib2typing-extensions |
| Maintenance | Actively maintained 34 days since the last release |
| First released | |
| Downloads | 4,367,935 / month, #2,318 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Typing :: Stubs Only |
Evidence: google_api_python_client_stubs-1.39.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs google api client”
- google-api-python-client-stubsProvides type stubs for google-api-python-client, enabling static…
- ghome-foyer-apiProvides generated Protobuf stubs for the Google Home Foyer API,…
- types-google-cloud-ndbProvides type stubs for google-cloud-ndb, enabling static type…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also google-auth-stubs · quantconnect-stubs · googleapis-common-protos-stubs · celery-types · django-stubs · pika-stubs · google-auth-oauthlib-stubs · msgpack-types · types-google-cloud-ndb · types-gdb