Skip to content

This project automates the generation of reports by integrating data cleaning, SQL query execution, and email dispatch functionalities using Python. Designed for efficiency and scalability, it allows for seamless automation of routine reporting tasks. with Technologies Used Python SQL Anaconda Task Scheduler (Windows)

Notifications You must be signed in to change notification settings

pooja2434/Report-Automation-Python-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Report Automation Project

This project automates data cleaning, SQL query execution, and email reporting. It is modular, secure, and designed to run via Anaconda Prompt or be scheduled using batch scripts / Task Scheduler

πŸ“ Folder Structure Report/ β”œβ”€β”€ configs/ β”‚ β”œβ”€β”€ auto_email.py β”‚ β”œβ”€β”€ email_template.py β”‚ └── user_pwrd.py β”‚ β”œβ”€β”€ utils/ β”‚ β”œβ”€β”€ data_cleaning.py β”‚ └── query.py β”‚ β”œβ”€β”€ main.py β”œβ”€β”€ run_with_failure_msg.py β”œβ”€β”€ run_with_scheduler.bat └── README.md βš™οΈ Setup Instructions (Anaconda Prompt)

  1. Open Anaconda Prompt Launch Anaconda Prompt from your Start Menu.

  2. Create and Activate Environment conda create -n Report_Automation python=3.10 -y conda activate Report_Automation

  3. Install Required Packages pip install pandas keyring

  4. Set Up Email Credentials Securely import keyring keyring.set_password("gmail", "[email protected]", "your_password")

  5. Ensure SQLite Database Exists Create example.db with a users table if needed: sqlite3 example.db CREATE TABLE users (name TEXT, age INTEGER);

πŸš€ Running the Project Run Main Script python Report/main.py

Run with Error Handling python Report/main.py

Run via Batch Scheduler cd "C:\Working Directory\Review Report Automation" run_with_scheduler.bat

🧹 Features Data Cleaning: whitespace removal, case standardization, duplicate handling SQL Queries: dynamic generation and execution Email Reports: SMTP-based email delivery with secure credentials Error Notifications: automatic email alerts on failure Scheduling: batch script for automation via Task Scheduler

πŸ“¬ Contact Author: Pooja K R Role: Data Analyst πŸ“§ [email protected]

About

This project automates the generation of reports by integrating data cleaning, SQL query execution, and email dispatch functionalities using Python. Designed for efficiency and scalability, it allows for seamless automation of routine reporting tasks. with Technologies Used Python SQL Anaconda Task Scheduler (Windows)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published