vuer 0.0.44__py3-none-any.whl → 0.0.46__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.

Files changed (56) hide show
  1. vuer/__pycache__/__init__.cpython-311.pyc +0 -0
  2. vuer/__pycache__/base.cpython-311.pyc +0 -0
  3. vuer/__pycache__/base.cpython-38.pyc +0 -0
  4. vuer/__pycache__/server.cpython-311.pyc +0 -0
  5. vuer/__pycache__/server.cpython-38.pyc +0 -0
  6. vuer/base.py +7 -7
  7. vuer/client_build/404.html +3 -3
  8. vuer/client_build/assets/chunks/chunk-18G0VHqw.js +2 -0
  9. vuer/client_build/assets/chunks/chunk-18G0VHqw.js.map +1 -0
  10. vuer/client_build/assets/chunks/chunk-Bc6jPe19.js +283 -0
  11. vuer/client_build/assets/chunks/chunk-Bc6jPe19.js.map +1 -0
  12. vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js +2 -0
  13. vuer/client_build/assets/chunks/chunk-Bkj5sU0H.js.map +1 -0
  14. vuer/client_build/assets/chunks/chunk-CZzxeY6d.js +2 -0
  15. vuer/client_build/assets/chunks/chunk-CZzxeY6d.js.map +1 -0
  16. vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js +16 -0
  17. vuer/client_build/assets/chunks/chunk-Cg0OFbR3.js.map +1 -0
  18. vuer/client_build/assets/chunks/chunk-CgL2fCVp.js +8555 -0
  19. vuer/client_build/assets/chunks/chunk-CgL2fCVp.js.map +1 -0
  20. vuer/client_build/assets/chunks/chunk-Cl2arkqa.js +7736 -0
  21. vuer/client_build/assets/chunks/chunk-Cl2arkqa.js.map +1 -0
  22. vuer/client_build/assets/chunks/chunk-CmZvw6P9.js +2 -0
  23. vuer/client_build/assets/chunks/chunk-CmZvw6P9.js.map +1 -0
  24. vuer/client_build/assets/chunks/chunk-CwRl4dQC.js +3 -0
  25. vuer/client_build/assets/chunks/chunk-CwRl4dQC.js.map +1 -0
  26. vuer/client_build/assets/chunks/chunk-DXO4-vDe.js +2 -0
  27. vuer/client_build/assets/chunks/chunk-DXO4-vDe.js.map +1 -0
  28. vuer/client_build/assets/chunks/chunk-IuGwgvtb.js +102 -0
  29. vuer/client_build/assets/chunks/chunk-IuGwgvtb.js.map +1 -0
  30. vuer/client_build/assets/chunks/chunk-WT4fnZC5.js +53 -0
  31. vuer/client_build/assets/chunks/chunk-WT4fnZC5.js.map +1 -0
  32. vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js +5 -0
  33. vuer/client_build/assets/entries/entry-client-routing.DygxbdMN.js.map +1 -0
  34. vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js +2 -0
  35. vuer/client_build/assets/entries/pages_editor.nNsIXIzJ.js.map +1 -0
  36. vuer/client_build/assets/entries/pages_error.BNv2Fuig.js +2 -0
  37. vuer/client_build/assets/entries/pages_error.BNv2Fuig.js.map +1 -0
  38. vuer/client_build/assets/entries/pages_index.D1BavadI.js +2 -0
  39. vuer/client_build/assets/entries/pages_index.D1BavadI.js.map +1 -0
  40. vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js +2 -0
  41. vuer/client_build/assets/entries/pages_simple.DYWd0uF8.js.map +1 -0
  42. vuer/client_build/editor/index.html +5 -5
  43. vuer/client_build/index.html +5 -5
  44. vuer/client_build/simple/index.html +4 -4
  45. vuer/schemas/__pycache__/html_components.cpython-311.pyc +0 -0
  46. vuer/schemas/__pycache__/physics_components.cpython-311.pyc +0 -0
  47. vuer/schemas/__pycache__/physics_components.cpython-38.pyc +0 -0
  48. vuer/schemas/__pycache__/scene_components.cpython-311.pyc +0 -0
  49. vuer/schemas/scene_components.py +11 -10
  50. vuer/server.py +36 -16
  51. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/METADATA +33 -30
  52. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/RECORD +56 -22
  53. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/WHEEL +1 -1
  54. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/LICENSE +0 -0
  55. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/entry_points.txt +0 -0
  56. {vuer-0.0.44.dist-info → vuer-0.0.46.dist-info}/top_level.txt +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
