xds-protos

1.80.0 · active · verified Mon Apr 13

Package `xds-protos` is a collection of ProtoBuf generated Python files for xDS protos (or the data-plane-api). It provides Python bindings for the xDS (eXtensible Discovery Service) APIs, which enable dynamic configuration of proxies and load balancers, primarily used within the gRPC and Envoy ecosystems. The current version is 1.80.0, released on March 30, 2026, and it is actively maintained as part of the gRPC project, with frequent updates that often align with gRPC releases.

Warnings

Install

Imports

Quickstart

Demonstrates importing a core xDS message (`DiscoveryRequest`) and instantiating it. This package provides the generated message classes for use in xDS clients or servers.

from envoy.service.discovery.v3 import discovery_pb2

# Create a simple DiscoveryRequest message
request = discovery_pb2.DiscoveryRequest(
    version_info='1.0.0',
    node=None, # In a real scenario, this would be a Node message
    resource_names=['my-cluster'],
    type_url='type.googleapis.com/envoy.config.cluster.v3.Cluster',
    response_nonce='some-nonce'
)

print(f"Created DiscoveryRequest: {request}")

# Accessing fields
print(f"Requested resource names: {request.resource_names}")

view raw JSON →