querycraft 1.7.0__tar.gz → 1.7.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {querycraft-1.7.0/querycraft.egg-info → querycraft-1.7.2}/PKG-INFO +1 -1
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/PlantUML.py +5 -1
- querycraft-1.7.2/querycraft/__init__.py +2 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/codemata.json +1 -1
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/index.html +2 -2
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/web_sbs.py +1 -1
- {querycraft-1.7.0 → querycraft-1.7.2/querycraft.egg-info}/PKG-INFO +1 -1
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/entry_points.txt +1 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/setup.py +1 -1
- querycraft-1.7.0/querycraft/__init__.py +0 -2
- {querycraft-1.7.0 → querycraft-1.7.2}/AUTHORS +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/LICENSE +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/MANIFEST.in +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/README.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/Database.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/LLM.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/LRS.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/SQL.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/SQLException.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/cache/readme.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/config-sbs-std.cfg +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/config-sbs.cfg +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/cookies/readme.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/cinema.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/cours.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/em.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/entreprise.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/librairie.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/lutins.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/robots.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/vols.db +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/Didapro11.json +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/OENU2026.json +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/ex1.json +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/exos1.json +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/readme.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/logger.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/logs/readme.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/models/readme.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/security.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/sqlsbs.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/config.html +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/correction_prompt-old.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/correction_prompt.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/credits.html +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/database_prompt.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/didapro11.html +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/erreur_prompt.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/exercices.html +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/requete_prompt.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/systeme_prompt.md +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/tools.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/SOURCES.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/dependency_links.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/requires.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/top_level.txt +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/setup.cfg +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/test/testLRS.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/test/testOllama.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/test/testParse.py +0 -0
- {querycraft-1.7.0 → querycraft-1.7.2}/test/test_SQL.py +0 -0
|
@@ -15,7 +15,10 @@ class PlantUML:
|
|
|
15
15
|
|
|
16
16
|
def createModel(self):
|
|
17
17
|
print(f"Création du modèle PlantUML pour {self.db.dbtype} avec {self.db.db}")
|
|
18
|
-
|
|
18
|
+
if 'querycraft/querycraft/data' in self.db.db :
|
|
19
|
+
name = doCacheKey(f"{self.db.dbtype}-{os.path.basename(self.db.db)}")
|
|
20
|
+
else :
|
|
21
|
+
name = doCacheKey(f"{self.db.dbtype}-{self.db.db}")
|
|
19
22
|
output_file_name = f'{name}.png'
|
|
20
23
|
tmp_file_name = f'{name}.puml'
|
|
21
24
|
try:
|
|
@@ -38,6 +41,7 @@ class PlantUML:
|
|
|
38
41
|
ok = plantuml.processes_file(tmp_file, output_file)
|
|
39
42
|
except Exception as e:
|
|
40
43
|
print(f"erreur de génération image : {e}")
|
|
44
|
+
|
|
41
45
|
return None
|
|
42
46
|
if ok:
|
|
43
47
|
return output_file_name
|
|
@@ -424,8 +424,8 @@
|
|
|
424
424
|
</div>
|
|
425
425
|
|
|
426
426
|
<div class="footer">
|
|
427
|
-
|
|
428
|
-
——
|
|
427
|
+
<!--a href="/didapro11" style="color:#667eea;text-decoration:none;font-weight:600;margin-top:10px;display:inline-block;">📓️</a>
|
|
428
|
+
—— -->
|
|
429
429
|
© E. Desmontils, Nantes Université, 2024-2026 | QueryCraft v{{ version }}
|
|
430
430
|
<!-- img src="{{ url_for('static', filename='images/Label_assisté_fondclair.png') }}" alt="aia" style="width: 50px; height: 25px; object-fit: contain;"-->
|
|
431
431
|
——
|
|
@@ -813,7 +813,7 @@ f"""
|
|
|
813
813
|
<div>
|
|
814
814
|
<h4>Modèle relationnel de la base</h4>
|
|
815
815
|
<img src="{img_url}" alt="{db.name}" style="max-width:85%;">
|
|
816
|
-
<p>
|
|
816
|
+
<p>Légende : <ul>
|
|
817
817
|
<li><span class="pk">PK</span> = Clé Primaire, </li>
|
|
818
818
|
<li><span class="fk">#</span> = Clé Étrangère, </li>
|
|
819
819
|
</p>
|
|
@@ -47,7 +47,7 @@ setup(name='querycraft',
|
|
|
47
47
|
'mysql-connector-python>=9.0.0', 'lmstudio>=1.5.0','psycopg2-binary==2.9.10',"plantuml>=0.3.0",
|
|
48
48
|
'ollama>=0.4.7', 'keyboard>=0.13.5', 'google-genai>=1.61.0','markdown>=3.5.0',
|
|
49
49
|
'sqlglot==25.33.0', 'colorama>=0.4.6', 'flask>=3.0.0', 'gunicorn>=21.2.0'],
|
|
50
|
-
entry_points={'console_scripts': ['pgsql-sbs = querycraft.sqlsbs:pgsql',
|
|
50
|
+
entry_points={'console_scripts': ['pgsql-sbs = querycraft.sqlsbs:pgsql', 'six>=1.17.0',
|
|
51
51
|
'sqlite-sbs = querycraft.sqlsbs:sqlite',
|
|
52
52
|
'mysql-sbs = querycraft.sqlsbs:mysql',
|
|
53
53
|
'sbs = querycraft.sqlsbs:main',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|