OpenGeodeWeb-Back 5.5.1rc1__py3-none-any.whl → 5.6.0rc2__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.
@@ -283,6 +283,7 @@ with open(os.path.join(schemas, "create_point.json"), "r") as file:
283
283
  def create_point():
284
284
  utils_functions.validate_request(flask.request, create_point_json)
285
285
  DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
286
+ title = flask.request.json["title"]
286
287
  x = flask.request.json["x"]
287
288
  y = flask.request.json["y"]
288
289
  z = flask.request.json["z"]
@@ -290,21 +291,54 @@ def create_point():
290
291
  PointSet3D = class_.create()
291
292
  builder = geode_functions.create_builder("PointSet3D", PointSet3D)
292
293
  builder.create_point(opengeode.Point3D([x, y, z]))
293
-
294
+ builder.set_name(title)
295
+ name = PointSet3D.name()
294
296
  generated_id = str(uuid.uuid4()).replace("-", "")
297
+ object_type = geode_functions.get_object_type("PointSet3D")
298
+ saved_native_file_path = geode_functions.save(
299
+ "PointSet3D", PointSet3D, DATA_FOLDER_PATH, generated_id + ".og_pts3d"
300
+ )
295
301
  saved_viewable_file_path = geode_functions.save_viewable(
296
302
  "PointSet3D", PointSet3D, DATA_FOLDER_PATH, generated_id
297
303
  )
298
304
 
305
+ native_file_name = os.path.basename(saved_native_file_path[0])
306
+ viewable_file_name = os.path.basename(saved_viewable_file_path)
307
+
299
308
  return flask.make_response(
300
309
  {
301
310
  "viewable_file_name": os.path.basename(saved_viewable_file_path),
302
311
  "id": generated_id,
312
+ "name": name,
313
+ "native_file_name": native_file_name,
314
+ "viewable_file_name": viewable_file_name,
315
+ "object_type": object_type,
316
+ "geode_object": "PointSet3D",
303
317
  },
304
318
  200,
305
319
  )
306
320
 
307
321
 
322
+ with open(os.path.join(schemas, "texture_coordinates.json"), "r") as file:
323
+ texture_coordinates_json = json.load(file)
324
+
325
+
326
+ @routes.route(
327
+ texture_coordinates_json["route"],
328
+ methods=texture_coordinates_json["methods"],
329
+ )
330
+ def texture_coordinates():
331
+ DATA_FOLDER_PATH = flask.current_app.config["DATA_FOLDER_PATH"]
332
+ utils_functions.validate_request(flask.request, texture_coordinates_json)
333
+ data = geode_functions.load(
334
+ flask.request.json["input_geode_object"],
335
+ os.path.join(DATA_FOLDER_PATH, flask.request.json["filename"]),
336
+ )
337
+ texture_coordinates = data.texture_manager().texture_names()
338
+
339
+ return flask.make_response({"texture_coordinates": texture_coordinates}, 200)
340
+
341
+
308
342
  with open(
309
343
  os.path.join(schemas, "vertex_attribute_names.json"),
310
344
  "r",
@@ -5,6 +5,9 @@
5
5
  ],
6
6
  "type": "object",
7
7
  "properties": {
8
+ "title": {
9
+ "type": "string"
10
+ },
8
11
  "x": {
9
12
  "type": "number"
10
13
  },
@@ -16,6 +19,7 @@
16
19
  }
17
20
  },
