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.
Files changed (61) hide show
  1. {querycraft-1.7.0/querycraft.egg-info → querycraft-1.7.2}/PKG-INFO +1 -1
  2. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/PlantUML.py +5 -1
  3. querycraft-1.7.2/querycraft/__init__.py +2 -0
  4. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/codemata.json +1 -1
  5. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/index.html +2 -2
  6. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/web_sbs.py +1 -1
  7. {querycraft-1.7.0 → querycraft-1.7.2/querycraft.egg-info}/PKG-INFO +1 -1
  8. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/entry_points.txt +1 -0
  9. {querycraft-1.7.0 → querycraft-1.7.2}/setup.py +1 -1
  10. querycraft-1.7.0/querycraft/__init__.py +0 -2
  11. {querycraft-1.7.0 → querycraft-1.7.2}/AUTHORS +0 -0
  12. {querycraft-1.7.0 → querycraft-1.7.2}/LICENSE +0 -0
  13. {querycraft-1.7.0 → querycraft-1.7.2}/MANIFEST.in +0 -0
  14. {querycraft-1.7.0 → querycraft-1.7.2}/README.md +0 -0
  15. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/Database.py +0 -0
  16. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/LLM.py +0 -0
  17. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/LRS.py +0 -0
  18. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/SQL.py +0 -0
  19. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/SQLException.py +0 -0
  20. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/cache/readme.txt +0 -0
  21. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/config-sbs-std.cfg +0 -0
  22. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/config/config-sbs.cfg +0 -0
  23. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/cookies/readme.txt +0 -0
  24. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/cinema.db +0 -0
  25. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/cours.db +0 -0
  26. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/em.db +0 -0
  27. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/entreprise.db +0 -0
  28. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/librairie.db +0 -0
  29. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/lutins.db +0 -0
  30. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/robots.db +0 -0
  31. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/data/vols.db +0 -0
  32. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/Didapro11.json +0 -0
  33. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/OENU2026.json +0 -0
  34. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/ex1.json +0 -0
  35. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/exos1.json +0 -0
  36. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/exos/readme.txt +0 -0
  37. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/logger.py +0 -0
  38. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/logs/readme.txt +0 -0
  39. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/models/readme.txt +0 -0
  40. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/security.py +0 -0
  41. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/sqlsbs.py +0 -0
  42. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/config.html +0 -0
  43. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/correction_prompt-old.md +0 -0
  44. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/correction_prompt.md +0 -0
  45. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/credits.html +0 -0
  46. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/database_prompt.md +0 -0
  47. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/didapro11.html +0 -0
  48. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/erreur_prompt.md +0 -0
  49. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/exercices.html +0 -0
  50. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/requete_prompt.md +0 -0
  51. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/templates/systeme_prompt.md +0 -0
  52. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft/tools.py +0 -0
  53. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/SOURCES.txt +0 -0
  54. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/dependency_links.txt +0 -0
  55. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/requires.txt +0 -0
  56. {querycraft-1.7.0 → querycraft-1.7.2}/querycraft.egg-info/top_level.txt +0 -0
  57. {querycraft-1.7.0 → querycraft-1.7.2}/setup.cfg +0 -0
  58. {querycraft-1.7.0 → querycraft-1.7.2}/test/testLRS.py +0 -0
  59. {querycraft-1.7.0 → querycraft-1.7.2}/test/testOllama.py +0 -0
  60. {querycraft-1.7.0 → querycraft-1.7.2}/test/testParse.py +0 -0
  61. {querycraft-1.7.0 → querycraft-1.7.2}/test/test_SQL.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: querycraft
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary: Provide usefully SQL classes and functions to execute SQL queries step by step
5
5
  Home-page: https://gitlab.univ-nantes.fr/ls2n-didactique/querycraft
6
6
  Author: Emmanuel Desmontils
@@ -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
- name = doCacheKey(f"{self.db.dbtype}-{self.db.db}")
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
@@ -0,0 +1,2 @@
1
+
2
+ __version__ = "1.7.2"
@@ -37,5 +37,5 @@
37
37
  "license": "https://spdx.org/licenses/GPL-3.0",
38
38
  "name": "QueryCraft",
39
39
  "programmingLanguage": "Python 3",
40
- "version": "1.7.0"
40
+ "version": "1.7.2"
41
41
  }
@@ -424,8 +424,8 @@
424
424
  </div>
425
425
 
426
426
  <div class="footer">
427
- <a href="/didapro11" style="color:#667eea;text-decoration:none;font-weight:600;margin-top:10px;display:inline-block;">📓️</a>
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
  &nbsp;&nbsp; —— &nbsp;&nbsp;
@@ -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>Lègende : <ul>
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>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: querycraft
3
- Version: 1.7.0
3
+ Version: 1.7.2
4
4
  Summary: Provide usefully SQL classes and functions to execute SQL queries step by step
5
5
  Home-page: https://gitlab.univ-nantes.fr/ls2n-didactique/querycraft
6
6
  Author: Emmanuel Desmontils
@@ -4,5 +4,6 @@ exos-sbs = querycraft.sqlsbs:exos
4
4
  mysql-sbs = querycraft.sqlsbs:mysql
5
5
  pgsql-sbs = querycraft.sqlsbs:pgsql
6
6
  sbs = querycraft.sqlsbs:main
7
+ six> = 1.17.0
7
8
  sqlite-sbs = querycraft.sqlsbs:sqlite
8
9
  web-sbs = querycraft.web_sbs:main
@@ -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',
@@ -1,2 +0,0 @@
1
-
2
- __version__ = "1.7.0"
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