def __init__(self, data, category='schema', without_counts=False, **kwargs):
"""
:param data: json like structure - schema, mapping, ...
:param without_counts: bool - default False, remove all count fields in output if True
:param kwargs: unused - exists for a unified interface with other subclasses of BaseOutput
"""
data_processor = OutputPreProcessing(category)
if without_counts:
self.data = data_processor.filter_data(data)
else:
self.data = data
评论列表
文章目录