hypha-rpc 0.20.86__tar.gz → 0.20.87__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.
Files changed (32) hide show
  1. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/PKG-INFO +1 -1
  2. hypha_rpc-0.20.87/hypha_rpc/VERSION +3 -0
  3. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/PKG-INFO +1 -1
  4. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/pyproject.toml +1 -1
  5. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_websocket_rpc.py +19 -3
  6. hypha_rpc-0.20.86/hypha_rpc/VERSION +0 -3
  7. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/MANIFEST.in +0 -0
  8. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/README.md +0 -0
  9. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/__init__.py +0 -0
  10. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/pyodide_sse.py +0 -0
  11. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/pyodide_websocket.py +0 -0
  12. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/rpc.py +0 -0
  13. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/sync.py +0 -0
  14. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/__init__.py +0 -0
  15. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/launch.py +0 -0
  16. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/mcp.py +0 -0
  17. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/pydantic.py +0 -0
  18. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/schema.py +0 -0
  19. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/serve.py +0 -0
  20. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/webrtc_client.py +0 -0
  21. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/websocket_client.py +0 -0
  22. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/SOURCES.txt +0 -0
  23. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/dependency_links.txt +0 -0
  24. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/requires.txt +0 -0
  25. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/top_level.txt +0 -0
  26. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/setup.cfg +0 -0
  27. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_mcp.py +0 -0
  28. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_reconnection_runner.py +0 -0
  29. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_reconnection_stability.py +0 -0
  30. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_schema.py +0 -0
  31. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_server_compatibility.py +0 -0
  32. {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha_rpc
3
- Version: 0.20.86
3
+ Version: 0.20.87
4
4
  Summary: Hypha RPC client for connecting to Hypha server for data management and AI model serving
5
5
  Author-email: Wei Ouyang <oeway007@gmail.com>
6
6
  Requires-Python: >=3.9
@@ -0,0 +1,3 @@
1
+ {
2
+ "version": "0.20.87"
3
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha_rpc
3
- Version: 0.20.86
3
+ Version: 0.20.87
4
4
  Summary: Hypha RPC client for connecting to Hypha server for data management and AI model serving
5
5
  Author-email: Wei Ouyang <oeway007@gmail.com>
6
6
  Requires-Python: >=3.9
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hypha_rpc"
7
- version = "0.20.86"
7
+ version = "0.20.87"
8
8
  description = "Hypha RPC client for connecting to Hypha server for data management and AI model serving"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -143,7 +143,12 @@ async def test_service_with_builtin_key(websocket_server):
143
143
  @pytest.mark.asyncio
144
144
  async def test_login(websocket_server):
145
145
  """Test login to the server."""
146
- TOKEN = "sf31df234"
146
+ # First connect to server to generate a valid JWT token
147
+ api = await connect_to_server(
148
+ {"server_url": WS_SERVER_URL, "client_id": "login-test-client"}
149
+ )
150
+ TOKEN = await api.generate_token()
151
+ await api.disconnect()
147
152
 
148
153
  async def callback(context):
149
154
  print(f"By passing login: {context['login_url']}")
@@ -167,7 +172,12 @@ async def test_login(websocket_server):
167
172
 
168
173
  def test_login_sync(websocket_server):
169
174
  """Test login to the server."""
170
- TOKEN = "sf31df234"
175
+ # First connect to server to generate a valid JWT token
176
+ api = connect_to_server_sync(
177
+ {"server_url": WS_SERVER_URL, "client_id": "login-sync-test-client"}
178
+ )
179
+ TOKEN = api.generate_token()
180
+ api.disconnect()
171
181
 
172
182
  def callback(context):
173
183
  print(f"By passing login: {context['login_url']}")
@@ -189,7 +199,13 @@ def test_login_sync(websocket_server):
189
199
  @pytest.mark.asyncio
190
200
  async def test_login_with_additional_headers(websocket_server):
191
201
  """Test login with additional headers."""
192
- TOKEN = "sf31df234"
202
+ # First connect to server to generate a valid JWT token
203
+ api = await connect_to_server(
204
+ {"server_url": WS_SERVER_URL, "client_id": "login-headers-test-client"}
205
+ )
206
+ TOKEN = await api.generate_token()
207
+ await api.disconnect()
208
+
193
209
  additional_headers = {"X-Custom-Header": "test-value"}
194
210
 
195
211
  async def callback(context):
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.20.86"
3
- }
File without changes
File without changes
File without changes