18
21
  "required": [
22
+ "title",
19
23
  "x",
20
24
  "y",
21
25
  "z"
@@ -0,0 +1,24 @@
1
+ {
2
+ "route": "/texture_coordinates",
3
+ "methods": [
4
+ "POST"
5
+ ],
6
+ "type": "object",
7
+ "properties": {
8
+ "input_geode_object": {
9
+ "type": [
10
+ "string"
11
+ ]
12
+ },
13
+ "filename": {
14
+ "type": [
15
+ "string"
16
+ ]
17
+ }
18
+ },
19
+ "required": [
20
+ "input_geode_object",
21
+ "filename"
22
+ ],
23
+ "additionalProperties": false
24
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: OpenGeodeWeb-Back
3
- Version: 5.5.1rc1
3
+ Version: 5.6.0rc2
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
@@ -16,27 +16,27 @@ Requires-Dist: attrs==25.1.0
16
16
  Requires-Dist: blinker==1.9.0
17
17
  Requires-Dist: click==8.1.8
18
18
  Requires-Dist: flask[async]==3.1.0
19
- Requires-Dist: flask-cors==5.0.0
20
- Requires-Dist: geode-background==8.9.3
21
- Requires-Dist: geode-common==33.5.0
22
- Requires-Dist: geode-conversion==6.1.5
19
+ Requires-Dist: flask-cors==5.0.1
20
+ Requires-Dist: geode-background==8.9.4
21
+ Requires-Dist: geode-common==33.5.1rc1
22
+ Requires-Dist: geode-conversion==6.1.6
23
23
  Requires-Dist: geode-explicit==6.1.28
24
24
  Requires-Dist: geode-implicit==3.5.2
25
25
  Requires-Dist: geode-numerics==5.2.5
26
- Requires-Dist: geode-simplex==9.0.10
26
+ Requires-Dist: geode-simplex==9.0.12rc1
27
27
  Requires-Dist: geode-viewables==3.0.10
28
28
  Requires-Dist: itsdangerous==2.2.0
29
29
  Requires-Dist: jinja2==3.1.5
30
30
  Requires-Dist: jsonschema==4.23.0
31
31
  Requires-Dist: jsonschema-specifications==2024.10.1
32
32
  Requires-Dist: markupsafe==3.0.2
33
- Requires-Dist: opengeode-core==15.10.1
33
+ Requires-Dist: opengeode-core==15.13.0rc1
34
34
  Requires-Dist: opengeode-geosciences==8.2.2
35
35
  Requires-Dist: opengeode-geosciencesio==5.3.6
36
36
  Requires-Dist: opengeode-inspector==6.3.7
37
37
  Requires-Dist: opengeode-io==7.1.0
38
38
  Requires-Dist: referencing==0.36.2
39
- Requires-Dist: rpds-py==0.22.3
39
+ Requires-Dist: rpds-py==0.23.1
40
40
  Requires-Dist: typing-extensions==4.12.2
41
41
  Requires-Dist: werkzeug==3.1.3
42
42
 
@@ -4,10 +4,10 @@ opengeodeweb_back/geode_functions.py,sha256=ei0eI3pWMqzrhgI5ta5HtnoRoNs-GCqtkXe5
4
4
  opengeodeweb_back/geode_objects.py,sha256=4XH0TGujHw3LIBIzPLBa2eqxyfjVLo9hywKYxXEp-zU,24372
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=TnsrkoNOxdwTML4gFzN94HKWr4DKmufX94AZ8d4u-sY,12461
7
+ opengeodeweb_back/routes/blueprint_routes.py,sha256=oDhoXIX5XIaaRa-_CEphwRmIxhuUYOS2spB2i1zOc8k,13818
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
- opengeodeweb_back/routes/schemas/create_point.json,sha256=fqBOLRxpRtCVz1t7ottdfhSMREhqNFUHrQwamn-F7Ds,306
10
+ opengeodeweb_back/routes/schemas/create_point.json,sha256=wkR0A0BFKvh3Knapjdi1_mDM7q3eoQiduLS-j6ciDSg,364
11
11
  opengeodeweb_back/routes/schemas/geode_objects_and_output_extensions.json,sha256=0t4YhdKxDlzcLh85JU85z6Pn5h8wlXVt3Zi4ZhXXmTQ,308
12
12
  opengeodeweb_back/routes/schemas/geographic_coordinate_systems.json,sha256=86QEBxAJXdMHulj2SyrxvAAwvyUq3mpKSazwASukeoM,242
13
13
  opengeodeweb_back/routes/schemas/inspect_file.json,sha256=7jmmLD2oZ2dxn5-2HqS6fU92eGM3FWBQdj3CjyYmGOA,285
@@ -16,10 +16,11 @@ opengeodeweb_back/routes/schemas/ping.json,sha256=MhI5jtrjMsAsfIKEzdY8p1HyV9xv4O
16
16
  opengeodeweb_back/routes/schemas/polygon_attribute_names.json,sha256=y0qDZ0v3zkzYuM-9jfBXU0aTUnWz2w0gXqes9Xs7PgE,296
17
17
  opengeodeweb_back/routes/schemas/polyhedron_attribute_names.json,sha256=FaW1kMC4D4LrdvCGMzWVM6d7zq1pxrr-YwdVdmaWx8k,299
18
18
  opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=7BXO8vsQrmqyEQ2uycm2Ift_EY7a0KocvnGEjYrQFcQ,368
19
+ opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=iLlP6EQiLpzfKBXdrX3fmse_4V_QjblEDV2f2AMUM20,347
19
20
  opengeodeweb_back/routes/schemas/upload_file.json,sha256=sE6bxz3mJbSZlGmrnR_hZmcx0dvZGn3Wpnn6szRPxXQ,186
20
21
  opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=wijww9z7vVUIr1_3hMnR5efpMfW2-o2-QvcO_MVDefE,295
21
- OpenGeodeWeb_Back-5.5.1rc1.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
22
- OpenGeodeWeb_Back-5.5.1rc1.dist-info/METADATA,sha256=DEnHMR5W_Pnl1cNqbzA_OrJbxi_BuPcafUCexKBv3Mc,3059
23
- OpenGeodeWeb_Back-5.5.1rc1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
24
- OpenGeodeWeb_Back-5.5.1rc1.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
25
- OpenGeodeWeb_Back-5.5.1rc1.dist-info/RECORD,,
22
+ opengeodeweb_back-5.6.0rc2.dist-info/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
23
+ opengeodeweb_back-5.6.0rc2.dist-info/METADATA,sha256=t5Sikcr7fsuCJ1DqVhFt9qkfUF-HZERUg5WgZc77c7o,3068
24
+ opengeodeweb_back-5.6.0rc2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
25
+ opengeodeweb_back-5.6.0rc2.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
26
+ opengeodeweb_back-5.6.0rc2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5