vuer 0.0.31rc1__py3-none-any.whl → 0.0.31rc2__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 vuer might be problematic. Click here for more details.

Binary file
@@ -216,7 +216,7 @@ class Image(Element):
216
216
  data: Union[str, np.ndarray, pil_image.Image] = None,
217
217
  *,
218
218
  src: Union[str, bytes] = None,
219
- format: Literal["png", "jpg", "b64png", "b64jpg"] = "png",
219
+ format: Literal["png", "jpeg", "b64png", "b64jpeg"] = "png",
220
220
  quality: int = None,
221
221
  **kwargs,
222
222
  ):
vuer/serdes.py CHANGED
@@ -41,7 +41,7 @@ def serializer(data):
41
41
  # # raise NotImplementedError(f"Cannot serialize {data}")
42
42
 
43
43
 
44
- def jpg(image, quality: int = 90):
44
+ def jpeg(image, quality: int = 90):
45
45
  """
46
46
  base64 encode the image into a string, using JPEG encoding
47
47
 
@@ -65,7 +65,7 @@ def png(image):
65
65
  return buff.getbuffer().tobytes()
66
66
 
67
67
 
68
- def b64jpg(image, quality: int = 90):
68
+ def b64jpeg(image, quality: int = 90):
69
69
  """
70
70
  base64 encode the image into a string, using JPEG encoding
71
71
 
@@ -92,8 +92,8 @@ def b64png(image):
92
92
 
93
93
 
