Impacts result reporting package
Module contents
- class reporting.reporting.ProductImpactReport(barcode=None, product=None, barcode_similar=None, ciqual_AGB_similar=None, impact_categories=None, main_impact_category=None, product_mass=1000, language='french', use_nutritional_info=True)[source]
Bases:
objectClass used to generate reports for Open Food Facts products impacts.
- impact_per_ingredient_plot()[source]
Stacked bar showing the impacts shares related to each ingredient.
- impact_per_step_plot()[source]
Stacked bar showing the impacts shares related to each production step. Only possible if the product is linked to an Agribalyse reference
- off_ingredients()[source]
Get a nested list of dictionaries containing the ingredients of the product and custom attributes