pimlico.core.modules.map.filter module¶
-
class
DocumentMapOutputTypeWrapper
(*args, **kwargs)[source]¶ Bases:
object
-
non_filter_datatype
= None¶
-
wrapped_module_info
= None¶
-
output_name
= None¶
-
-
wrap_module_info_as_filter
(module_info_instance)[source]¶ Create a filter module from a document map module so that it gets executed on the fly to provide its outputs as input to later modules. Can be applied to any document map module simply by adding filter=T to its config.
This function is called when filter=T is given.
Parameters: module_info_instance – basic module info to wrap the outputs of Returns: a new non-executable ModuleInfo whose outputs are produced on the fly and will be identical to the outputs of the wrapper module.