Welcome to the HKC Construction Report Generator! 🚀 This project is designed to fetch organizational activities such as Marketing, Business Development, Estimating, IT & Cybersecurity, and more, and present them in visually appealing PDF reports using Canva. The generator is primarily powered by Python.
- 📊 Data Aggregation: Fetch activities across various departments like:
- 🎯 Marketing
- 🤝 Business Development
- 📐 Estimating
- 🔒 IT & Cybersecurity
- 🏢 Other organizational functions
- 🎨 Beautiful PDF Reports: Leverage the power of Canva templates for professional-grade, visually striking reports.
- ⚙️ Customizable: Tailor the data and visuals to suit specific reporting needs.
- 🤖 Automated Workflow: Streamlined processes for generating reports with minimal manual intervention.
- 🐍 Python: Core language for data processing and automation.
- 🎨 Canva API: To design and export PDF reports.
- 📦 Libraries Used:
requests: For fetching data.pandas: For data manipulation.canva-api-sdk: To interact with Canva.fpdfor similar (optional): For additional PDF customizations.
-
Python 3.8+ installed.
-
Canva account and API key.
-
Dependencies installed via pip:
pip install requests pandas canva-api-sdk
Create a .env file in the root directory with the following details:
CANVA_API_KEY=your_canva_api_key_here- Clone this repository:
git clone https://github.com/yourusername/hkc-report-generator.git cd hkc-report-generator - Run the script:
python main.py
- Generated PDFs will be saved in the
output/directory.
- 📝 Define Activities: Specify the activities and their respective data sources in the configuration file (
config.yaml). - 📄 Generate Reports: Run the script to fetch data, process it, and generate the report.
- 🎨 Customize Templates: Use Canva to modify the templates for your organizational branding.
├── config/
│ └── config.yaml # Configuration file for data sources
├── templates/
│ └── report_template.json # Canva template files
├── output/
│ └── reports/ # Generated PDF reports
├── main.py # Main script
├── README.md # Project README
└── requirements.txt # Python dependencies
- Add support for real-time data updates.
- Include data visualizations like charts and graphs.
- Enhance customization options for Canva templates.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.