Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1023 Bytes

File metadata and controls

29 lines (19 loc) · 1023 Bytes

GRPC Wrappers

The GRPC wrappers module provides low-level components for interacting with the Athena service via GRPC. These are consumed by the higher-level clients, you should only use them directly if you are implementing a new client.

See the athena-protobufs repository for more information about the protobuf definitions.

.. module:: resolver_athena_client.grpc_wrappers

Service Clients

.. autoclass:: resolver_athena_client.grpc_wrappers.classifier_service.ClassifierServiceClient
   :members:
   :special-members: __init__
   :show-inheritance:

The ClassifierServiceClient provides direct access to Athena service methods:

client = ClassifierServiceClient(channel)
deployment_response = await client.list_deployments(request)
classify_response = await client.classify(request)

The list_deployments(request) method lists available deployments for classification.

The classify(request) method performs image classification using the configured deployment.