genelastic 0.8.0__py3-none-any.whl → 0.10.0__py3-none-any.whl

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 (85) hide show
  1. genelastic/api/.env +4 -0
  2. genelastic/api/cli_start_api.py +2 -2
  3. genelastic/api/errors.py +52 -0
  4. genelastic/api/extends/example.py +0 -6
  5. genelastic/api/extends/example.yml +0 -20
  6. genelastic/api/routes.py +313 -181
  7. genelastic/api/server.py +8 -3
  8. genelastic/api/specification.yml +343 -181
  9. genelastic/common/__init__.py +0 -44
  10. genelastic/common/cli.py +52 -11
  11. genelastic/common/elastic.py +374 -46
  12. genelastic/common/exceptions.py +34 -2
  13. genelastic/common/server.py +9 -1
  14. genelastic/common/types.py +1 -14
  15. genelastic/import_data/__init__.py +0 -27
  16. genelastic/import_data/checker.py +99 -0
  17. genelastic/import_data/checker_observer.py +13 -0
  18. genelastic/import_data/cli/__init__.py +0 -0
  19. genelastic/import_data/cli/cli_check.py +135 -0
  20. genelastic/import_data/{cli_gen_data.py → cli/gen_data.py} +4 -4
  21. genelastic/import_data/cli/import_data.py +345 -0
  22. genelastic/import_data/cli/info.py +246 -0
  23. genelastic/import_data/{cli_integrity.py → cli/integrity.py} +29 -8
  24. genelastic/import_data/cli/validate.py +146 -0
  25. genelastic/import_data/collect.py +185 -0
  26. genelastic/import_data/constants.py +136 -11
  27. genelastic/import_data/import_bundle.py +102 -59
  28. genelastic/import_data/import_bundle_factory.py +70 -149
  29. genelastic/import_data/importers/__init__.py +0 -0
  30. genelastic/import_data/importers/importer_base.py +136 -0
  31. genelastic/import_data/importers/importer_factory.py +85 -0
  32. genelastic/import_data/importers/importer_types.py +234 -0
  33. genelastic/import_data/logger.py +2 -1
  34. genelastic/import_data/models/__init__.py +0 -0
  35. genelastic/import_data/models/analyses.py +178 -0
  36. genelastic/import_data/models/analysis.py +144 -0
  37. genelastic/import_data/models/data_file.py +110 -0
  38. genelastic/import_data/models/process.py +45 -0
  39. genelastic/import_data/models/processes.py +84 -0
  40. genelastic/import_data/models/tags.py +170 -0
  41. genelastic/import_data/models/unique_list.py +109 -0
  42. genelastic/import_data/models/validate.py +26 -0
  43. genelastic/import_data/patterns.py +90 -0
  44. genelastic/import_data/random_bundle.py +10 -8
  45. genelastic/import_data/resolve.py +157 -0
  46. genelastic/ui/.env +1 -0
  47. genelastic/ui/cli_start_ui.py +4 -2
  48. genelastic/ui/routes.py +289 -42
  49. genelastic/ui/static/cea-cnrgh.ico +0 -0
  50. genelastic/ui/static/cea.ico +0 -0
  51. genelastic/ui/static/layout.ico +0 -0
  52. genelastic/ui/static/novaseq6000.png +0 -0
  53. genelastic/ui/static/style.css +430 -0
  54. genelastic/ui/static/ui.js +458 -0
  55. genelastic/ui/templates/analyses.html +96 -9
  56. genelastic/ui/templates/analysis_detail.html +44 -0
  57. genelastic/ui/templates/bi_process_detail.html +129 -0
  58. genelastic/ui/templates/bi_processes.html +114 -9
  59. genelastic/ui/templates/explorer.html +356 -0
  60. genelastic/ui/templates/home.html +205 -2
  61. genelastic/ui/templates/layout.html +148 -29
  62. genelastic/ui/templates/version.html +19 -7
  63. genelastic/ui/templates/wet_process_detail.html +131 -0
  64. genelastic/ui/templates/wet_processes.html +114 -9
  65. genelastic-0.10.0.dist-info/METADATA +686 -0
  66. genelastic-0.10.0.dist-info/RECORD +76 -0
  67. {genelastic-0.8.0.dist-info → genelastic-0.10.0.dist-info}/WHEEL +1 -2
  68. genelastic-0.10.0.dist-info/entry_points.txt +10 -0
  69. genelastic-0.10.0.dist-info/licenses/LICENSE +519 -0
  70. genelastic/import_data/analyses.py +0 -69
  71. genelastic/import_data/analysis.py +0 -205
  72. genelastic/import_data/bi_process.py +0 -27
  73. genelastic/import_data/bi_processes.py +0 -49
  74. genelastic/import_data/cli_import.py +0 -379
  75. genelastic/import_data/cli_info.py +0 -256
  76. genelastic/import_data/cli_validate.py +0 -54
  77. genelastic/import_data/data_file.py +0 -87
  78. genelastic/import_data/filename_pattern.py +0 -57
  79. genelastic/import_data/tags.py +0 -123
  80. genelastic/import_data/wet_process.py +0 -28
  81. genelastic/import_data/wet_processes.py +0 -53
  82. genelastic-0.8.0.dist-info/METADATA +0 -109
  83. genelastic-0.8.0.dist-info/RECORD +0 -52
  84. genelastic-0.8.0.dist-info/entry_points.txt +0 -8
  85. genelastic-0.8.0.dist-info/top_level.txt +0 -1
