google-cloud-discoveryengine
Google Cloud Discoveryengine API client library
What it is and what it does
This is Google's official Python client for the Discovery Engine API, a managed service for building search and recommendation systems powered by generative AI. It wraps the underlying gRPC and REST APIs, providing Python-friendly classes and methods to interact with Discovery Engine resources—datastores, search configurations, recommendations, and generative AI features.
The library is part of the broader google-cloud-python ecosystem and follows Google Cloud's standard patterns for authentication, configuration, and error handling. It requires Python 3.10 or later and depends on google-api-core for common functionality, google-auth for credential management, and gRPC libraries for transport. You'll need a Google Cloud project with Discovery Engine enabled and appropriate credentials configured before making API calls.
Use it for:
- Build a search interface that indexes and queries custom documents or web content using Discovery Engine's managed search.
- Integrate personalized product recommendations into an e-commerce or content platform via the Recommendations API.
- Create a generative AI-powered search experience that synthesizes answers from indexed data.
- Programmatically manage Discovery Engine datastores, schemas, and configurations from Python applications.
- Implement multi-turn conversational search with grounding in custom knowledge bases.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for Google Cloud Discovery Engine API, enabling programmatic access to search, recommendation, and generative AI capabilities for building search and discovery applications.
Yes. This is Google's official, actively maintained client library for a managed cloud service. Install it if you're building on Google Cloud Discovery Engine. Low install friction, no security vulnerabilities, permissive license, and recent releases. Prerequisite: Google Cloud project setup, billing, and authentication configuration.
Install
google-cloud-discoveryengine on PyPI
pip
pip install google-cloud-discoveryengineuv
uv add google-cloud-discoveryenginepoetry
poetry add google-cloud-discoveryengineInstalling google-cloud-discoveryengine
Before you install
Low friction installation with a pure Python wheel. Actively maintained with a recent release; last commit 2026-08-14. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1), all widely used and stable.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions. Suitable for most projects, whether proprietary or open-source.
Quickstart
pip install google-cloud-discoveryengine
from google.cloud import discoveryengine_v1
client = discoveryengine_v1.SearchServiceClient()
# Requires Google Cloud credentials and a configured Discovery Engine datastore
Requires Google Cloud project with Discovery Engine API enabled, billing configured, and valid authentication credentials (typically via GOOGLE_APPLICATION_CREDENTIALS environment variable or Application Default Credentials).
Verify before relying
- Whether the library supports async/await patterns or is synchronous-only
- Rate limiting and quota behavior for Discovery Engine API calls
- Specific authentication methods supported beyond standard google-auth
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — google-api-core, google-auth, grpcio, proto-plus, protobuf, grpc-google-iam-v1 |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,507,587/month — #1,731 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_discoveryengine-0.20.2-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-appengine-loggingClient library for Google Cloud AppEngine…
permissive · top 1,000 on PyPI
google-cloud-recommenderPython client library for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-dlpPython client library for Google Cloud's…
permissive · top 1,000 on PyPI
google-cloud-recommendations-aiPython client library for Google Cloud…
permissive · top 5,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI
google-api-python-clientProvides Python bindings to call Google's…
permissive · top 1,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-modelarmorProvides a Python client for Google Cloud Model…
permissive · top 5,000 on PyPI
google-ai-generativelanguagePython client library for the Gemini API,…
permissive · top 5,000 on PyPI
google-cloud-retailProvides Python bindings to Google Cloud Retail…
permissive · top 15,000 on PyPI