pierreguillou commited on
Commit
902ea78
·
verified ·
1 Parent(s): 3934f0c

Update helpers/rapportgenerator.py

Browse files
Files changed (1) hide show
  1. helpers/rapportgenerator.py +10 -0
helpers/rapportgenerator.py CHANGED
@@ -1,4 +1,14 @@
1
  ## class to generate the DOCX report
 
 
 
 
 
 
 
 
 
 
2
 
3
  class RapportGenerator:
4
  def __init__(self, json_file: str):
 
1
  ## class to generate the DOCX report
2
+ import json
3
+
4
+ from docx import Document
5
+ from docx.shared import Pt, RGBColor, Inches
6
+ from docx.enum.text import WD_ALIGN_PARAGRAPH
7
+ from docx.enum.section import WD_SECTION
8
+ from docx.oxml import OxmlElement
9
+ from docx.oxml.ns import qn
10
+ from typing import Dict, Any, List, Union # Ajout des imports typing nécessaires
11
+ import logging
12
 
13
  class RapportGenerator:
14
  def __init__(self, json_file: str):