OpenGeodeWeb-Back 5.4.3rc1__py3-none-any.whl → 5.5.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.
- {OpenGeodeWeb_Back-5.4.3rc1.dist-info → OpenGeodeWeb_Back-5.5.0.dist-info}/METADATA +1 -1
- {OpenGeodeWeb_Back-5.4.3rc1.dist-info → OpenGeodeWeb_Back-5.5.0.dist-info}/RECORD +7 -6
- opengeodeweb_back/routes/blueprint_routes.py +36 -7
- opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json +15 -0
- {OpenGeodeWeb_Back-5.4.3rc1.dist-info → OpenGeodeWeb_Back-5.5.0.dist-info}/LICENSE +0 -0
- {OpenGeodeWeb_Back-5.4.3rc1.dist-info → OpenGeodeWeb_Back-5.5.0.dist-info}/WHEEL +0 -0
- {OpenGeodeWeb_Back-5.4.3rc1.dist-info → OpenGeodeWeb_Back-5.5.0.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 5.
|
3
|
+
Version: 5.5.0
|
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
|
@@ -4,7 +4,7 @@ opengeodeweb_back/geode_functions.py,sha256=U-w_zf08zFAIES1GHkRmf1d1iNQzm0BF0Cyc
|
|
4
4
|
opengeodeweb_back/geode_objects.py,sha256=DdqUL78tftXuB08CLhXsaIJYWckt4ldFHSgnJeMTKBE,23657
|
5
5
|
opengeodeweb_back/test_utils.py,sha256=gvRPOzin4nI5TKuB-AFgIxcekTOYM4h7yUYk0tYIZFI,820
|
6
6
|
opengeodeweb_back/utils_functions.py,sha256=18kp8M3bnrlu692qj-ymJJPA1hTpPjx_xl9oVi5qGyg,4120
|
7
|
-
opengeodeweb_back/routes/blueprint_routes.py,sha256=
|
7
|
+
opengeodeweb_back/routes/blueprint_routes.py,sha256=TnsrkoNOxdwTML4gFzN94HKWr4DKmufX94AZ8d4u-sY,12461
|
8
8
|
opengeodeweb_back/routes/schemas/allowed_files.json,sha256=pRsGf39LiJpl3zEGLg4IqvRtm7iUx3Wq4Tb4tSFXGV0,234
|
9
9
|
opengeodeweb_back/routes/schemas/allowed_objects.json,sha256=8JLtAI46eXeiJuiryS2geRVv0J1rGkFb87pRwtBZSZw,296
|
10
10
|
opengeodeweb_back/routes/schemas/create_point.json,sha256=fqBOLRxpRtCVz1t7ottdfhSMREhqNFUHrQwamn-F7Ds,306
|
@@ -14,11 +14,12 @@ opengeodeweb_back/routes/schemas/inspect_file.json,sha256=7jmmLD2oZ2dxn5-2HqS6fU
|
|
14
14
|
opengeodeweb_back/routes/schemas/missing_files.json,sha256=tJVdSM3CqYFZRC6eNW6Q3JG3RtoaZDxaZtbfx6djbX0,286
|
15
15
|
opengeodeweb_back/routes/schemas/ping.json,sha256=MhI5jtrjMsAsfIKEzdY8p1HyV9xv4O3hYfESWw6tkyE,162
|
16
16
|
opengeodeweb_back/routes/schemas/polygon_attribute_names.json,sha256=y0qDZ0v3zkzYuM-9jfBXU0aTUnWz2w0gXqes9Xs7PgE,296
|
17
|
+
opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json,sha256=FaW1kMC4D4LrdvCGMzWVM6d7zq1pxrr-YwdVdmaWx8k,299
|
17
18
|
opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=7BXO8vsQrmqyEQ2uycm2Ift_EY7a0KocvnGEjYrQFcQ,368
|
18
19
|
opengeodeweb_back/routes/schemas/upload_file.json,sha256=sE6bxz3mJbSZlGmrnR_hZmcx0dvZGn3Wpnn6szRPxXQ,186
|
19
20
|
opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=wijww9z7vVUIr1_3hMnR5efpMfW2-o2-QvcO_MVDefE,295
|
20
|
-
OpenGeodeWeb_Back-5.
|
21
|
-
OpenGeodeWeb_Back-5.
|
22
|
-
OpenGeodeWeb_Back-5.
|
23
|
-
OpenGeodeWeb_Back-5.
|
24
|
-
OpenGeodeWeb_Back-5.
|
21
|
+
OpenGeodeWeb_Back-5.5.0.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
|
22
|
+
OpenGeodeWeb_Back-5.5.0.dist-info/METADATA,sha256=w5JAkepu4cS2KnMjuA-lId56ayAyrLagZIlrcPDvSeQ,3055
|
23
|
+
OpenGeodeWeb_Back-5.5.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
24
|
+
OpenGeodeWeb_Back-5.5.0.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
25
|
+
OpenGeodeWeb_Back-5.5.0.dist-info/RECORD,,
|
@@ -256,6 +256,7 @@ def save_viewable_file():
|
|
256
256
|
DATA_FOLDER_PATH,
|
257
257
|
generated_id + "." + native_extension,
|
258
258
|
)
|
259
|
+
os.remove(os.path.join(UPLOAD_FOLDER, secure_filename))
|
259
260
|
object_type = geode_functions.get_object_type(
|
260
261
|
flask.request.json["input_geode_object"]
|
261
262
|
)
|
@@ -316,11 +317,10 @@ with open(
|
|
316
317
|
methods=vertex_attribute_names_json["methods"],
|
317
318
|
)
|
318
319
|
def vertex_attribute_names():
|
319
|
-
|
320
|
-
UPLOAD_FOLDER = flask.current_app.config["UPLOAD_FOLDER"]
|
320
|
+
DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
|
321
321
|
utils_functions.validate_request(flask.request, vertex_attribute_names_json)
|
322
322
|
file_absolute_path = os.path.join(
|
323
|
-
|
323
|
+
DATA_FOLDER_PATH, werkzeug.utils.secure_filename(flask.request.json["filename"])
|
324
324
|
)
|
325
325
|
data = geode_functions.load(
|
326
326
|
flask.request.json["input_geode_object"], file_absolute_path
|
@@ -347,11 +347,10 @@ with open(
|
|
347
347
|
methods=polygon_attribute_names_json["methods"],
|
348
348
|
)
|
349
349
|
def polygon_attribute_names():
|
350
|
-
|
351
|
-
|
352
|
-
utils_functions.validate_request(flask.request, vertex_attribute_names_json)
|
350
|
+
DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
|
351
|
+
utils_functions.validate_request(flask.request, polygon_attribute_names_json)
|
353
352
|
file_absolute_path = os.path.join(
|
354
|
-
|
353
|
+
DATA_FOLDER_PATH, werkzeug.utils.secure_filename(flask.request.json["filename"])
|
355
354
|
)
|
356
355
|
data = geode_functions.load(
|
357
356
|
flask.request.json["input_geode_object"], file_absolute_path
|
@@ -366,6 +365,36 @@ def polygon_attribute_names():
|
|
366
365
|
)
|
367
366
|
|
368
367
|
|
368
|
+
with open(
|
369
|
+
os.path.join(schemas, "polyhedron_attribute_names.json"),
|
370
|
+
"r",
|
371
|
+
) as file:
|
372
|
+
polyhedron_attribute_names_json = json.load(file)
|
373
|
+
|
374
|
+
|
375
|
+
@routes.route(
|
376
|
+
polyhedron_attribute_names_json["route"],
|
377
|
+
methods=polyhedron_attribute_names_json["methods"],
|
378
|
+
)
|
379
|
+
def polyhedron_attribute_names():
|
380
|
+
DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
|
381
|
+
utils_functions.validate_request(flask.request, vertex_attribute_names_json)
|
382
|
+
file_absolute_path = os.path.join(
|
383
|
+
DATA_FOLDER_PATH, werkzeug.utils.secure_filename(flask.request.json["filename"])
|
384
|
+
)
|
385
|
+
data = geode_functions.load(
|
386
|
+
flask.request.json["input_geode_object"], file_absolute_path
|
387
|
+
)
|
388
|
+
polyhedron_attribute_names = data.polyhedron_attribute_manager().attribute_names()
|
389
|
+
|
390
|
+
return flask.make_response(
|
391
|
+
{
|
392
|
+
"polyhedron_attribute_names": polyhedron_attribute_names,
|
393
|
+
},
|
394
|
+
200,
|
395
|
+
)
|
396
|
+
|
397
|
+
|
369
398
|
with open(
|
370
399
|
os.path.join(schemas, "ping.json"),
|
371
400
|
"r",
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"route": "/polyhedron_attribute_names",
|
3
|
+
"methods": ["POST"],
|
4
|
+
"type": "object",
|
5
|
+
"properties": {
|
6
|
+
"input_geode_object": {
|
7
|
+
"type": "string"
|
8
|
+
},
|
9
|
+
"filename": {
|
10
|
+
"type": "string"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
"required": ["input_geode_object", "filename"],
|
14
|
+
"additionalProperties": false
|
15
|
+
}
|
File without changes
|
File without changes
|
File without changes
|