Skip to content

A Python-based automation tool that uses FastAPI and SQL Server to generate structured Excel reports. Includes a frontend interface, Excel upload/download, and support for daily/weekly/monthly processing.

Notifications You must be signed in to change notification settings

AjayThomas-crl/FastApi-Report-Generator_SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Report Generator

A backend-powered automation tool to generate custom Excel reports using FastAPI.

πŸš€ Features

  • Generate daily, weekly, and monthly reports from connected databases
  • Export processed data to Excel format
  • RESTful API endpoints using FastAPI
  • Frontend UI for file uploads and date range selection

πŸ”§ Tech Stack

  • Backend: Python, FastAPI
  • Frontend: HTML, CSS (basic)
  • Database: Microsoft SQL Server (Azure + Local)
  • Excel Handling: openpyxl, pandas

πŸ“ Project Structure

app/
β”œβ”€β”€ routes/              # API endpoints
β”œβ”€β”€ services/            # Excel processing logic
β”œβ”€β”€ static/              # Images and static files
β”œβ”€β”€ templates/           # HTML templates
β”œβ”€β”€ uploads/             # User uploaded Excel files
β”œβ”€β”€ output_files/        # Generated reports
└── config_sample.ini    # Sample DB config (real config excluded)

βš™οΈ Setup

  1. Clone the repo:

    git clone https://github.com/your-username/report-generator.git
    cd report-generator
  2. Install dependencies:

    pip install -r requirements.txt
  3. Create a config.ini file in the app/ folder using the format in config_sample.ini.

  4. Run the server:

    uvicorn app.main:app --reload

πŸ“Œ Notes

  • The real config.ini is excluded from the repository for security.
  • Adjust database table names and credentials in your local config.ini.

πŸ“„ License

This project is for educational and demo purposes.

About

A Python-based automation tool that uses FastAPI and SQL Server to generate structured Excel reports. Includes a frontend interface, Excel upload/download, and support for daily/weekly/monthly processing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published