Vease-Viewer 2.1.2__tar.gz → 2.2.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: Vease-Viewer
3
- Version: 2.1.2
3
+ Version: 2.2.0
4
4
  Summary: Vease-Viewer is the viewer microservice of Vease
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/Vease-Viewer
@@ -26,7 +26,7 @@ Requires-Dist: kiwisolver==1.4.8
26
26
  Requires-Dist: matplotlib==3.10.0
27
27
  Requires-Dist: multidict==6.0.5
28
28
  Requires-Dist: numpy==2.2.1
29
- Requires-Dist: opengeodeweb-viewer[gpu]==1.1.2
29
+ Requires-Dist: opengeodeweb-viewer[gpu]==1.2.0
30
30
  Requires-Dist: packaging==24.2
31
31
  Requires-Dist: pillow==11.1.0
32
32
  Requires-Dist: pyparsing==3.2.1
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
 
6
6
  [project]
7
7
  name = "Vease-Viewer"
8
- version = "2.1.2"
8
+ version = "2.2.0"
9
9
  dynamic = ["dependencies"]
10
10
  authors = [
11
11
  { name="Geode-solutions", email="team-web@geode-solutions.com" },
@@ -56,7 +56,7 @@ numpy==2.2.1
56
56
  # via
57
57
  # contourpy
58
58
  # matplotlib
59
- opengeodeweb-viewer[gpu]==1.1.2
59
+ opengeodeweb-viewer[gpu]==1.2.0
60
60
  # via -r requirements_gpu.in
61
61
  packaging==24.2
62
62
  # via matplotlib
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: Vease-Viewer
3
- Version: 2.1.2
3
+ Version: 2.2.0
4
4
  Summary: Vease-Viewer is the viewer microservice of Vease
5
5
  Author-email: Geode-solutions <team-web@geode-solutions.com>
6
6
  Project-URL: Homepage, https://github.com/Geode-solutions/Vease-Viewer
@@ -26,7 +26,7 @@ Requires-Dist: kiwisolver==1.4.8
26
26
  Requires-Dist: matplotlib==3.10.0
27
27
  Requires-Dist: multidict==6.0.5
28
28
  Requires-Dist: numpy==2.2.1
29
- Requires-Dist: opengeodeweb-viewer[gpu]==1.1.2
29
+ Requires-Dist: opengeodeweb-viewer[gpu]==1.2.0
30
30
  Requires-Dist: packaging==24.2
31
31
  Requires-Dist: pillow==11.1.0
32
32
  Requires-Dist: pyparsing==3.2.1
@@ -8,4 +8,6 @@ src/Vease_Viewer.egg-info/dependency_links.txt
8
8
  src/Vease_Viewer.egg-info/entry_points.txt
9
9
  src/Vease_Viewer.egg-info/requires.txt
10
10
  src/Vease_Viewer.egg-info/top_level.txt
11
- src/vease_viewer/app.py
11
+ src/vease_viewer/app.py
12
+ src/vease_viewer/rpc/protocols.py
13
+ src/vease_viewer/rpc/schemas/microservice_version.json
@@ -13,7 +13,7 @@ kiwisolver==1.4.8
13
13
  matplotlib==3.10.0
14
14
  multidict==6.0.5
15
15
  numpy==2.2.1
16
- opengeodeweb-viewer[gpu]==1.1.2
16
+ opengeodeweb-viewer[gpu]==1.2.0
17
17
  packaging==24.2
18
18
  pillow==11.1.0
19
19
  pyparsing==3.2.1
@@ -0,0 +1,14 @@
1
+ # Standard library imports
2
+
3
+ # Third party imports
4
+ from opengeodeweb_viewer.vtkw_server import _Server, run_server
5
+
6
+ # Local application imports
7
+ from vease_viewer.rpc.protocols import VtkVeaseViewerView
8
+
9
+ def run_viewer():
10
+ _Server.custom_protocols.append(VtkVeaseViewerView())
11
+ run_server()
12
+
13
+ if __name__ == "__main__":
14
+ run_viewer()
@@ -0,0 +1,24 @@
1
+ # Standard library imports
2
+ import os
3
+ import pkg_resources
4
+
5
+ # Third party imports
6
+ from opengeodeweb_viewer.utils_functions import get_schemas_dict, validate_schema
7
+ from vtk.web import protocols as vtk_protocols
8
+ from wslink import register as exportRpc
9
+
10
+ # Local application imports
11
+
12
+ class VtkVeaseViewerView(vtk_protocols.vtkWebProtocol):
13
+ prefix = "vease_viewer."
14
+ schemas_dict = get_schemas_dict(os.path.join(os.path.dirname(__file__), "schemas"))
15
+
16
+ def __init__(self):
17
+ super().__init__()
18
+
19
+ @exportRpc(prefix + schemas_dict["microservice_version"]["rpc"])
20
+ def microservice_version(self, params):
21
+ print(self.prefix + self.schemas_dict["microservice_version"]["rpc"], f"{params=}", flush=True)
22
+ validate_schema(params, self.schemas_dict["microservice_version"])
23
+
24
+ return {"microservice_version": pkg_resources.get_distribution("vease_viewer").version}
@@ -0,0 +1,7 @@
1
+ {
2
+ "rpc": "microservice_version",
3
+ "type": "object",
4
+ "properties": {},
5
+ "required": [],
6
+ "additionalProperties": false
7
+ }
@@ -1,13 +0,0 @@
1
- # Standard library imports
2
-
3
- # Third party imports
4
- from opengeodeweb_viewer import vtkw_server
5
-
6
- # Local application imports
7
-
8
-
9
- def run_viewer():
10
- vtkw_server.run_server()
11
-
12
- if __name__ == "__main__":
13
- run_viewer()
File without changes
File without changes
File without changes