(group, sketch, zip_file)
Export an aggregation group from a sketch and write it to a ZIP file.

    Args:
        group (timesketch.models.sketch.AggregationGroup): an aggregation
            group object.
        sketch (timesketch.models.sketch.Sketch): a sketch object.
        zip_file (ZipFile): a zip file handle that can be used to write
            content to.
Export an aggregation group from a sketch and write it to a ZIP file.
Export an aggregation group from a sketch and write it to a ZIP file .
def export_aggregation_group(group, sketch, zip_file):
    """Export an aggregation group from a sketch and write it to a ZIP file.

    Args:
        group (timesketch.models.sketch.AggregationGroup): an aggregation
            group object.
        sketch (timesketch.models.sketch.Sketch): a sketch object.
        zip_file (ZipFile): a zip file handle that can be used to write
            content to.
    """
    name = '{0:04d}_{1:s}'.format(group.id, group.name)
    chart, _, meta = utils.run_aggregator_group(group, sketch_id=sketch.id)

    zip_file.writestr(
        'aggregation_groups/{0:s}.meta'.format(name), json.dumps(meta))
    zip_file.writestr(
        'aggregation_groups/{0:s}.html'.format(name), chart.to_html())
def export_aggregation_group ( group , sketch , zip_file ) : name = '{0:04d}_{1:s}' . format ( group . id , group . name ) chart , _ , meta = utils . run_aggregator_group ( group , sketch_id = sketch . id ) zip_file . writestr ( 'aggregation_groups/{0:s}.meta' . format ( name ) , json . dumps ( meta ) ) zip_file . writestr ( 'aggregation_groups/{0:s}.html' . format ( name ) , chart . to_html ( ) )