OpenGeodeWeb-Back 5.9.0rc2__py3-none-any.whl → 5.9.1__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.
@@ -32,8 +32,9 @@ def additional_files(geode_object: str, file_absolute_path: str):
32
32
  return geode_object_value(geode_object)["additional_files"](file_absolute_path)
33
33
 
34
34
 
35
- def is_loadable(geode_object: str, file_absolute_path: str):
36
- return geode_object_value(geode_object)["is_loadable"](file_absolute_path)
35
+ def is_loadable(geode_object: str, file_absolute_path: str) -> float:
36
+ percentage = geode_object_value(geode_object)["is_loadable"](file_absolute_path)
37
+ return percentage.value()
37
38
 
38
39
 
39
40
  def load(geode_object: str, file_absolute_path: str):
@@ -183,8 +184,8 @@ def list_geode_objects(
183
184
 
184
185
  for geode_object in geode_objects_filtered_list:
185
186
  if has_creator(geode_object, file_extension):
186
- file_is_loadable = is_loadable(geode_object, file_absolute_path)
187
- return_dict[geode_object] = {"is_loadable": file_is_loadable}
187
+ loadability_score = is_loadable(geode_object, file_absolute_path)
188
+ return_dict[geode_object] = {"is_loadable": loadability_score}
188
189
  return return_dict
189
190
 
190
191
 
@@ -154,11 +154,8 @@ def create_unique_data_folder() -> tuple[str, str]:
154
154
 
155
155
 
156
156
  def save_all_viewables_and_return_info(
157
- geode_object,
158
- data, generated_id,
159
- data_path,
160
- additional_files=None
161
- ):
157
+ geode_object, data, generated_id, data_path, additional_files=None
158
+ ):
162
159
  saved_native_file_path = geode_functions.save(
163
160
  geode_object,
164
161
  data,
@@ -185,22 +182,21 @@ def save_all_viewables_and_return_info(
185
182
  "input_files": additional_files or [],
186
183
  }
187
184
 
188
- def generate_native_viewable_and_light_viewable_from_object(
189
- geode_object,
190
- data
191
- ):
185
+
186
+ def generate_native_viewable_and_light_viewable_from_object(geode_object, data):
192
187
  generated_id, data_path = create_unique_data_folder()
193
- return save_all_viewables_and_return_info(geode_object, data, generated_id, data_path)
188
+ return save_all_viewables_and_return_info(
189
+ geode_object, data, generated_id, data_path
190
+ )
194
191
 
195
192
 
196
- def generate_native_viewable_and_light_viewable_from_file(
197
- geode_object,
198
- input_filename
199
- ):
193
+ def generate_native_viewable_and_light_viewable_from_file(geode_object, input_filename):
200
194
  generated_id, data_path = create_unique_data_folder()
201
195
 
202
196
  full_input_filename = geode_functions.upload_file_path(input_filename)
203
- copied_full_path = os.path.join(data_path, werkzeug.utils.secure_filename(input_filename))
197
+ copied_full_path = os.path.join(
198
+ data_path, werkzeug.utils.secure_filename(input_filename)
199
+ )
204
200
  shutil.copy2(full_input_filename, copied_full_path)
205
201
 
206
202
  additional_files_copied = []
@@ -208,7 +204,9 @@ def generate_native_viewable_and_light_viewable_from_file(
208
204
  for additional_file in additional.mandatory_files + additional.optional_files:
209
205
  if additional_file.is_missing:
210
206
  continue
211
- source_path = os.path.join(os.path.dirname(full_input_filename), additional_file.filename)
207
+ source_path = os.path.join(
208
+ os.path.dirname(full_input_filename), additional_file.filename
209
+ )
212
210
  if not os.path.exists(source_path):
213
211
  continue
214
212
  dest_path = os.path.join(data_path, additional_file.filename)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 5.9.0rc2
3
+ Version: 5.9.1
4
4
  Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
@@ -14,26 +14,20 @@ License-File: LICENSE
14
14
  Requires-Dist: asgiref==3.9.1
15
15
  Requires-Dist: blinker==1.9.0
16
16
  Requires-Dist: click==8.2.1
17
- Requires-Dist: fastjsonschema==2.21.1
18
- Requires-Dist: flask[async]==3.1.1
17
+ Requires-Dist: fastjsonschema==2.16.2
18
+ Requires-Dist: flask[async]==3.0.3
19
19
  Requires-Dist: flask-cors==6.0.1
20
- Requires-Dist: geode-background==9.4.0
21
20
  Requires-Dist: geode-common==33.9.0
22
- Requires-Dist: geode-conversion==6.4.0
23
- Requires-Dist: geode-explicit==6.3.0
24
- Requires-Dist: geode-implicit==4.1.1
25
- Requires-Dist: geode-numerics==6.3.0
26
- Requires-Dist: geode-simplex==9.6.0
27
21
  Requires-Dist: geode-viewables==3.2.0
28
22
  Requires-Dist: itsdangerous==2.2.0
29
23
  Requires-Dist: jinja2==3.1.6
30
24
  Requires-Dist: markupsafe==3.0.2
31
- Requires-Dist: opengeode-core==15.24.1
32
- Requires-Dist: opengeode-geosciences==9.2.1
33
- Requires-Dist: opengeode-geosciencesio==5.7.1
25
+ Requires-Dist: opengeode-core==15.24.2
26
+ Requires-Dist: opengeode-geosciences==9.2.2
27
+ Requires-Dist: opengeode-geosciencesio==5.7.2
34
28
  Requires-Dist: opengeode-inspector==6.7.0
35
- Requires-Dist: opengeode-io==7.3.1
36
- Requires-Dist: werkzeug==3.1.3
29
+ Requires-Dist: opengeode-io==7.3.2
30
+ Requires-Dist: werkzeug==3.0.3
37
31
  Dynamic: license-file
38
32
 
39
33
  <h1 align="center">OpenGeodeWeb-Back<sup><i>by Geode-solutions</i></sup></h1>
@@ -1,9 +1,9 @@
1
1
  opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  opengeodeweb_back/app_config.py,sha256=gJfYxDJOa_PYLqjqgdXacp3W3F109uujE9LGPvzHOkc,728
3
- opengeodeweb_back/geode_functions.py,sha256=2lgL0FL8G5ZdJa-S_iUNWGlegHBJEDtU67Tuj5gtJ1c,9812
3
+ opengeodeweb_back/geode_functions.py,sha256=4zxr8FJK9gNCzAvRqWSuGc8TwIZr0BU4dM5ITgiw_OQ,9859
4
4
  opengeodeweb_back/geode_objects.py,sha256=GrC1NltKKSCr0QSgcMy2ES8SLW_RkndCdrokeBOymrA,25995
5
5
  opengeodeweb_back/test_utils.py,sha256=18AbRW9-tfKkPcmRGilTTHXI7S3armYyV7Vdy5UvUKM,794
6
- opengeodeweb_back/utils_functions.py,sha256=Q3NspzZJ50AvSQALgwFen8RJwHllQOGmNrhsSk_yVJU,7129
6
+ opengeodeweb_back/utils_functions.py,sha256=j9swpKiA7Wo4rSX4_Vy_Vi6OmiqUTkQqZShawgs14DA,7099
7
7
  opengeodeweb_back/routes/blueprint_routes.py,sha256=3fxMR9fs0BqnOiYhKFacGdxWm7JFLz5i5PvUqYgB5z4,11308
8
8
  opengeodeweb_back/routes/models/blueprint_models.py,sha256=PAyHSKjsvVm5gGfjUyWAnODmE0BJMsIWc1AWl0F3bO0,1955
9
9
  opengeodeweb_back/routes/models/schemas/mesh_components.json,sha256=3OQvI4pUCe77WGC46tEr37rEWigQ6n2nsfGUTZRY074,419
@@ -22,8 +22,8 @@ opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=pvvEdaC7bNASPMrl
22
22
  opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=oW84Vh34KfleK935fmMXnqJXy-vaLDd7g87O_PtSzfY,429
23
23
  opengeodeweb_back/routes/schemas/upload_file.json,sha256=LJ3U3L5ApKuQDVFIpVT_y2alq4HW_suTvZ3HUucNbhg,219
24
24
  opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=bmXG0pzVHMUTZY_0iu6ruX7eMUVk8wr2H1o4eEtBlg0,432
25
- opengeodeweb_back-5.9.0rc2.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
26
- opengeodeweb_back-5.9.0rc2.dist-info/METADATA,sha256=G0-jcTd93p-b_uODLt2l8jLLsZBoBr2YLUBynqhjwIg,2900
27
- opengeodeweb_back-5.9.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- opengeodeweb_back-5.9.0rc2.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
29
- opengeodeweb_back-5.9.0rc2.dist-info/RECORD,,
25
+ opengeodeweb_back-5.9.1.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
26
+ opengeodeweb_back-5.9.1.dist-info/METADATA,sha256=iSaDnlq8pdPVE0PKx1f-CdRPmUZ4uCiJXfjwDnul2F8,2672
27
+ opengeodeweb_back-5.9.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ opengeodeweb_back-5.9.1.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
29
+ opengeodeweb_back-5.9.1.dist-info/RECORD,,