94
94
  IMAGE_FORMATS = {
95
- "jpg": jpg,
95
+ "jpeg": jpeg,
96
96
  "png": png,
97
- "b64jpg": b64jpg,
97
+ "b64jpeg": b64jpeg,
98
98
  "b64png": b64png,
99
99
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: vuer
3
- Version: 0.0.31rc1
3
+ Version: 0.0.31rc2
4
4
  Home-page: https://github.com/geyang/vuer
5
5
  Author: Ge Yang<ge.ike.yang@gmail.com>
6
6
  Author-email: ge.ike.yang@gmail.com
@@ -2,14 +2,14 @@ vuer/__init__.py,sha256=kbjORSc64WWVHcx3eJB1wnCzhIF76eX5g-JAXYEDM4Q,519
2
2
  vuer/base.py,sha256=wzJoR57hjRreMBPR2zCqARhap2NF_dnizGouKaOMiog,4224
3
3
  vuer/events.py,sha256=8AAzkfbm5jHkeMh17Z57n8YTxF4mheWC3Qbya4XkQSc,7291
4
4
  vuer/schemas.py,sha256=aZOocE02gO43SLLfeYSxxac0x38TmyTcfs_iFh5hsJ4,18152
5
- vuer/serdes.py,sha256=gD2iA9Yypu1QjocneOT3Nc0y6q_mdHn9zW1ko5j3I7c,2600
5
+ vuer/serdes.py,sha256=GcUTcNwFj2rd-H9Konnud3w1hs7_ACdKzhDuHbnOaB0,2606
6
6
  vuer/server.py,sha256=d1MgXCcs7WCG87uTUcFezW4UKxQp3nTMzWeDrONHjg4,23553
7
7
  vuer/types.py,sha256=N2KLa0fl6z8Jm6cJwZoD8Vqrins_AayG5BCGk1p3Eek,1279
8
8
  vuer/__pycache__/__init__.cpython-38.pyc,sha256=5iTFXy2ivwedwlehtJwBje7Bh3j86bu9TZh_waR8kvs,644
9
9
  vuer/__pycache__/base.cpython-38.pyc,sha256=0U6qDasrEqc8tsLvlmw5grPX_htqPxbmQpZ5R760Rso,4768
10
10
  vuer/__pycache__/events.cpython-38.pyc,sha256=zx3bXeJixqOyCFe2nA7qpq6jiCJ49kRaXO-xONGUyeQ,9616
11
11
  vuer/__pycache__/schemas.cpython-38.pyc,sha256=hvY9Aak8zE-zKcWiwuNe6DghOw9qH_zSe_FtkBOAPPk,23234
12
- vuer/__pycache__/serdes.cpython-38.pyc,sha256=GncycLg8qwrlKR-X5el9txThHkY_zqejmZlpQKAeJnA,2253
12
+ vuer/__pycache__/serdes.cpython-38.pyc,sha256=_mtV9NhQ05aE9_QVH-oPd0TPyu5rLf9WpxhjUB_Uo1E,2255
13
13
  vuer/__pycache__/server.cpython-38.pyc,sha256=rlfXkgvQGNT04X_p_s1oZPIsSauNVA66eL9NRjWOMJQ,21559
14
14
  vuer/__pycache__/types.cpython-38.pyc,sha256=IhlXtkT-XWM0V1420FDuoqIYnpvRvekYVkGqEK7fAV8,1819
15
15
  vuer/addons/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -111,15 +111,15 @@ vuer/client_build/hands/index.html,sha256=E18xQ0UCKT2KP3w6O11UB0VUiTWbd6Og4ibXNr
111
111
  vuer/client_build/hands/index.pageContext.json,sha256=nRC_8Jo3t6gqQUHn2FDfo6cPOJPMonkkWWBfoBG1wzI,276
112
112
  vuer/schemas/__init__.py,sha256=ZI6UyeLZXqJbHmp6LiE3Q3mHvt1zeV-SJmmcqq-wBZE,94
113
113
  vuer/schemas/drei_components.py,sha256=U9svEOnNprhZaobLagaFnqEtZxo5hiriSqjDnvQutoA,6989
114
- vuer/schemas/html_components.py,sha256=At6DUVyxXGJRRcI3I4fdNasKHw97kDY-9CwRZsH6vZk,6757
114
+ vuer/schemas/html_components.py,sha256=28KuxiSoLi0W7LLK81QqyZbBQ6IsK5HyQqWN86ZlUuo,6759
115
115
  vuer/schemas/scene_components.py,sha256=-4EqZSpDbv_EOCZarPgqSwxR1cAnjLKX3rP8f1Db1X0,18902
116
116
  vuer/schemas/__pycache__/__init__.cpython-38.pyc,sha256=NRnVrpIDBKne93xOUY1-WpavCG7vwYiqU3VDTEEwuUE,221
117
117
  vuer/schemas/__pycache__/drei_components.cpython-38.pyc,sha256=g_ufcKxf-XKfZLdUV-HqKnjIrgxGWFv51aHLWQgH-ws,7712
118
- vuer/schemas/__pycache__/html_components.cpython-38.pyc,sha256=vvQM_hls_jCR_XhTH-4wowWBYsomuRBwaP3L63KjC7U,8712
118
+ vuer/schemas/__pycache__/html_components.cpython-38.pyc,sha256=xJFawDLPt9TkpYDw5mL8RQwy-0RQ0ZxyLlBGoPkdWoQ,8745
119
119
  vuer/schemas/__pycache__/scene_components.cpython-38.pyc,sha256=FCBjSZs-lX5YvhcL3K0s_T_oz2Fm8NAdd-XsPoXQc9s,22109
120
- vuer-0.0.31rc1.dist-info/LICENSE,sha256=MGF-inVBUaGe2mEjqT0g6XsHIXwoNXgNHqD7Z1MzR0k,1063
121
- vuer-0.0.31rc1.dist-info/METADATA,sha256=Lg1Ru6QCfCc7ixNH2nhhs8zmlXqW60eSdgTt8rnYyH8,5349
122
- vuer-0.0.31rc1.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
123
- vuer-0.0.31rc1.dist-info/entry_points.txt,sha256=J_NM6fbpipmD9oP7cdxd1UyBR8mVEQVx0xjlE_56yss,41
124
- vuer-0.0.31rc1.dist-info/top_level.txt,sha256=ermmVkwvGFAK4gfSgDIwOmKpxwpqNt-oo7gVQQUSHok,5
125
- vuer-0.0.31rc1.dist-info/RECORD,,
120
+ vuer-0.0.31rc2.dist-info/LICENSE,sha256=MGF-inVBUaGe2mEjqT0g6XsHIXwoNXgNHqD7Z1MzR0k,1063
121
+ vuer-0.0.31rc2.dist-info/METADATA,sha256=SFzCxh8YAa74V2Sgz_rQsqriwDT80fMzjNdMYo_m86c,5349
122
+ vuer-0.0.31rc2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
123
+ vuer-0.0.31rc2.dist-info/entry_points.txt,sha256=J_NM6fbpipmD9oP7cdxd1UyBR8mVEQVx0xjlE_56yss,41
124
+ vuer-0.0.31rc2.dist-info/top_level.txt,sha256=ermmVkwvGFAK4gfSgDIwOmKpxwpqNt-oo7gVQQUSHok,5
125
+ vuer-0.0.31rc2.dist-info/RECORD,,