polywrap_uri_resolvers.resolvers.aggregator.uri_resolver_aggregator module

This module contains the UriResolverAggregator Resolver.

class polywrap_uri_resolvers.resolvers.aggregator.uri_resolver_aggregator.UriResolverAggregator(resolvers: List[UriResolver], step_description: str | None = None)[source]

Bases: UriResolverAggregatorBase

Defines a resolver that aggregates a list of resolvers.

This resolver aggregates a list of resolvers and tries to resolve the uri with each of them. If a resolver returns a value other than the resolving uri, the value is returned.

Parameters:
  • resolvers (List[UriResolver]) – The list of resolvers to aggregate.

  • step_description (Optional[str]) – The description of the resolution step. Defaults to the class name.

get_resolvers(client: InvokerClient, resolution_context: UriResolutionContext) List[UriResolver][source]

Get the list of resolvers to aggregate.

get_step_description() str | None[source]

Get the description of the resolution step.