Skip to content

Commit

Permalink
PENGSOL-483: Add the script that fills the DWH Excel sheet.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dawid Makar committed Dec 19, 2024
1 parent 432336e commit ae8ae5a
Show file tree
Hide file tree
Showing 3 changed files with 540 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/excel_dwh_filler/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Excel DWH filler

This script is used to fill the Excel file with data from DWH.

## Requirements
- Python 3.10+
- The packages listed in the requirements file. You can install them with:
```bash
pip install -r requirements.txt
```
- The DWH Excel template. Paste it to the same directory as the script, and name it `template.xlsx`.

## Usage

Run the script from CLI with the following command:
```bash
python excel_sheets_filler.py --output_file=JO-GL.xlsx --db_url=XX.XXX.XX.XXX --db_name=PUTDBNAMEHERE --db_username=PUTDBUSERNAMEHERE --db_password=PUTPASSWORDHERE --site=JO-GL
```

Remember to replace the placeholders with the actual values: the database URL, database name, database username, database password, and site name.
Loading

0 comments on commit ae8ae5a

Please sign in to comment.