h2o-wave 1.3.4__py3-none-any.whl → 1.4.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.
Potentially problematic release.
This version of h2o-wave might be problematic. Click here for more details.
- h2o_wave/cli.py +2 -0
- h2o_wave/server.py +3 -0
- h2o_wave/types.py +30 -0
- h2o_wave/ui.py +9 -0
- h2o_wave/version.py +1 -1
- {h2o_wave-1.3.4.dist-info → h2o_wave-1.4.0.dist-info}/METADATA +1 -1
- {h2o_wave-1.3.4.dist-info → h2o_wave-1.4.0.dist-info}/RECORD +10 -10
- {h2o_wave-1.3.4.dist-info → h2o_wave-1.4.0.dist-info}/WHEEL +0 -0
- {h2o_wave-1.3.4.dist-info → h2o_wave-1.4.0.dist-info}/entry_points.txt +0 -0
- {h2o_wave-1.3.4.dist-info → h2o_wave-1.4.0.dist-info}/licenses/LICENSE +0 -0
h2o_wave/cli.py
CHANGED
|
@@ -178,6 +178,8 @@ def run(app: str, no_reload: bool, no_autostart: bool):
|
|
|
178
178
|
|
|
179
179
|
if not os.environ.get('H2O_WAVE_WAVED_DIR') and is_auto_started:
|
|
180
180
|
os.environ['H2O_WAVE_WAVED_DIR'] = sys.exec_prefix
|
|
181
|
+
if not no_reload:
|
|
182
|
+
os.environ['__H2O_WAVE_DEV_MODE'] = '1'
|
|
181
183
|
reload_exclude = os.environ.get('H2O_WAVE_RELOAD_EXCLUDE', None)
|
|
182
184
|
if reload_exclude:
|
|
183
185
|
reload_exclude = reload_exclude.split(os.pathsep)
|
h2o_wave/server.py
CHANGED
h2o_wave/types.py
CHANGED
|
@@ -8984,12 +8984,18 @@ class GraphicsCard:
|
|
|
8984
8984
|
scene: Optional[PackedData] = None,
|
|
8985
8985
|
width: Optional[str] = None,
|
|
8986
8986
|
height: Optional[str] = None,
|
|
8987
|
+
image: Optional[str] = None,
|
|
8988
|
+
image_path: Optional[str] = None,
|
|
8989
|
+
image_type: Optional[str] = None,
|
|
8987
8990
|
commands: Optional[List[Command]] = None,
|
|
8988
8991
|
):
|
|
8989
8992
|
_guard_scalar('GraphicsCard.box', box, (str,), False, False, False)
|
|
8990
8993
|
_guard_scalar('GraphicsCard.view_box', view_box, (str,), False, False, False)
|
|
8991
8994
|
_guard_scalar('GraphicsCard.width', width, (str,), False, True, False)
|
|
8992
8995
|
_guard_scalar('GraphicsCard.height', height, (str,), False, True, False)
|
|
8996
|
+
_guard_scalar('GraphicsCard.image', image, (str,), False, True, False)
|
|
8997
|
+
_guard_scalar('GraphicsCard.image_path', image_path, (str,), False, True, False)
|
|
8998
|
+
_guard_scalar('GraphicsCard.image_type', image_type, (str,), False, True, False)
|
|
8993
8999
|
_guard_vector('GraphicsCard.commands', commands, (Command,), False, True, False)
|
|
8994
9000
|
self.box = box
|
|
8995
9001
|
"""A string indicating how to place this component on the page."""
|
|
@@ -9003,6 +9009,12 @@ class GraphicsCard:
|
|
|
9003
9009
|
"""The displayed width of the rectangular viewport. (Not the width of its coordinate system.)"""
|
|
9004
9010
|
self.height = height
|
|
9005
9011
|
"""The displayed height of the rectangular viewport. (Not the height of its coordinate system.)"""
|
|
9012
|
+
self.image = image
|
|
9013
|
+
"""Background image data, base64-encoded."""
|
|
9014
|
+
self.image_path = image_path
|
|
9015
|
+
"""The path or URL or data URL of the background image, e.g. `/foo.png` or `http://example.com/foo.png` or `data:image/png;base64,???`."""
|
|
9016
|
+
self.image_type = image_type
|
|
9017
|
+
"""The background image MIME subtype. One of `apng`, `bmp`, `gif`, `x-icon`, `jpeg`, `png`, `webp`. Required only if `image` is set."""
|
|
9006
9018
|
self.commands = commands
|
|
9007
9019
|
"""Contextual menu commands for this component."""
|
|
9008
9020
|
|
|
@@ -9012,6 +9024,9 @@ class GraphicsCard:
|
|
|
9012
9024
|
_guard_scalar('GraphicsCard.view_box', self.view_box, (str,), False, False, False)
|
|
9013
9025
|
_guard_scalar('GraphicsCard.width', self.width, (str,), False, True, False)
|
|
9014
9026
|
_guard_scalar('GraphicsCard.height', self.height, (str,), False, True, False)
|
|
9027
|
+
_guard_scalar('GraphicsCard.image', self.image, (str,), False, True, False)
|
|
9028
|
+
_guard_scalar('GraphicsCard.image_path', self.image_path, (str,), False, True, False)
|
|
9029
|
+
_guard_scalar('GraphicsCard.image_type', self.image_type, (str,), False, True, False)
|
|
9015
9030
|
_guard_vector('GraphicsCard.commands', self.commands, (Command,), False, True, False)
|
|
9016
9031
|
return _dump(
|
|
9017
9032
|
view='graphics',
|
|
@@ -9021,6 +9036,9 @@ class GraphicsCard:
|
|
|
9021
9036
|
scene=self.scene,
|
|
9022
9037
|
width=self.width,
|
|
9023
9038
|
height=self.height,
|
|
9039
|
+
image=self.image,
|
|
9040
|
+
image_path=self.image_path,
|
|
9041
|
+
image_type=self.image_type,
|
|
9024
9042
|
commands=None if self.commands is None else [__e.dump() for __e in self.commands],
|
|
9025
9043
|
)
|
|
9026
9044
|
|
|
@@ -9037,6 +9055,12 @@ class GraphicsCard:
|
|
|
9037
9055
|
_guard_scalar('GraphicsCard.width', __d_width, (str,), False, True, False)
|
|
9038
9056
|
__d_height: Any = __d.get('height')
|
|
9039
9057
|
_guard_scalar('GraphicsCard.height', __d_height, (str,), False, True, False)
|
|
9058
|
+
__d_image: Any = __d.get('image')
|
|
9059
|
+
_guard_scalar('GraphicsCard.image', __d_image, (str,), False, True, False)
|
|
9060
|
+
__d_image_path: Any = __d.get('image_path')
|
|
9061
|
+
_guard_scalar('GraphicsCard.image_path', __d_image_path, (str,), False, True, False)
|
|
9062
|
+
__d_image_type: Any = __d.get('image_type')
|
|
9063
|
+
_guard_scalar('GraphicsCard.image_type', __d_image_type, (str,), False, True, False)
|
|
9040
9064
|
__d_commands: Any = __d.get('commands')
|
|
9041
9065
|
_guard_vector('GraphicsCard.commands', __d_commands, (dict,), False, True, False)
|
|
9042
9066
|
box: str = __d_box
|
|
@@ -9045,6 +9069,9 @@ class GraphicsCard:
|
|
|
9045
9069
|
scene: Optional[PackedData] = __d_scene
|
|
9046
9070
|
width: Optional[str] = __d_width
|
|
9047
9071
|
height: Optional[str] = __d_height
|
|
9072
|
+
image: Optional[str] = __d_image
|
|
9073
|
+
image_path: Optional[str] = __d_image_path
|
|
9074
|
+
image_type: Optional[str] = __d_image_type
|
|
9048
9075
|
commands: Optional[List[Command]] = None if __d_commands is None else [Command.load(__e) for __e in __d_commands]
|
|
9049
9076
|
return GraphicsCard(
|
|
9050
9077
|
box,
|
|
@@ -9053,6 +9080,9 @@ class GraphicsCard:
|
|
|
9053
9080
|
scene,
|
|
9054
9081
|
width,
|
|
9055
9082
|
height,
|
|
9083
|
+
image,
|
|
9084
|
+
image_path,
|
|
9085
|
+
image_type,
|
|
9056
9086
|
commands,
|
|
9057
9087
|
)
|
|
9058
9088
|
|
h2o_wave/ui.py
CHANGED
|
@@ -3121,6 +3121,9 @@ def graphics_card(
|
|
|
3121
3121
|
scene: Optional[PackedData] = None,
|
|
3122
3122
|
width: Optional[str] = None,
|
|
3123
3123
|
height: Optional[str] = None,
|
|
3124
|
+
image: Optional[str] = None,
|
|
3125
|
+
image_path: Optional[str] = None,
|
|
3126
|
+
image_type: Optional[str] = None,
|
|
3124
3127
|
commands: Optional[List[Command]] = None,
|
|
3125
3128
|
) -> GraphicsCard:
|
|
3126
3129
|
"""Create a card for displaying vector graphics.
|
|
@@ -3132,6 +3135,9 @@ def graphics_card(
|
|
|
3132
3135
|
scene: Foreground layer for rendering dynamic SVG elements.
|
|
3133
3136
|
width: The displayed width of the rectangular viewport. (Not the width of its coordinate system.)
|
|
3134
3137
|
height: The displayed height of the rectangular viewport. (Not the height of its coordinate system.)
|
|
3138
|
+
image: Background image data, base64-encoded.
|
|
3139
|
+
image_path: The path or URL or data URL of the background image, e.g. `/foo.png` or `http://example.com/foo.png` or `data:image/png;base64,???`.
|
|
3140
|
+
image_type: The background image MIME subtype. One of `apng`, `bmp`, `gif`, `x-icon`, `jpeg`, `png`, `webp`. Required only if `image` is set.
|
|
3135
3141
|
commands: Contextual menu commands for this component.
|
|
3136
3142
|
Returns:
|
|
3137
3143
|
A `h2o_wave.types.GraphicsCard` instance.
|
|
@@ -3143,6 +3149,9 @@ def graphics_card(
|
|
|
3143
3149
|
scene,
|
|
3144
3150
|
width,
|
|
3145
3151
|
height,
|
|
3152
|
+
image,
|
|
3153
|
+
image_path,
|
|
3154
|
+
image_type,
|
|
3146
3155
|
commands,
|
|
3147
3156
|
)
|
|
3148
3157
|
|
h2o_wave/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '1.
|
|
1
|
+
__version__ = '1.4.0'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
h2o_wave/__init__.py,sha256=XIclw-HLtXgr0wNf5eQpkh6ZiqD9QAoiS-vZhp3IR5k,1674
|
|
2
2
|
h2o_wave/__main__.py,sha256=MoNOW43ppIqCdY3iq0n25Q3SKLyk8Igg5fD_sSROK4c,638
|
|
3
|
-
h2o_wave/cli.py,sha256=
|
|
3
|
+
h2o_wave/cli.py,sha256=5pIWZe-lRNmE1QUc94mk4XLLaQquvnCWwSs4qMgO3p4,13681
|
|
4
4
|
h2o_wave/core.py,sha256=whFb-Z2wokNXe_39I8aL3i7JOx6eczRfWOkn5wb_YwM,39087
|
|
5
5
|
h2o_wave/db.py,sha256=H3W_EyMfnwr4UjqPVoAsE19O2QzY1ptIYGMOqU0YUQo,7489
|
|
6
6
|
h2o_wave/graphics.py,sha256=HLYrX-lwsMKbyLmy2ClG5L46DA2_hSCEPTsv0gPVoyg,25866
|
|
@@ -8,15 +8,15 @@ h2o_wave/ide.py,sha256=wAJjfEI1ekQrL455FGRVeNi3KiH6ELgsG3qm31Q-kRs,6810
|
|
|
8
8
|
h2o_wave/metadata.py,sha256=d8FrJ-nQhBIvntA2W9VVZ0-lxEE_uy85ShxCC_FFDEs,82
|
|
9
9
|
h2o_wave/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
h2o_wave/routing.py,sha256=de8GVfUAb6bwFXtsWj6NXmjMVGELknlZb03F-R4ManY,10592
|
|
11
|
-
h2o_wave/server.py,sha256=
|
|
11
|
+
h2o_wave/server.py,sha256=nkCbmUtT3LvNe54ldN75nWprXn9y9BguH4Fqc8khx84,17974
|
|
12
12
|
h2o_wave/share.py,sha256=2zgywet8540O6xM-JD3po1glyP2PBJ3lIxaWBJbQvtQ,1164
|
|
13
13
|
h2o_wave/test.py,sha256=hF_fS5e25bACnzENjpDrikv7nPOs0iENh4MuXX9BaVA,2738
|
|
14
|
-
h2o_wave/types.py,sha256=
|
|
15
|
-
h2o_wave/ui.py,sha256=
|
|
14
|
+
h2o_wave/types.py,sha256=BJ0fQaay4OydjNtgdfhfBV7OeIVcIf-C5tVvJ7C0b8Y,659661
|
|
15
|
+
h2o_wave/ui.py,sha256=oAeKO5Ec128Eo9s4Mtdv1E0QgQv2_O2pRkQ3Sb8oBe8,172281
|
|
16
16
|
h2o_wave/ui_ext.py,sha256=zx_2Ec2-p_ztm8brfVaVF0fTQWVDrb_YxcGfVb-wA10,2325
|
|
17
|
-
h2o_wave/version.py,sha256=
|
|
18
|
-
h2o_wave-1.
|
|
19
|
-
h2o_wave-1.
|
|
20
|
-
h2o_wave-1.
|
|
21
|
-
h2o_wave-1.
|
|
22
|
-
h2o_wave-1.
|
|
17
|
+
h2o_wave/version.py,sha256=EyMGX1ADFzN6XVXHWbJUtKPONYKeFkvWoKIFPDDB2I8,22
|
|
18
|
+
h2o_wave-1.4.0.dist-info/METADATA,sha256=31B32gFSe0sQ0ZFepDwwsLndh1C9UxVz1Iqzrd168oU,2907
|
|
19
|
+
h2o_wave-1.4.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
20
|
+
h2o_wave-1.4.0.dist-info/entry_points.txt,sha256=kFeXNqSZlW1_H7YcRdSOhz5V00F4vhDQ0NuDuvRwLGw,43
|
|
21
|
+
h2o_wave-1.4.0.dist-info/licenses/LICENSE,sha256=hpuFayniDwysSKD0tHGELH2KJDVyhUrKS29torRIpqY,53
|
|
22
|
+
h2o_wave-1.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|