deephaven-plugin 0.6.0__tar.gz → 0.7.0__tar.gz
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.
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/PKG-INFO +3 -2
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven/plugin/__init__.py +1 -1
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven/plugin/object_type.py +17 -1
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/PKG-INFO +3 -2
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/LICENSE +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/README.md +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/pyproject.toml +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/setup.cfg +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven/plugin/js.py +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/SOURCES.txt +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/dependency_links.txt +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/entry_points.txt +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/requires.txt +0 -0
- {deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: deephaven-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Deephaven Plugin interface
|
|
5
5
|
Home-page: https://github.com/deephaven/deephaven-plugin
|
|
6
6
|
Author: Devin Smith
|
|
@@ -17,6 +17,7 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: importlib-metadata>=3.6; python_version < "3.8"
|
|
20
|
+
Dynamic: license-file
|
|
20
21
|
|
|
21
22
|
# Deephaven Plugin interface
|
|
22
23
|
|
|
@@ -5,7 +5,7 @@ from typing import Union, Type
|
|
|
5
5
|
The deephaven.plugin module provides an API and registration mechanism to add new behavior to the Deephaven
|
|
6
6
|
server. Plugins should be registered by adding a Registration instance as an entrypoint to the Python package.
|
|
7
7
|
"""
|
|
8
|
-
__version__ = "0.
|
|
8
|
+
__version__ = "0.7.0"
|
|
9
9
|
|
|
10
10
|
DEEPHAVEN_PLUGIN_ENTRY_KEY = "deephaven.plugin"
|
|
11
11
|
DEEPHAVEN_PLUGIN_REGISTRATION_CLASS = "registration_cls"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import abc
|
|
2
|
-
from typing import Optional, Union, Type, List, Any
|
|
2
|
+
from typing import Literal, Optional, Union, Type, List, Any
|
|
3
3
|
|
|
4
4
|
from . import Plugin, Registration, register_all_into
|
|
5
5
|
|
|
@@ -69,6 +69,22 @@ class ObjectType(Plugin):
|
|
|
69
69
|
"""Returns True if, and only if, the object is compatible with this object type."""
|
|
70
70
|
pass
|
|
71
71
|
|
|
72
|
+
def authorization_export_behavior(self) -> Literal["transform", "manual", "unset"]:
|
|
73
|
+
"""Declares how the server should authorize the references this plugin exports to the client.
|
|
74
|
+
|
|
75
|
+
- ``"transform"``: the server applies the authorization transform to every reference this plugin exports,
|
|
76
|
+
in the requesting user's context. Use this when the plugin does not apply authorization itself.
|
|
77
|
+
- ``"manual"``: the plugin takes responsibility for authorizing its own exported references (for example by
|
|
78
|
+
calling ``deephaven.plugin_authorization.transform`` before passing objects to ``on_data``). The server
|
|
79
|
+
does not additionally transform them.
|
|
80
|
+
- ``"unset"`` (default): the plugin makes no declaration. The server's
|
|
81
|
+
``PluginReferenceAuthorization.failClosed`` policy determines the effective behavior.
|
|
82
|
+
|
|
83
|
+
Returns:
|
|
84
|
+
One of ``"transform"``, ``"manual"``, or ``"unset"``.
|
|
85
|
+
"""
|
|
86
|
+
return "unset"
|
|
87
|
+
|
|
72
88
|
|
|
73
89
|
class BidirectionalObjectType(ObjectType):
|
|
74
90
|
"""Base class for an object type that can continue to send responses to the client, or receive requests
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: deephaven-plugin
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Deephaven Plugin interface
|
|
5
5
|
Home-page: https://github.com/deephaven/deephaven-plugin
|
|
6
6
|
Author: Devin Smith
|
|
@@ -17,6 +17,7 @@ Classifier: Development Status :: 3 - Alpha
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: importlib-metadata>=3.6; python_version < "3.8"
|
|
20
|
+
Dynamic: license-file
|
|
20
21
|
|
|
21
22
|
# Deephaven Plugin interface
|
|
22
23
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/requires.txt
RENAMED
|
File without changes
|
{deephaven-plugin-0.6.0 → deephaven_plugin-0.7.0}/src/deephaven_plugin.egg-info/top_level.txt
RENAMED
|
File without changes
|