OpenGeodeWeb-Back 3.0.0rc5__py3-none-any.whl → 3.0.0rc7__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.0rc5.dist-info → OpenGeodeWeb_Back-3.0.0rc7.dist-info}/METADATA +5 -5
- OpenGeodeWeb_Back-3.0.0rc7.dist-info/RECORD +9 -0
- opengeodeweb_back/geode_functions.py +36 -18
- OpenGeodeWeb_Back-3.0.0rc5.dist-info/RECORD +0 -9
- {OpenGeodeWeb_Back-3.0.0rc5.dist-info → OpenGeodeWeb_Back-3.0.0rc7.dist-info}/LICENSE +0 -0
- {OpenGeodeWeb_Back-3.0.0rc5.dist-info → OpenGeodeWeb_Back-3.0.0rc7.dist-info}/WHEEL +0 -0
- {OpenGeodeWeb_Back-3.0.0rc5.dist-info → OpenGeodeWeb_Back-3.0.0rc7.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.0rc7
|
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
|
@@ -17,7 +17,7 @@ Requires-Dist: blinker ==1.7.0
|
|
17
17
|
Requires-Dist: click ==8.1.7
|
18
18
|
Requires-Dist: colorama ==0.4.6
|
19
19
|
Requires-Dist: flask[async] ==3.0.0
|
20
|
-
Requires-Dist: geode-common ==30.0.
|
20
|
+
Requires-Dist: geode-common ==30.0.4
|
21
21
|
Requires-Dist: geode-viewables ==2.1.7
|
22
22
|
Requires-Dist: importlib-metadata ==7.0.0
|
23
23
|
Requires-Dist: itsdangerous ==2.1.2
|
@@ -28,11 +28,11 @@ Requires-Dist: markupsafe ==2.1.3
|
|
28
28
|
Requires-Dist: opengeode-core ==14.10.2
|
29
29
|
Requires-Dist: opengeode-geosciences ==7.3.2
|
30
30
|
Requires-Dist: opengeode-geosciencesio ==4.5.4
|
31
|
-
Requires-Dist: opengeode-inspector ==4.0.
|
31
|
+
Requires-Dist: opengeode-inspector ==4.0.4
|
32
32
|
Requires-Dist: opengeode-io ==6.2.4
|
33
|
-
Requires-Dist: referencing ==0.
|
33
|
+
Requires-Dist: referencing ==0.32.0
|
34
34
|
Requires-Dist: rpds-py ==0.13.2
|
35
|
-
Requires-Dist: typing-extensions ==4.
|
35
|
+
Requires-Dist: typing-extensions ==4.9.0
|
36
36
|
Requires-Dist: werkzeug ==3.0.1
|
37
37
|
Requires-Dist: zipp ==3.17.0
|
38
38
|
|
@@ -0,0 +1,9 @@
|
|
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.0rc7.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
+
OpenGeodeWeb_Back-3.0.0rc7.dist-info/METADATA,sha256=3YSR2cbeQ7ZIeRT6aJCOUKVqniJWlWtVtEM4RlBN6R0,2922
|
7
|
+
OpenGeodeWeb_Back-3.0.0rc7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
+
OpenGeodeWeb_Back-3.0.0rc7.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
+
OpenGeodeWeb_Back-3.0.0rc7.dist-info/RECORD,,
|
@@ -151,27 +151,20 @@ def list_geode_objects(extension: str, key: str = None):
|
|
151
151
|
|
152
152
|
|
153
153
|
def geode_objects_output_extensions(geode_object: str, data):
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
output = geode_object_output_extensions(geode_object)
|
159
|
-
|
160
|
-
extension_saveable_array = []
|
161
|
-
for output_extension in output:
|
154
|
+
geode_objects_output_extensions_dict = {}
|
155
|
+
output_extensions = geode_object_output_extensions(geode_object)
|
156
|
+
extensions_dict = {}
|
157
|
+
for output_extension in output_extensions:
|
162
158
|
bool_is_saveable = is_saveable(geode_object, data, f"test.{output_extension}")
|
163
|
-
|
164
|
-
|
165
|
-
)
|
166
|
-
|
167
|
-
geode_object_dict["outputs"] = extension_saveable_array
|
168
|
-
|
169
|
-
return_list.append(geode_object_dict)
|
159
|
+
extensions_dict[output_extension] = {"is_saveable": bool_is_saveable}
|
160
|
+
geode_objects_output_extensions_dict[geode_object] = extensions_dict
|
170
161
|
|
171
162
|
if "parent" in geode_object_value(geode_object).keys():
|
172
|
-
|
173
|
-
|
174
|
-
|
163
|
+
parent_geode_object = geode_object_value(geode_object)["parent"]
|
164
|
+
geode_objects_output_extensions_dict.update(
|
165
|
+
geode_objects_output_extensions(parent_geode_object, data)
|
166
|
+
)
|
167
|
+
return geode_objects_output_extensions_dict
|
175
168
|
|
176
169
|
|
177
170
|
def versions(list_packages: list):
|
@@ -303,3 +296,28 @@ def create_coordinate_system(
|
|
303
296
|
create_crs(
|
304
297
|
geode_object, data, name, input_coordiante_system, output_coordiante_system
|
305
298
|
)
|
299
|
+
|
300
|
+
|
301
|
+
def send_file(upload_folder, saved_files, new_file_name):
|
302
|
+
if len(saved_files) == 1:
|
303
|
+
mimetype = "application/octet-binary"
|
304
|
+
else:
|
305
|
+
mimetype = "application/zip"
|
306
|
+
new_file_name = strict_file_name + ".zip"
|
307
|
+
with zipfile.ZipFile(os.path.join(upload_folder, new_file_name), "w") as zipObj:
|
308
|
+
for saved_file_path in saved_files:
|
309
|
+
zipObj.write(
|
310
|
+
saved_file_path,
|
311
|
+
os.path.basename(saved_file_path),
|
312
|
+
)
|
313
|
+
|
314
|
+
response = flask.send_from_directory(
|
315
|
+
directory=upload_folder,
|
316
|
+
path=new_file_name,
|
317
|
+
as_attachment=True,
|
318
|
+
mimetype=mimetype,
|
319
|
+
)
|
320
|
+
response.headers["new-file-name"] = new_file_name
|
321
|
+
response.headers["Access-Control-Expose-Headers"] = "new-file-name"
|
322
|
+
|
323
|
+
return response
|
@@ -1,9 +0,0 @@
|
|
1
|
-
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
opengeodeweb_back/geode_functions.py,sha256=pj6mgdhGNYQ5voK3sBDuMuVJ0uzfbbOPnWNWAdG8qDo,9425
|
3
|
-
opengeodeweb_back/geode_objects.py,sha256=o7OxfFjvHgFr276HYIBr7lBBQa3g2RbPEVS_L9IcL6M,17826
|
4
|
-
opengeodeweb_back/inspector_functions.py,sha256=rx3LsY6ETKl1J9kKilcFRZMZrIoBZEIOebqWrcuMJsk,15903
|
5
|
-
OpenGeodeWeb_Back-3.0.0rc5.dist-info/LICENSE,sha256=d-icw4NmOEwW-hCOcEjYmvoBZW_cEqiC4VL3cxZMe6Y,1072
|
6
|
-
OpenGeodeWeb_Back-3.0.0rc5.dist-info/METADATA,sha256=XjG5TYmBb4L0GHxVpLjDDm3AVidD_XavF_n_EXM2hTE,2922
|
7
|
-
OpenGeodeWeb_Back-3.0.0rc5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
8
|
-
OpenGeodeWeb_Back-3.0.0rc5.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
9
|
-
OpenGeodeWeb_Back-3.0.0rc5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|