from artifact_report import ArtifactHtmlReport # create a new HTML report report = ArtifactHtmlReport("My Report") # create a table table_data = [ ["Name", "Age", "Gender"], ["John", 30, "Male"], ["Mary", 25, "Female"], ["Peter", 40, "Male"] ] report.add_table("People", table_data) # generate the report report.generate_report()
from artifact_report import ArtifactHtmlReport # create a new HTML report report = ArtifactHtmlReport("My Report") # add an image report.add_image("my_image.jpg") # generate the report report.generate_report()In this code snippet, we create a new HTML report using the ArtifactHtmlReport class. We then add an image to the report using the add_image method. Finally, we generate the report using the generate_report method. The artifact_report module is part of the Autopsy framework, which is an open-source digital forensics platform.