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.
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/PKG-INFO +1 -1
- hypha_rpc-0.20.87/hypha_rpc/VERSION +3 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/PKG-INFO +1 -1
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/pyproject.toml +1 -1
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_websocket_rpc.py +19 -3
- hypha_rpc-0.20.86/hypha_rpc/VERSION +0 -3
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/MANIFEST.in +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/README.md +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/__init__.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/pyodide_sse.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/pyodide_websocket.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/rpc.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/sync.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/__init__.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/launch.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/mcp.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/pydantic.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/schema.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/utils/serve.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/webrtc_client.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc/websocket_client.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/SOURCES.txt +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/dependency_links.txt +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/requires.txt +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/hypha_rpc.egg-info/top_level.txt +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/setup.cfg +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_mcp.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_reconnection_runner.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_reconnection_stability.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_schema.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_server_compatibility.py +0 -0
- {hypha_rpc-0.20.86 → hypha_rpc-0.20.87}/tests/test_utils.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hypha_rpc"
|
|
7
|
-
version = "0.20.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|