Looks for all the files ending with .tiff extension in /supplier-data/images directory and changes the files to required resolution and extension (.jpeg). Saves all the files in the same directory
Uploads all the jpeg images to specified URL using requests library
Formats fruit name and weight data from descriptions folder as a list of dictionaries and passes it to generate_report method in reports.py file to generte PDF report file. It also calls generate_email and send_email methods in the emails.py file to generate and send the report email.
Takes list of dictionaries as argument and creates a pdf file called 'processed.pdf'. Uses reportlab library to accomplish this task.
Generates and sends emails as required by other modules.
Processes jpeg images files in /description folder as a dictionary and uploads fruit information in json format
Runs system checks and generates appropriate error/warning email.