OpenGeodeWeb-Back 3.0.0rc10__py3-none-any.whl → 3.0.0rc11__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.
- {OpenGeodeWeb_Back-3.0.0rc10.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/METADATA +1 -1
- OpenGeodeWeb_Back-3.0.0rc11.dist-info/RECORD +9 -0
- opengeodeweb_back/geode_functions.py +32 -24
- opengeodeweb_back/geode_objects.py +21 -0
- OpenGeodeWeb_Back-3.0.0rc10.dist-info/RECORD +0 -9
- {OpenGeodeWeb_Back-3.0.0rc10.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/LICENSE +0 -0
- {OpenGeodeWeb_Back-3.0.0rc10.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/WHEEL +0 -0
- {OpenGeodeWeb_Back-3.0.0rc10.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.0rc11
|
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
|
@@ -0,0 +1,9 @@
|
|
1
|
+
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
opengeodeweb_back/geode_functions.py,sha256=2BenLnXZxylZno4ptzDq-0i1JqZToxc-yQTLl27tAXI,10428
|
3
|
+
opengeodeweb_back/geode_objects.py,sha256=v8f98lfco4X4iDmcyF3uH_nWT7BDtp8pu-R3uRwdnxU,19048
|
4
|
+
opengeodeweb_back/inspector_functions.py,sha256=rx3LsY6ETKl1J9kKilcFRZMZrIoBZEIOebqWrcuMJsk,15903
|
5
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/METADATA,sha256=ht6QCh-MFUpSNiPDQ6bTb6pshQCF0XzLb1SP4T9N5Fw,3155
|
7
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
+
OpenGeodeWeb_Back-3.0.0rc11.dist-info/RECORD,,
|
@@ -34,6 +34,10 @@ def missing_files(geode_object: str, file_absolute_path: str):
|
|
34
34
|
return geode_object_value(geode_object)["missing_files"](file_absolute_path)
|
35
35
|
|
36
36
|
|
37
|
+
def is_loadable(geode_object: str, file_absolute_path: str):
|
38
|
+
return geode_object_value(geode_object)["is_loadable"](file_absolute_path)
|
39
|
+
|
40
|
+
|
37
41
|
def load(geode_object: str, file_absolute_path: str):
|
38
42
|
return geode_object_value(geode_object)["load"](file_absolute_path)
|
39
43
|
|
@@ -109,18 +113,26 @@ def geode_object_output_extensions(geode_object: str):
|
|
109
113
|
return geode_object_output_list_creators
|
110
114
|
|
111
115
|
|
112
|
-
def
|
113
|
-
|
116
|
+
def filter_geode_objects(key: str = None):
|
117
|
+
geode_objects_filtered_list = []
|
114
118
|
for geode_object, value in geode_objects_dict().items():
|
115
|
-
if key != None:
|
119
|
+
if key != None and key != "":
|
116
120
|
if key in value:
|
117
121
|
if type(value[key]) == bool:
|
118
|
-
|
119
|
-
extensions_list += geode_object_input_extensions(geode_object)
|
122
|
+
geode_objects_filtered_list.append(geode_object)
|
120
123
|
else:
|
121
|
-
|
124
|
+
geode_objects_filtered_list.append(geode_object)
|
122
125
|
else:
|
123
|
-
|
126
|
+
geode_objects_filtered_list.append(geode_object)
|
127
|
+
geode_objects_filtered_list.sort()
|
128
|
+
return geode_objects_filtered_list
|
129
|
+
|
130
|
+
|
131
|
+
def list_input_extensions(key: str = None):
|
132
|
+
extensions_list = []
|
133
|
+
geode_objects_filtered_list = filter_geode_objects(key)
|
134
|
+
for geode_object in geode_objects_filtered_list:
|
135
|
+
extensions_list += geode_object_input_extensions(geode_object)
|
124
136
|
|
125
137
|
extensions_list = list(set(extensions_list))
|
126
138
|
extensions_list.sort()
|
@@ -131,23 +143,19 @@ def has_creator(geode_object: str, extension: str):
|
|
131
143
|
return input_factory(geode_object).has_creator(extension)
|
132
144
|
|
133
145
|
|
134
|
-
def list_geode_objects(
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
geode_objects_list.append(geode_object)
|
148
|
-
|
149
|
-
geode_objects_list.sort()
|
150
|
-
return geode_objects_list
|
146
|
+
def list_geode_objects(
|
147
|
+
file_absolute_path: str,
|
148
|
+
key: str = None,
|
149
|
+
):
|
150
|
+
return_dict = {}
|
151
|
+
file_extension = extension_from_filename(os.path.basename(file_absolute_path))
|
152
|
+
geode_objects_filtered_list = filter_geode_objects(key)
|
153
|
+
|
154
|
+
for geode_object in geode_objects_filtered_list:
|
155
|
+
if has_creator(geode_object, file_extension):
|
156
|
+
file_is_loadable = is_loadable(geode_object, file_absolute_path)
|
157
|
+
return_dict[geode_object] = {"is_loadable": file_is_loadable}
|
158
|
+
return return_dict
|
151
159
|
|
152
160
|
|
153
161
|
def geode_objects_output_extensions(geode_object: str, data):
|
@@ -12,6 +12,7 @@ def geode_objects_dict():
|
|
12
12
|
"input_factory": og.BRepInputFactory,
|
13
13
|
"output_factory": og.BRepOutputFactory,
|
14
14
|
"missing_files": og.check_brep_missing_files,
|
15
|
+
"is_loadable": og.is_brep_loadable,
|
15
16
|
"load": og.load_brep,
|
16
17
|
"is_saveable": og.is_brep_saveable,
|
17
18
|
"save": og.save_brep,
|
@@ -32,6 +33,7 @@ def geode_objects_dict():
|
|
32
33
|
"input_factory": og_gs.CrossSectionInputFactory,
|
33
34
|
"output_factory": og_gs.CrossSectionOutputFactory,
|
34
35
|
"missing_files": og_gs.check_cross_section_missing_files,
|
36
|
+
"is_loadable": og_gs.is_cross_section_loadable,
|
35
37
|
"load": og_gs.load_cross_section,
|
36
38
|
"is_saveable": og_gs.is_cross_section_saveable,
|
37
39
|
"save": og_gs.save_cross_section,
|
@@ -51,6 +53,7 @@ def geode_objects_dict():
|
|
51
53
|
"input_factory": og.EdgedCurveInputFactory2D,
|
52
54
|
"output_factory": og.EdgedCurveOutputFactory2D,
|
53
55
|
"missing_files": og.check_edged_curve_missing_files2D,
|
56
|
+
"is_loadable": og.is_edged_curve_loadable2D,
|
54
57
|
"load": og.load_edged_curve2D,
|
55
58
|
"is_saveable": og.is_edged_curve_saveable2D,
|
56
59
|
"save": og.save_edged_curve2D,
|
@@ -70,6 +73,7 @@ def geode_objects_dict():
|
|
70
73
|
"input_factory": og.EdgedCurveInputFactory3D,
|
71
74
|
"output_factory": og.EdgedCurveOutputFactory3D,
|
72
75
|
"missing_files": og.check_edged_curve_missing_files3D,
|
76
|
+
"is_loadable": og.is_edged_curve_loadable3D,
|
73
77
|
"load": og.load_edged_curve3D,
|
74
78
|
"is_saveable": og.is_edged_curve_saveable3D,
|
75
79
|
"save": og.save_edged_curve3D,
|
@@ -89,6 +93,7 @@ def geode_objects_dict():
|
|
89
93
|
"input_factory": og.GraphInputFactory,
|
90
94
|
"output_factory": og.GraphOutputFactory,
|
91
95
|
"missing_files": og.check_graph_missing_files,
|
96
|
+
"is_loadable": og.is_graph_loadable,
|
92
97
|
"load": og.load_graph,
|
93
98
|
"is_saveable": og.is_graph_saveable,
|
94
99
|
"save": og.save_graph,
|
@@ -101,6 +106,7 @@ def geode_objects_dict():
|
|
101
106
|
"input_factory": og.HybridSolidInputFactory3D,
|
102
107
|
"output_factory": og.HybridSolidOutputFactory3D,
|
103
108
|
"missing_files": og.check_hybrid_solid_missing_files3D,
|
109
|
+
"is_loadable": og.is_hybrid_solid_loadable3D,
|
104
110
|
"load": og.load_hybrid_solid3D,
|
105
111
|
"is_saveable": og.is_hybrid_solid_saveable3D,
|
106
112
|
"save": og.save_hybrid_solid3D,
|
@@ -120,6 +126,7 @@ def geode_objects_dict():
|
|
120
126
|
"input_factory": og.PointSetInputFactory2D,
|
121
127
|
"output_factory": og.PointSetOutputFactory2D,
|
122
128
|
"missing_files": og.check_point_set_missing_files2D,
|
129
|
+
"is_loadable": og.is_point_set_loadable2D,
|
123
130
|
"load": og.load_point_set2D,
|
124
131
|
"is_saveable": og.is_point_set_saveable2D,
|
125
132
|
"save": og.save_point_set2D,
|
@@ -139,6 +146,7 @@ def geode_objects_dict():
|
|
139
146
|
"input_factory": og.PointSetInputFactory3D,
|
140
147
|
"output_factory": og.PointSetOutputFactory3D,
|
141
148
|
"missing_files": og.check_point_set_missing_files3D,
|
149
|
+
"is_loadable": og.is_point_set_loadable3D,
|
142
150
|
"load": og.load_point_set3D,
|
143
151
|
"is_saveable": og.is_point_set_saveable3D,
|
144
152
|
"save": og.save_point_set3D,
|
@@ -158,6 +166,7 @@ def geode_objects_dict():
|
|
158
166
|
"input_factory": og.PolygonalSurfaceInputFactory2D,
|
159
167
|
"output_factory": og.PolygonalSurfaceOutputFactory2D,
|
160
168
|
"missing_files": og.check_polygonal_surface_missing_files2D,
|
169
|
+
"is_loadable": og.is_polygonal_surface_loadable2D,
|
161
170
|
"load": og.load_polygonal_surface2D,
|
162
171
|
"is_saveable": og.is_polygonal_surface_saveable2D,
|
163
172
|
"save": og.save_polygonal_surface2D,
|
@@ -177,6 +186,7 @@ def geode_objects_dict():
|
|
177
186
|
"input_factory": og.PolygonalSurfaceInputFactory3D,
|
178
187
|
"output_factory": og.PolygonalSurfaceOutputFactory3D,
|
179
188
|
"missing_files": og.check_polygonal_surface_missing_files3D,
|
189
|
+
"is_loadable": og.is_polygonal_surface_loadable3D,
|
180
190
|
"load": og.load_polygonal_surface3D,
|
181
191
|
"is_saveable": og.is_polygonal_surface_saveable3D,
|
182
192
|
"save": og.save_polygonal_surface3D,
|
@@ -196,6 +206,7 @@ def geode_objects_dict():
|
|
196
206
|
"input_factory": og.PolyhedralSolidInputFactory3D,
|
197
207
|
"output_factory": og.PolyhedralSolidOutputFactory3D,
|
198
208
|
"missing_files": og.check_polyhedral_solid_missing_files3D,
|
209
|
+
"is_loadable": og.is_polyhedral_solid_loadable3D,
|
199
210
|
"load": og.load_polyhedral_solid3D,
|
200
211
|
"is_saveable": og.is_polyhedral_solid_saveable3D,
|
201
212
|
"save": og.save_polyhedral_solid3D,
|
@@ -215,6 +226,7 @@ def geode_objects_dict():
|
|
215
226
|
"input_factory": og.RasterImageInputFactory2D,
|
216
227
|
"output_factory": og.RasterImageOutputFactory2D,
|
217
228
|
"missing_files": og.check_raster_image_missing_files2D,
|
229
|
+
"is_loadable": og.is_raster_image_loadable2D,
|
218
230
|
"load": og.load_raster_image2D,
|
219
231
|
"is_saveable": og.is_raster_image_saveable2D,
|
220
232
|
"save": og.save_raster_image2D,
|
@@ -227,6 +239,7 @@ def geode_objects_dict():
|
|
227
239
|
"input_factory": og.RasterImageInputFactory3D,
|
228
240
|
"output_factory": og.RasterImageOutputFactory3D,
|
229
241
|
"missing_files": og.check_raster_image_missing_files3D,
|
242
|
+
"is_loadable": og.is_raster_image_loadable3D,
|
230
243
|
"load": og.load_raster_image3D,
|
231
244
|
"is_saveable": og.is_raster_image_saveable3D,
|
232
245
|
"save": og.save_raster_image3D,
|
@@ -239,6 +252,7 @@ def geode_objects_dict():
|
|
239
252
|
"input_factory": og.RegularGridInputFactory2D,
|
240
253
|
"output_factory": og.RegularGridOutputFactory2D,
|
241
254
|
"missing_files": og.check_regular_grid_missing_files2D,
|
255
|
+
"is_loadable": og.is_regular_grid_loadable2D,
|
242
256
|
"load": og.load_regular_grid2D,
|
243
257
|
"is_saveable": og.is_regular_grid_saveable2D,
|
244
258
|
"save": og.save_regular_grid2D,
|
@@ -257,6 +271,7 @@ def geode_objects_dict():
|
|
257
271
|
"input_factory": og.RegularGridInputFactory3D,
|
258
272
|
"output_factory": og.RegularGridOutputFactory3D,
|
259
273
|
"missing_files": og.check_regular_grid_missing_files3D,
|
274
|
+
"is_loadable": og.is_regular_grid_loadable3D,
|
260
275
|
"load": og.load_regular_grid3D,
|
261
276
|
"is_saveable": og.is_regular_grid_saveable3D,
|
262
277
|
"save": og.save_regular_grid3D,
|
@@ -275,6 +290,7 @@ def geode_objects_dict():
|
|
275
290
|
"input_factory": og.SectionInputFactory,
|
276
291
|
"output_factory": og.SectionOutputFactory,
|
277
292
|
"missing_files": og.check_section_missing_files,
|
293
|
+
"is_loadable": og.is_section_loadable,
|
278
294
|
"load": og.load_section,
|
279
295
|
"is_saveable": og.is_section_saveable,
|
280
296
|
"save": og.save_section,
|
@@ -295,6 +311,7 @@ def geode_objects_dict():
|
|
295
311
|
"input_factory": og_gs.StructuralModelInputFactory,
|
296
312
|
"output_factory": og_gs.StructuralModelOutputFactory,
|
297
313
|
"missing_files": og_gs.check_structural_model_missing_files,
|
314
|
+
"is_loadable": og_gs.is_structural_model_loadable,
|
298
315
|
"load": og_gs.load_structural_model,
|
299
316
|
"is_saveable": og_gs.is_structural_model_saveable,
|
300
317
|
"save": og_gs.save_structural_model,
|
@@ -314,6 +331,7 @@ def geode_objects_dict():
|
|
314
331
|
"input_factory": og.TetrahedralSolidInputFactory3D,
|
315
332
|
"output_factory": og.TetrahedralSolidOutputFactory3D,
|
316
333
|
"missing_files": og.check_tetrahedral_solid_missing_files3D,
|
334
|
+
"is_loadable": og.is_tetrahedral_solid_loadable3D,
|
317
335
|
"load": og.load_tetrahedral_solid3D,
|
318
336
|
"is_saveable": og.is_tetrahedral_solid_saveable3D,
|
319
337
|
"save": og.save_tetrahedral_solid3D,
|
@@ -333,6 +351,7 @@ def geode_objects_dict():
|
|
333
351
|
"input_factory": og.TriangulatedSurfaceInputFactory2D,
|
334
352
|
"output_factory": og.TriangulatedSurfaceOutputFactory2D,
|
335
353
|
"missing_files": og.check_triangulated_surface_missing_files2D,
|
354
|
+
"is_loadable": og.is_triangulated_surface_loadable2D,
|
336
355
|
"load": og.load_triangulated_surface2D,
|
337
356
|
"is_saveable": og.is_triangulated_surface_saveable2D,
|
338
357
|
"save": og.save_triangulated_surface2D,
|
@@ -352,6 +371,7 @@ def geode_objects_dict():
|
|
352
371
|
"input_factory": og.TriangulatedSurfaceInputFactory3D,
|
353
372
|
"output_factory": og.TriangulatedSurfaceOutputFactory3D,
|
354
373
|
"missing_files": og.check_triangulated_surface_missing_files3D,
|
374
|
+
"is_loadable": og.is_triangulated_surface_loadable3D,
|
355
375
|
"load": og.load_triangulated_surface3D,
|
356
376
|
"is_saveable": og.is_triangulated_surface_saveable3D,
|
357
377
|
"save": og.save_triangulated_surface3D,
|
@@ -371,6 +391,7 @@ def geode_objects_dict():
|
|
371
391
|
"input_factory": og.VertexSetInputFactory,
|
372
392
|
"output_factory": og.VertexSetOutputFactory,
|
373
393
|
"missing_files": og.check_vertex_set_missing_files,
|
394
|
+
"is_loadable": og.is_vertex_set_loadable,
|
374
395
|
"load": og.load_vertex_set,
|
375
396
|
"is_saveable": og.is_vertex_set_saveable,
|
376
397
|
"save": og.save_vertex_set,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
opengeodeweb_back/geode_functions.py,sha256=ezTfFrg2TrvEyPo6G5Rb8z90SmbjDpeGTPuSevKpE5o,10217
|
3
|
-
opengeodeweb_back/geode_objects.py,sha256=o7OxfFjvHgFr276HYIBr7lBBQa3g2RbPEVS_L9IcL6M,17826
|
4
|
-
opengeodeweb_back/inspector_functions.py,sha256=rx3LsY6ETKl1J9kKilcFRZMZrIoBZEIOebqWrcuMJsk,15903
|
5
|
-
OpenGeodeWeb_Back-3.0.0rc10.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
-
OpenGeodeWeb_Back-3.0.0rc10.dist-info/METADATA,sha256=fWmJdRMyq9p_2RQXWdT2xNNE4tTdyFz8P0eWoy2VPXo,3155
|
7
|
-
OpenGeodeWeb_Back-3.0.0rc10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
-
OpenGeodeWeb_Back-3.0.0rc10.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
-
OpenGeodeWeb_Back-3.0.0rc10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{OpenGeodeWeb_Back-3.0.0rc10.dist-info → OpenGeodeWeb_Back-3.0.0rc11.dist-info}/top_level.txt
RENAMED
File without changes
|