The Automated Report Generation project provides a flexible and efficient way to generate data reports. Users can choose to source data from a database or a CSV file, allowing for broad applicability across different use cases. This project includes capabilities to summarize data, visualize it with histograms, and generate comprehensive PDF reports.
- Python 3.6+
pip(Python package installer)
-
Clone the repository:
git clone https://github.com/mghotz/automated-report-generation cd report-ai -
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.envfile in the project root directory and configure it as needed:INTEGRATION_TYPE=csv # Options: 'database' or 'csv' DATABASE_URL=postgresql+psycopg2://user:password@localhost/dbname # Only if using database integration CSV_FILE_PATH=/path/to/your/csvfile.csv # Only if using CSV integration
To generate a report, run the main script with the desired integration type specified in the .env file:
python3 src/main.py- For CSV integration, specify the path to your CSV file in the
.envfile. - For database integration, provide the appropriate database URL in the
.envfile.
The script will prompt you to enter the table name and columns you wish to include in the report. If using a database, ensure the specified table exists.
- Ensure that all required fields in the
.envfile are correctly filled. - The script will handle invalid columns and other input errors, providing clear messages for corrective actions.
API integration is not ready yet. We welcome contributions to this feature and others. Feel free to fork the repository and submit pull requests.
This project is authored by Mahammad Salimov. Connect with me on LinkedIn.
This project is designed to be user-friendly and highly customizable. Your feedback and contributions are invaluable in making this tool more robust and versatile. Happy reporting!