Utilities API
The utils module provides utility functions for the 1WorldSync API client.
Timestamp Functions
Data Extraction Functions
- oneworldsync.utils.extract_nested_value(data, path, default=None)[source]
Extract a value from a nested dictionary using a path
- oneworldsync.utils.get_nested_dict_value(data, path, default=None)[source]
Extract a value from a nested dictionary using a dot-separated path
- oneworldsync.utils.extract_product_data(product_data)[source]
Extract relevant product data from a 1WorldSync product object based on the Swagger Search schema.
- oneworldsync.utils.extract_search_results(search_results)[source]
Extract structured data from search results