Skip to content

Ricardo-Jaramillo/GUI_ControlProgram-AnalysisAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control Program – Analysis and Reporting System

General Overview and Objective

The Control Program project aims to analyze and process data related to sales campaigns, audience segmentation, and geographic-demographic analysis. This system supports campaign management, data analysis, and the generation of visual and interactive reports for strategic decision-making.

Designed to be modular and scalable, the project integrates tools for data analysis, processing through formats like PowerBI, Excel, Python, HTML/JSON, and an intuitive graphical user interface (GUI) for easy interaction.


Folder Structure

Main script to launch the graphical user interface. It enables users to interact with project functionalities such as campaign management, result visualization, and filtering options.

Utility folder containing configuration files and constant definitions.

  • config/

    • credentials.yaml: Stores external access credentials (e.g., database or API keys).
  • constants/

    • bc.py: Defines constants and mappings used throughout the analysis, such as regions, store formats, socioeconomic levels, and segments.
    • gui.py: GUI-specific configurations.
  • data/

    • Static resources like images and geographic JSON files.
      • Icons: icono_cogno.png, logo_cogno.png, etc.
      • Maps: México.json, mexicoHigh.json

Core logic and processing modules.

  • analisis_html.py: Parses and processes HTML data for extracting campaign or product insights.
  • campana.py: Handles logic related to monetization campaigns.
  • connection.py: Manages connections to databases and APIs.
  • GUI.py: Implements the GUI structure and user interaction flows.
  • monetizacion.py: Performs calculations and generates monetization analysis.
  • path.py: Path management and file routing.
  • productos.py: Handles product and category information processing.
  • publicos_objetivo.py: Segments customers into strategic audiences.
  • query_builder.py: Dynamically builds SQL queries based on filters.
  • radiografia.py: Generates brand-level analytical summaries (for PowerBI reports).

Additional GUI pages, such as advanced reports or configuration panels.

(SQL folder – coming soon): For modular SQL query files, reusable and cleaner.

Testing and debugging notebooks/scripts.


How It Works

Each section in the GUI corresponds to a specific stage of the analysis workflow:

📸 Main menu interface.

Main Menu

1. Products

Users select the Products, Brands, Suppliers, and Categories to be analyzed.

📸 Product selection interface.

Products

📸 Categories selection.

Products


2. Business Case

This module allows analysis of selected products by filters such as Socioeconomic Level, Store Type, and Product Families. Users can define date ranges and purchase conditions (e.g., minimum ticket).

📸 Business Case Analysis.

BC Analisis

📸 Business Case - Report Example.

BC Analisis


3. Target Audiences

Classifies the customer base into Loyal, Acquired, or Recovered groups based on behavioral patterns. This section quantifies the potential audience for a campaign.

📸 POs menu.

PO


4. Contact Lists

Based on the audience segments, this section shows how many users can be contacted via SMS, Email, or WhatsApp. It helps generate prioritized communication lists per channel.

📸 Contactable audience by channel.

Listas de envio - Total

📸 Contactable audience by channel - Segment by Condition.

Listas de envio - Cumple condición


5. Short and Long Radiography

Users define an analysis period and ticket condition. This section performs a deep analysis of the selected brand, generating insights for PowerBI reports (auto-exportable).

📸 Long Radiography selection.

Radiografía Larga

An example of the Long Radiography report can be accesed in the PDF folder

📸 Short Radiography selection.

Radiografía corta

An example of the Short Radiography report can be accesed in the PDF folder


6. Campaign Results

Allows users to see, add, update or delete campaign results. All results are stored in the SQL Database and feed the PowerBI Reports.

📸 Campaign Results interface.

Resultados de Campaña

An example of the Campaign Results report can be accesed in the PDF folder


7. View/Download Data

Allows users to revisit and download previously generated tables and datasets.

📸 Export generated datasets.

Guardar datos


Project Results and Conclusions

This project provides a comprehensive tool for managing and analyzing sales campaigns, customer behavior, product performance, and generating strategic audiences for communication.

Achievements:

  • Process Automation – Eliminates repetitive manual tasks in report generation.
  • Enhanced Decision-Making – Data visualizations provide clear campaign insights.
  • Modular & Scalable Design – Easy to expand and integrate with new features or systems.
  • Time Savings – Cuts analysis time by over 80%, allowing focus on higher-impact data science.
  • Improved Information Control – Simple generation, viewing, and export of reports.
  • Centralized Platform – Everything needed for campaign planning in one place.

Contact

For questions or suggestions, please contact:

Ricardo Jaramillo
📧 [email protected]


Extras

  • ✅ Easy to adapt to other products or market segments.
  • 🚀 Plans for future integration with Streamlit or cloud APIs.
  • 🔐 Secure credentials stored separately.
  • 🧠 Built with modular Python components for clarity and maintainability.

Requirements

Install dependencies via:

pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors