pypath.inputs.common.glom_fields§

pypath.inputs.common.glom_fields(fields: List[str] | Dict[str, str | tuple | dict | Callable] | None = None) Dict[str, str | tuple | dict | Callable][source]§

Generates a glom spec dict from a list or dict, protecting each field by glom.Coalesce.