Vease-Viewer 2.1.2rc1__py3-none-any.whl → 2.2.0rc1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {Vease_Viewer-2.1.2rc1.dist-info → Vease_Viewer-2.2.0rc1.dist-info}/METADATA +2 -2
- Vease_Viewer-2.2.0rc1.dist-info/RECORD +9 -0
- {Vease_Viewer-2.1.2rc1.dist-info → Vease_Viewer-2.2.0rc1.dist-info}/WHEEL +1 -1
- vease_viewer/app.py +4 -3
- vease_viewer/rpc/protocols.py +24 -0
- vease_viewer/rpc/schemas/microservice_version.json +7 -0
- Vease_Viewer-2.1.2rc1.dist-info/RECORD +0 -7
- {Vease_Viewer-2.1.2rc1.dist-info → Vease_Viewer-2.2.0rc1.dist-info}/LICENSE +0 -0
- {Vease_Viewer-2.1.2rc1.dist-info → Vease_Viewer-2.2.0rc1.dist-info}/entry_points.txt +0 -0
- {Vease_Viewer-2.1.2rc1.dist-info → Vease_Viewer-2.2.0rc1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.2
|
2
2
|
Name: Vease-Viewer
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.2.0rc1
|
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
|
@@ -0,0 +1,9 @@
|
|
1
|
+
vease_viewer/app.py,sha256=AAQ7OcJuF5_mUfhdSvrZDAPnI9AlXW8RUjt7lxY_pck,340
|
2
|
+
vease_viewer/rpc/protocols.py,sha256=y8RkBzxin_1Y_olICLLzk2GjUbZf9EJBa_CXHr5bDHY,895
|
3
|
+
vease_viewer/rpc/schemas/microservice_version.json,sha256=AjOLp1fuLNcP_4YpQIQRSSNDPznfTUkf6kbqBjIPo0o,126
|
4
|
+
Vease_Viewer-2.2.0rc1.dist-info/LICENSE,sha256=mCqVv7oI0gi34gXQr9z46E5t6MRtMBbtGpcecM8jye8,1072
|
5
|
+
Vease_Viewer-2.2.0rc1.dist-info/METADATA,sha256=jWj0P3P86zXUqYGqGMKWXyLY_AkDk4e4we_QDc0Ap6c,1565
|
6
|
+
Vease_Viewer-2.2.0rc1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
7
|
+
Vease_Viewer-2.2.0rc1.dist-info/entry_points.txt,sha256=n39U_EW4l0moq5yJ-yavxNP3WHf_L5AITJpez8H2TWg,61
|
8
|
+
Vease_Viewer-2.2.0rc1.dist-info/top_level.txt,sha256=ulf1U3rlf8f1kleu7P2T6vZIhVgwi5aS1_qgNaSwiwA,13
|
9
|
+
Vease_Viewer-2.2.0rc1.dist-info/RECORD,,
|
vease_viewer/app.py
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
# Standard library imports
|
2
2
|
|
3
3
|
# Third party imports
|
4
|
-
from opengeodeweb_viewer import
|
4
|
+
from opengeodeweb_viewer.vtkw_server import _Server, run_server
|
5
5
|
|
6
6
|
# Local application imports
|
7
|
-
|
7
|
+
from vease_viewer.rpc.protocols import VtkVeaseViewerView
|
8
8
|
|
9
9
|
def run_viewer():
|
10
|
-
|
10
|
+
_Server.custom_protocols.append(VtkVeaseViewerView())
|
11
|
+
run_server()
|
11
12
|
|
12
13
|
if __name__ == "__main__":
|
13
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}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
vease_viewer/app.py,sha256=31wk8nz7dCSqDeVrSZ421zfi3VbXmf_welXTSbSfMy4,217
|
2
|
-
Vease_Viewer-2.1.2rc1.dist-info/LICENSE,sha256=mCqVv7oI0gi34gXQr9z46E5t6MRtMBbtGpcecM8jye8,1072
|
3
|
-
Vease_Viewer-2.1.2rc1.dist-info/METADATA,sha256=qm-HZb-BLs1_ZMOg_jJ3tqjJcfeFrbIrNzW7xjpu14Q,1565
|
4
|
-
Vease_Viewer-2.1.2rc1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
5
|
-
Vease_Viewer-2.1.2rc1.dist-info/entry_points.txt,sha256=n39U_EW4l0moq5yJ-yavxNP3WHf_L5AITJpez8H2TWg,61
|
6
|
-
Vease_Viewer-2.1.2rc1.dist-info/top_level.txt,sha256=ulf1U3rlf8f1kleu7P2T6vZIhVgwi5aS1_qgNaSwiwA,13
|
7
|
-
Vease_Viewer-2.1.2rc1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|