openssh_key.key_params.common.ConversionFunctions

class openssh_key.key_params.common.ConversionFunctions(object_to_mapping: Callable[[Any], Optional[Mapping[str, Any]]], mapping_to_object: Callable[[Mapping[str, Any]], Any])

Bases: NamedTuple

Functions to convert typing.Mapping, representing parameter values, to an object of a certain type, and vice versa.

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

mapping_to_object

Functions to convert a typing.Mapping containing parameter values to an object of a certain type.

object_to_mapping

Functions to convert an object of a certain type to a typing.Mapping representing the parameter values in the object.

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

mapping_to_object: Callable[[Mapping[str, Any]], Any]

Functions to convert a typing.Mapping containing parameter values to an object of a certain type.

object_to_mapping: Callable[[Any], Optional[Mapping[str, Any]]]

Functions to convert an object of a certain type to a typing.Mapping representing the parameter values in the object.