hypha-rpc 0.20.88__tar.gz → 0.20.89__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 (34) hide show
  1. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/PKG-INFO +1 -1
  2. hypha_rpc-0.20.89/hypha_rpc/VERSION +3 -0
  3. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/http_client.py +11 -1
  4. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc.egg-info/PKG-INFO +1 -1
  5. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/pyproject.toml +1 -1
  6. hypha_rpc-0.20.88/hypha_rpc/VERSION +0 -3
  7. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/MANIFEST.in +0 -0
  8. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/README.md +0 -0
  9. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/__init__.py +0 -0
  10. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/client.py +0 -0
  11. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/pyodide_sse.py +0 -0
  12. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/pyodide_websocket.py +0 -0
  13. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/rpc.py +0 -0
  14. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/sync.py +0 -0
  15. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/__init__.py +0 -0
  16. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/launch.py +0 -0
  17. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/mcp.py +0 -0
  18. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/pydantic.py +0 -0
  19. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/schema.py +0 -0
  20. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/utils/serve.py +0 -0
  21. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/webrtc_client.py +0 -0
  22. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc/websocket_client.py +0 -0
  23. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc.egg-info/SOURCES.txt +0 -0
  24. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc.egg-info/dependency_links.txt +0 -0
  25. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc.egg-info/requires.txt +0 -0
  26. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/hypha_rpc.egg-info/top_level.txt +0 -0
  27. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/setup.cfg +0 -0
  28. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_mcp.py +0 -0
  29. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_reconnection_runner.py +0 -0
  30. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_reconnection_stability.py +0 -0
  31. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_schema.py +0 -0
  32. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_server_compatibility.py +0 -0
  33. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_utils.py +0 -0
  34. {hypha_rpc-0.20.88 → hypha_rpc-0.20.89}/tests/test_websocket_rpc.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha_rpc
3
- Version: 0.20.88
3
+ Version: 0.20.89
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.89"
3
+ }
@@ -127,7 +127,11 @@ class HTTPStreamingRPCConnection:
127
127
  return headers
128
128
 
129
129
  async def _create_http_client(self) -> httpx.AsyncClient:
130
- """Create configured HTTP client."""
130
+ """Create configured HTTP client with connection pooling.
131
+
132
+ Connection pooling improves performance by reusing TCP connections
133
+ for multiple requests, reducing connection overhead.
134
+ """
131
135
  verify = True
132
136
  if self._ssl is False:
133
137
  verify = False
@@ -137,6 +141,12 @@ class HTTPStreamingRPCConnection:
137
141
  return httpx.AsyncClient(
138
142
  timeout=httpx.Timeout(self._timeout, connect=30.0),
139
143
  verify=verify,
144
+ # Connection pooling for better performance with many requests
145
+ limits=httpx.Limits(
146
+ max_connections=100, # Max total connections
147
+ max_keepalive_connections=20, # Keep-alive connections for reuse
148
+ keepalive_expiry=30.0, # Keep connections alive for 30 seconds
149
+ ),
140
150
  )
141
151
 
142
152
  async def open(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypha_rpc
3
- Version: 0.20.88
3
+ Version: 0.20.89
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.88"
7
+ version = "0.20.89"
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"
@@ -1,3 +0,0 @@
1
- {
2
- "version": "0.20.88"
3
- }
File without changes
File without changes
File without changes