Image report generation using Pillow library
in Python on image Template. Data to be printed on the template is taken from MongoDB
daily and automatically report generated every day.
open Anaconda prompt, change file directory path i.e., cd path_to_folder
conda create -n reportGeneration python=3.7
conda activate reportGeneration
conda install spyder
pip install -r path_of_requirments.txt
numpy==1.19.2
requests==2.25.1
gspread==3.7.0
pandas==1.2.0
opencv_python==4.5.2.54
pymongo==3.11.4
Pillow==8.3.1
- After above installation type
spyder
in Anaconda prompt. Now Spyder IDE will open in sometime. - open
create_price_report_mongo_final_new.py, create_price_report_mongo_final.py
(two scripts for two type of report generation) inspyder
- Edit in Lines 23 to 41, 123, 135 to 138, 434, 729 in script. (change path of files used according to your local machine)
Font (.ttf)
used in script is uploaded to drive.