Skip to content

samirsaci/automated_report

Repository files navigation

Automate Operational Reports Distribution in HTML Emails 📊

Automate the distribution of supply chain operational reports with visuals built in HTML emails with Python

Objective

Automate the decision-making process for the yearly budget allocation of an International Logistics Company.

Article

In this Article, we will build a fully automated solution to share a one-page operational report in an HTML email using Python.

📘 Your complete guide for Supply Chain Analytics

60+ case studies with source code, dummy data and mathematical concepts here 👉 Analytics Cheat Sheet

Youtube Video

Click on the image below to access a full tutorial video to understand the concept behind this solution

Explainer Video Link

Scenario

You are a continuous improvement manager at an international clothing group with stores worldwide.

The company produces garments, bags, and accessories in factories in Asia.

Stores are supplied from local warehouses, which factories directly replenish.

Regularly, you have to share warehouse operational metrics with your management.

This is a manual process in which you need to

  • Extract data from the Warehouse Management System (WMS)
  • Process data and build visuals with Excel
  • Send a short report by email with the visuals and comments

Objective

To be efficient, you would like to automate this process using Python.

Your solution will be a simple Python script, deployed on the cloud, that will automatically perform these four steps:

  1. Extract prepared order lines of last week from the WMS SQL database
  2. Process the data and compute KPIs with key insights
  3. Automatically send an HTML email with visuals and comments

Code

In this repository, you will find all the code used to explain the concepts presented in the article.

Files

  • Automate Reporting.ipynb - Jupyter notebook with step-by-step analysis
  • automated_report.py - Standalone Python script

Getting Started

pip install -r requirements.txt
python automated_report.py

Dependencies

  • pandas
  • matplotlib

About me 🤓

Senior Supply Chain and Data Science consultant with international experience working on Logistics and Transportation operations.
For consulting or advising on analytics and sustainable supply chain transformation, feel free to contact me via Logigreen Consulting.
For more case studies, check my Personal Website.

Releases

No releases published

Packages

 
 
 

Contributors