{"id":23388270,"url":"https://github.com/adamduval/snowflake_report_generator","last_synced_at":"2025-04-08T13:26:46.574Z","repository":{"id":268941879,"uuid":"905912451","full_name":"adamduval/snowflake_report_generator","owner":"adamduval","description":"📊 Automated report generation using only Snowflake Notebooks. 📊","archived":false,"fork":false,"pushed_at":"2024-12-20T15:49:10.000Z","size":8594,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T09:40:25.185Z","etag":null,"topics":["pdf","python","reportlab","snowflake","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adamduval.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-19T19:18:28.000Z","updated_at":"2025-01-15T11:30:51.000Z","dependencies_parsed_at":"2024-12-19T21:22:04.774Z","dependency_job_id":"c4505322-2c55-4aad-85f5-658388c72682","html_url":"https://github.com/adamduval/snowflake_report_generator","commit_stats":null,"previous_names":["adamduval/snowflake_report_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamduval%2Fsnowflake_report_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamduval%2Fsnowflake_report_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamduval%2Fsnowflake_report_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamduval%2Fsnowflake_report_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamduval","download_url":"https://codeload.github.com/adamduval/snowflake_report_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247847810,"owners_count":21006137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pdf","python","reportlab","snowflake","streamlit"],"created_at":"2024-12-22T02:18:29.688Z","updated_at":"2025-04-08T13:26:46.552Z","avatar_url":"https://github.com/adamduval.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 Snowflake Automated PDF Report Generator 📊\n\nThe **Snowflake Automated PDF Report Generator** is a **proof-of-concept project** designed to showcase the **functionality** and **power** of **Snowflake Notebooks**. This project demonstrates how to create a fully **automated reporting pipeline** for a fictional company, **WidgetCo**, using only **Snowflake Notebook features**.\n\nThe result? A **dynamic, daily PDF report** of **sales performance** for three product lines (**A, B, and C**), personalized for three different managers. These reports are sent automatically via **email** with **failure altering** and **archived for future reference**.\n\nhttps://github.com/user-attachments/assets/82e1c99c-a5b8-4a6c-967f-9b8965a58f10\n\n## 🔧 Key Features\n\n- **Dynamic PDF Report Generation:**\n  - Generate PDF reports for product lines A, B, and C.\n  - Custom data tailored for each manager.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/d4057c0c-a6c4-4d00-be3a-9c079fcf37f9\" alt=\"a-report\" width=\"250\"/\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/a7840e76-a568-4b48-864d-8c8e0e0de551\" alt=\"b-report\" width=\"250\"/\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/7d0ddca8-c6da-41bb-8e83-3558f9815dd8\" alt=\"c-report\" width=\"250\"/\u003e\n\u003c/p\u003e\n\n- **Email Failure Alerts:**\n  - Automatic email notifications in case of report generation or delivery failures.\n \n    ![email-warning](https://github.com/user-attachments/assets/d7b3bab4-b21f-4787-9da6-1bbc8ddf0301)\n\n- **Customizable Dynamic Emails:**\n  - Each manager receives a personalized email with their respective report.\n\n  ![email-inbox](https://github.com/user-attachments/assets/147dc1f2-707e-4a83-8515-367768585c8e)\n\n- **Visualize Reports During Development:**\n  - View the report directly within the notebook environment without needing to save it to a stage.\n\n  ![dark-report-in-nb](https://github.com/user-attachments/assets/5b776e32-e7ce-40d3-9fab-1dc803497914)\n\n- **Archive Management:**\n  - All PDF reports are securely archived to an internal stage for easy future reference.\n\n  ![stage-main](https://github.com/user-attachments/assets/497eead9-d850-4355-88cb-ce82eebead3d)\n  ![stage-a](https://github.com/user-attachments/assets/8e054d94-2a86-4fe7-942a-e112f38dd753)\n\n- **Simplified Workflow Management:**\n  - A single orchestration notebook handles the entire process, supporting both ad-hoc runs and scheduled automation.\n\n---\n\n## 🏗️ Requirements\n\n- A Snowflake account with access to Snowflake Notebooks.\n\n---\n\n## ⚖️ Step-by-Step Walkthrough\n\n### 1. Setup\n1. Copy all the notebooks provided into your Snowflake environment.\n\n### 2. Data Engineering\n- Run the `_00_REPORT_GEN__ENG` notebook to prepare the data for the project.\n  - This notebook generates a sales fact table with randomized sales data for three fictional widgets.\n  - It also creates a stage to store the generated PDF reports.\n\n### 3. Report Development\n- Run the `01_REPORT_GEN__REPORT` notebook to view and test the demo report.\n  - Add the logo file to the notebook from `\\resources]\\logo.pgn` or create your own logo\n  - Customize the report as needed.\n  - Preview the report as a JPG directly within the notebook.\n\n### 4. Email Integration Setup\n- Run the `_02_REPORT_GEN__EMAIL_CONFIG` notebook to configure email integration.\n  - Update the notebook with your email addresses.\n\n### 5. Email Development\n- Run the `_03_REPORT_GEN__SEND_EMAIL` notebook to preview email content.\n  - Note: Email formatting preview may have limitations due to Streamlit.\n\n### 6. Automate Report Generation and Delivery\n- Run the `_04_REPORT_GEN__PIPELINE` notebook to generate and send the reports.\n  - Schedule this notebook for daily execution to automate the reporting process.\n\n---\n\n## 🚀 Reach out if you have any questions or want to chat about the project. I'd love to hear your thoughts!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamduval%2Fsnowflake_report_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamduval%2Fsnowflake_report_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamduval%2Fsnowflake_report_generator/lists"}