Core API¶
ld_openfeature module¶
- class ld_openfeature.LaunchDarklyProvider(config: Config)[source]¶
- property client: LDClient¶
Access the underlying LaunchDarky client instance backing this provider.
This is useful for accessing additional functionality not exposed by the provider.
- resolve_boolean_details(flag_key: str, default_value: bool, evaluation_context: EvaluationContext | None = None) FlagResolutionDetails[bool][source]¶
Resolves the flag value for the provided flag key as a boolean
- resolve_float_details(flag_key: str, default_value: float, evaluation_context: EvaluationContext | None = None) FlagResolutionDetails[float][source]¶
Resolves the flag value for the provided flag key as a float
- resolve_integer_details(flag_key: str, default_value: int, evaluation_context: EvaluationContext | None = None) FlagResolutionDetails[int][source]¶
Resolves the flag value for the provided flag key as a integer
- resolve_object_details(flag_key: str, default_value: Sequence[bool | int | float | str | Sequence[bool | int | float | str | Sequence[FlagValueType] | Mapping[str, FlagValueType]] | Mapping[str, bool | int | float | str | Sequence[FlagValueType] | Mapping[str, FlagValueType]]] | Mapping[str, bool | int | float | str | Sequence[bool | int | float | str | Sequence[FlagValueType] | Mapping[str, FlagValueType]] | Mapping[str, bool | int | float | str | Sequence[FlagValueType] | Mapping[str, FlagValueType]]], evaluation_context: EvaluationContext | None = None) FlagResolutionDetails[dict | list][source]¶
Resolves the flag value for the provided flag key as a list or dictionary