Skip to content

fontlabapp.core.utils.collections.dictextractor · declarations 001

Back to fontlabapp.core.utils.collections.dictextractor

contains staticmethod

contains(obj: Any, search: Any, search_type: Any = None) -> Any

Does the object contain ANY value or nested object with given name (search)

Attributes: search (Str): Search string search_type (type) : Value type

Returns: Bool

extract staticmethod

extract(obj: Any, search: Any) -> Any

Pull all values of specified key (search)

Attributes: search (Str): Search string

Returns: generator

find staticmethod

find(obj: Any, search: Any, search_type: Any = None) -> Any

Pull all objects that contain keys of specified search.

Attributes: search (Str): Search string search_type (type) : Value type Returns: generator

where staticmethod

where(obj: Any, search_value: Any, search_key: Any = None) -> Any

Pull all objects that contain values of specified search.

Attributes: search_value (Str): Search value search_key (Str) : Search for specific key that contains above value Returns: generator