hyper-sdk 2.12.1__tar.gz → 2.12.2__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.
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/PKG-INFO +1 -1
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/session.py +1 -1
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/session_async.py +2 -2
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk.egg-info/PKG-INFO +1 -1
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/pyproject.toml +1 -1
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/LICENSE +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/README.md +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai/script_path.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/akamai_input.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/datadome/parse.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/datadome_input.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/incapsula/dynamic.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/incapsula_input.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/kasada/parse.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/kasada_input.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/shared.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk/trustdecision_input.py +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-2.12.1 → hyper_sdk-2.12.2}/setup.cfg +0 -0
|
@@ -21,7 +21,7 @@ class Session:
|
|
|
21
21
|
self.jwt_key = jwt_key
|
|
22
22
|
self.app_key = app_key
|
|
23
23
|
self.app_secret = app_secret
|
|
24
|
-
self.client = httpx.Client() if client is None else client
|
|
24
|
+
self.client = httpx.Client(timeout=httpx.Timeout(30.0)) if client is None else client
|
|
25
25
|
self._owns_client = client is None
|
|
26
26
|
self.compression = compression
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ class SessionAsync:
|
|
|
27
27
|
|
|
28
28
|
async def __aenter__(self):
|
|
29
29
|
if self._owns_client:
|
|
30
|
-
self.client = httpx.AsyncClient(http2=True)
|
|
30
|
+
self.client = httpx.AsyncClient(http2=True, timeout=httpx.Timeout(30.0))
|
|
31
31
|
return self
|
|
32
32
|
|
|
33
33
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
@@ -37,7 +37,7 @@ class SessionAsync:
|
|
|
37
37
|
async def ensure_client(self):
|
|
38
38
|
"""Ensure we have an active client session."""
|
|
39
39
|
if self.client is None:
|
|
40
|
-
self.client = httpx.AsyncClient(http2=True)
|
|
40
|
+
self.client = httpx.AsyncClient(http2=True, timeout=httpx.Timeout(30.0))
|
|
41
41
|
self._owns_client = True
|
|
42
42
|
|
|
43
43
|
async def generate_sensor_data(self, input_data: SensorInput) -> Tuple[str, str]:
|
|
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
|