yera.setup.provider_setup.registry

Find installed provider setup operations and their dependencies.

Symbols

def find_dependencies — Find Python dependencies used by provider setup integrations.
def find_provider_setups — Find provider setup operations supported by installed dependencies.
def find_unavailable_provider_setups — Find provider integrations with missing client dependencies.
def get_provider_setup — Get the setup operation for a provider integration.

find_dependencies

find_dependencies() → dict[str, bool]

Find Python dependencies used by provider setup integrations.

Each import path is inspected without importing the corresponding client module. Dependencies shared by multiple providers appear once in the returned mapping.

Returns

type: dict[str, bool]

Import paths mapped to whether Python can resolve them.

find_provider_setups

find_provider_setups(
    dependencies: Mapping[str, bool],
) → tuple[ProviderSetup, ...]

Find provider setup operations supported by installed dependencies.

Parameters

dependencies
type: Mapping[str, bool]

Dependency availability returned by find_dependencies.

Returns

type: ProviderSetup

Provider setup objects whose required dependencies are all available, preserving presentation order.

find_unavailable_provider_setups

find_unavailable_provider_setups(
    dependencies: Mapping[str, bool],
) → tuple[ProviderSetup, ...]

Find provider integrations with missing client dependencies.

Parameters

dependencies
type: Mapping[str, bool]

Dependency availability returned by find_dependencies.

Returns

type: ProviderSetup

Provider setup objects with at least one unavailable dependency, preserving presentation order.

get_provider_setup

get_provider_setup(
    provider_type: str,
) → ProviderSetup | None

Get the setup operation for a provider integration.

Parameters

provider_type
type: str

Configuration key identifying the provider.

Returns

type: ProviderSetup | None

The provider setup operation, or None when the provider is unknown.