skillfed

google-cloud-discoveryengine

Google Cloud Discoveryengine API client library

google-cloud-discoveryengine v0.20.2 7.5M downloads/30d#1,731 on PyPI5,373
Permissive license Apache-2.0 Active released

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

uv

uv add google-cloud-discoveryengine

poetry

poetry add google-cloud-discoveryengine

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google cloud discovery engine clientpython discovery engine apicloud search and recommendationsgenerative ai app builder sdkgoogle cloud search client librarydiscovery engine python wrappercloud generative ai search
google-cloudsearch-apigenerative-ai

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

google-cloud-appengine-logging

Client library for Google Cloud AppEngine…

permissive · top 1,000 on PyPI

google-cloud-recommender

Python client library for Google Cloud…

permissive · top 15,000 on PyPI

google-cloud-dlp

Python client library for Google Cloud's…

permissive · top 1,000 on PyPI

google-cloud-recommendations-ai

Python client library for Google Cloud…

permissive · top 5,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI

google-api-python-client

Provides Python bindings to call Google's…

permissive · top 1,000 on PyPI

google-cloud-resource-manager

Provides a Python client for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-modelarmor

Provides a Python client for Google Cloud Model…

permissive · top 5,000 on PyPI

google-ai-generativelanguage

Python client library for the Gemini API,…

permissive · top 5,000 on PyPI

google-cloud-retail

Provides Python bindings to Google Cloud Retail…

permissive · top 15,000 on PyPI