vuer/base.py CHANGED
@@ -84,7 +84,7 @@ class Server:
84
84
 
85
85
  self.cors_context = aiohttp_cors.setup(self.app, defaults=cors_config)
86
86
 
87
- def _route(
87
+ def _add_route(
88
88
  self,
89
89
  path: str,
90
90
  handler: callable,
@@ -97,20 +97,20 @@ class Server:
97
97
  ws_handler = partial(
98
98
  websocket_handler, handler=handler, max_msg_size=self.WEBSOCKET_MAX_SIZE
99
99
  )
100
- self._route(path, ws_handler)
100
+ self._add_route(path, ws_handler)
101
101
 
102
102
  @staticmethod
103
103
  def _add_task(fn: Coroutine, name=None):
104
104
  loop = asyncio.get_running_loop()
105
105
  loop.create_task(fn, name=name)
106
106
 
107
- def _static(self, path, root):
107
+ def _add_static(self, path, root):
108
108
  _fn = partial(handle_file_request, root=root)
109
- self._route(f"{path}/{{filename:.*}}", _fn, method="GET")
109
+ self._add_route(f"{path}/{{filename:.*}}", _fn, method="GET")
110
110
 
111
111
  def _static_file(self, path, root, filename=None):
112
112
  _fn = partial(handle_file_request, root=root, filename=filename)
113
- self._route(f"{path}", _fn, method="GET")
113
+ self._add_route(f"{path}", _fn, method="GET")
114
114
 
115
115
  def run(self):
116
116
  async def init_server():
@@ -139,6 +139,6 @@ class Server:
139
139
 
140
140
  if __name__ == "__main__":
141
141
  app = Server()
142
- app._route("", websocket_handler)
143
- app._static("/static", handle_file_request, root=".")
142
+ app._add_route("", websocket_handler)
143
+ app._add_static("/static", handle_file_request, root=".")
144
144
  app.run()
@@ -7,9 +7,9 @@
7
7
  <body>
8
8
  <div id="react-root"><div id="react-root" style="padding:0;height:100%;width:100%"><div style="height:calc(100vh - 100px);display:flex;justify-content:center;align-items:center"><p style="font-size:1.3em">Page not found.</p></div></div></div>
9
9
  <script id="vike_pageContext" type="application/json">{"someAsyncProps":42,"abortReason":"!undefined","_urlRewrite":null,"_urlRedirect":"!undefined","abortStatusCode":"!undefined","_abortCall":"!undefined","_pageContextInitIsPassedToClient":"!undefined","_pageId":"/pages/_error","routeParams":{},"data":"!undefined","pageProps":{"is404":true},"is404":true,"_isServerSideError":"!undefined"}</script>
10
- <script src="/assets/entries/entry-client-routing.CMiNr7V6.js" type="module" async></script>
11
- <link rel="modulepreload" href="/assets/entries/pages_error.RAFftS_u.js" as="script" type="text/javascript">
12
- <link rel="modulepreload" href="/assets/chunks/chunk-2DjFd88E.js" as="script" type="text/javascript">
10
+ <script src="/assets/entries/entry-client-routing.DygxbdMN.js" type="module" async></script>
11
+ <link rel="modulepreload" href="/assets/entries/pages_error.BNv2Fuig.js" as="script" type="text/javascript">
12
+ <link rel="modulepreload" href="/assets/chunks/chunk-WT4fnZC5.js" as="script" type="text/javascript">
13
13
  <link rel="modulepreload" href="/assets/chunks/chunk-D7HrI6pR.js" as="script" type="text/javascript">
14
14
  </body>
15
15
  </html>