geolib.models.utils

Functions

get_filtered_type_hints(class_type)

Gets all the (valid) type hints for a given class.

get_required_class_field(class_type)

Gets all the (valid) class fields which are mandatory.

is_list(tp)

is_union(tp)

unpack_if_union(tp)

geolib.models.utils.get_filtered_type_hints(class_type)

Gets all the (valid) type hints for a given class.

Parameters:

class_type (Type) – Class to extract property fields.

Returns:

Filtered list of tuples representing field name and type.

Return type:

List[Tuple[str, Type]]

geolib.models.utils.get_required_class_field(class_type)

Gets all the (valid) class fields which are mandatory.

Parameters:

class_type (Type) – [description]

Returns:

[description]

Return type:

List[Tuple[str, Type]]

geolib.models.utils.is_list(tp)
geolib.models.utils.is_union(tp)
geolib.models.utils.unpack_if_union(tp)