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:
NamedTupleFunctions 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
Functions to convert a
typing.Mappingcontaining parameter values to an object of a certain type.Functions to convert an object of a certain type to a
typing.Mappingrepresenting 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.Mappingcontaining 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.Mappingrepresenting the parameter values in the object.