darbiadev_ups.helpers

Helper functions.

Functions

get_nested_dict_value(→ Any)

Parse nested values from dictionaries.

parse_tracking_response(→ dict)

Parse tracking data.

parse_address_validation_response(→ dict)

Parse address validation data.

parse_time_in_transit_response(→ dict)

Parse time in transit data.

Module Contents

darbiadev_ups.helpers.get_nested_dict_value(dct: dict, keypath: str, default: Any = None, separator: str = '.') Any[source]

Parse nested values from dictionaries.

darbiadev_ups.helpers.parse_tracking_response(response: dict, include_original: bool = False) dict[source]

Parse tracking data.

darbiadev_ups.helpers.parse_address_validation_response(response: dict, include_original: bool = False) dict[source]

Parse address validation data.

darbiadev_ups.helpers.parse_time_in_transit_response(response: dict, include_original: bool = False) dict[source]

Parse time in transit data.