@@ -1,11 +1,116 @@
1
1
  {% extends "layout.html" %}
2
- {% block title %}Wet Processes{% endblock %}
2
+ {% block title %}
3
+ Wet Processes - BEx
4
+ {% endblock title %}
3
5
  {% block content %}
4
- <h2>List of Wet Processes</h2>
5
- <ul>
6
- {% for wet_process in wet_processes %}
7
- <li>{{ wet_process }}</li>
8
- {% endfor %}
9
- </ul>
10
- <a href="/">Back to Home</a>
11
- {% endblock %}
6
+ <div class="container mt-5">
7
+ <div class="text-center mb-4">
8
+ <h1 class="display-5 title">Liste des conditions expérimentales</h1>
9
+ <p class="lead">Sélectionner les conditions pour afficher les analyses associées.</p>
10
+ </div>
11
+ <div class="card shadow-sm">
12
+ <div class="card-body">
13
+ <h3 class="mb-4">Conditions disponibles</h3>
14
+ <form id="wetForm" method="get" action="{{ request.path }}">
15
+ <input type="text"
16
+ id="wetSearch"
17
+ class="form-control mb-3"
18
+ placeholder="Rechercher un wet process..." />
19
+ <div class="row">
20
+ <div class="col-md-6">
21
+ <div class="list-group" id="wetProcessList">
22
+ {% for wet_process in wet_processes %}
23
+ <div class="list-group-item wet-process-item">
24
+ <div class="form-check">
25
+ <input class="form-check-input"
26
+ type="checkbox"
27
+ id="wet_{{ loop.index }}"
28
+ name="wet_processes"
29
+ value="{{ wet_process }}"
30
+ {% if wet_process in selected_wet_processes %}checked{% endif %} />
31
+ <label class="form-check-label" for="wet_{{ loop.index }}">{{ wet_process }}</label>
32
+ </div>
33
+ </div>
34
+ {% endfor %}
35
+ </div>
36
+ <div class="d-flex gap-2 mt-3">
37
+ <button type="button" class="reset-error-btn btn" id="resetWetSelection">Réinitialiser la sélection</button>
38
+ <button type="button" class="btn btn-success" id="selectAllWet">Tout sélectionner</button>
39
+ </div>
40
+ </div>
41
+ {% if selected_wet_processes %}
42
+ <div class="col-md-6">
43
+ {% if analyses %}
44
+ <h4 class="mt-4">Analyses associées :</h4>
45
+ <ul class="list-group mt-3">
46
+ {% for analysis in analyses %}
47
+ <li class="list-group-item">
48
+ <a href="{{ url_for('routes.show_analysis_detail', analysis_id=analysis, source='wet') }}"
49
+ class="text-decoration-none">
50
+ <div class="d-flex justify-content-between align-items-center">
51
+ <span>{{ analysis }}</span>
52
+ <i class="bi bi-chevron-right"></i>
53
+ </div>
54
+ </a>
55
+ </li>
56
+ {% endfor %}
57
+ </ul>
58
+ {% else %}
59
+ <div class="alert alert-danger mt-4" role="alert">
60
+ <strong>Aucune analyse correspondante !</strong>
61
+ Aucun processus associé à ce Wet Process.
62
+ </div>
63
+ {% endif %}
64
+ </div>
65
+ {% endif %}
66
+ </div>
67
+ </form>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ <script>
72
+ document.getElementById('wetSearch').addEventListener('input', function() {
73
+ const filter = this.value.toLowerCase();
74
+ const items = document.querySelectorAll('.wet-process-item');
75
+ items.forEach((item) => {
76
+ const label = item.querySelector('label').innerText.toLowerCase();
77
+ if (label.startsWith(filter)) {
78
+ item.style.display = '';
79
+ } else {
80
+ item.style.display = 'none';
81
+ }
82
+ });
83
+ });
84
+
85
+ document
86
+ .getElementById('resetWetSelection')
87
+ .addEventListener('click', function() {
88
+ const checkboxes = document.querySelectorAll(
89
+ '#wetForm input[type="checkbox"]',
90
+ );
91
+ checkboxes.forEach((cb) => (cb.checked = false));
92
+ document.getElementById('wetSearch').value = '';
93
+ document.getElementById('wetForm').submit();
94
+ });
95
+
96
+ document
97
+ .getElementById('selectAllWet')
98
+ .addEventListener('click', function() {
99
+ document
100
+ .querySelectorAll('#wetProcessList .form-check-input')
101
+ .forEach((cb) => (cb.checked = true));
102
+ document.getElementById('wetForm').submit();
103
+ });
104
+
105
+ const wetCheckboxes = document.querySelectorAll('#wetForm input[type="checkbox"]');
106
+ const resetWetBtn = document.getElementById('resetWetSelection');
107
+
108
+ function updateWetResetButton() {
109
+ const anyChecked = Array.from(wetCheckboxes).some(cb => cb.checked);
110
+ resetWetBtn.disabled = !anyChecked;
111
+ }
112
+
113
+ wetCheckboxes.forEach(cb => cb.addEventListener('change', updateWetResetButton));
114
+ updateWetResetButton();
115
+ </script>
116
+ {% endblock content %}