hyper-sdk 0.11.3__tar.gz → 2.1.0__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-0.11.3 → hyper_sdk-2.1.0}/PKG-INFO +1 -1
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/session.py +11 -11
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk.egg-info/PKG-INFO +1 -1
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/pyproject.toml +1 -1
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/LICENSE +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/README.md +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai/script_path.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/akamai_input.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/datadome/parse.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/datadome_input.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/incapsula/dynamic.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/incapsula_input.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/kasada/parse.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk/kasada_input.py +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-0.11.3 → hyper_sdk-2.1.0}/setup.cfg +0 -0
|
@@ -28,7 +28,7 @@ class Session:
|
|
|
28
28
|
str: Sensor data as a string.
|
|
29
29
|
str: Context data as a string.
|
|
30
30
|
"""
|
|
31
|
-
sensor_endpoint = "https://akm.
|
|
31
|
+
sensor_endpoint = "https://akm.hypersolutions.co/v2/sensor"
|
|
32
32
|
if not self.api_key:
|
|
33
33
|
raise ValueError("Missing API key")
|
|
34
34
|
|
|
@@ -75,7 +75,7 @@ class Session:
|
|
|
75
75
|
Returns:
|
|
76
76
|
str: Sensor data as a string.
|
|
77
77
|
"""
|
|
78
|
-
sensor_endpoint = "https://akm.
|
|
78
|
+
sensor_endpoint = "https://akm.hypersolutions.co/sbsd"
|
|
79
79
|
return self._send_request(sensor_endpoint, {
|
|
80
80
|
'userAgent': input_data.user_agent,
|
|
81
81
|
'uuid': input_data.uuid,
|
|
@@ -96,7 +96,7 @@ class Session:
|
|
|
96
96
|
Returns:
|
|
97
97
|
str: Dynamic values as a string.
|
|
98
98
|
"""
|
|
99
|
-
sensor_endpoint = "https://akm.
|
|
99
|
+
sensor_endpoint = "https://akm.hypersolutions.co/v3dynamic"
|
|
100
100
|
return self._send_request(sensor_endpoint, {
|
|
101
101
|
'script': input_data.script,
|
|
102
102
|
})
|
|
@@ -112,7 +112,7 @@ class Session:
|
|
|
112
112
|
Returns:
|
|
113
113
|
str: Pixel data as a string.
|
|
114
114
|
"""
|
|
115
|
-
pixel_endpoint = "https://akm.
|
|
115
|
+
pixel_endpoint = "https://akm.hypersolutions.co/pixel"
|
|
116
116
|
return self._send_request(pixel_endpoint, {
|
|
117
117
|
'userAgent': input_data.user_agent,
|
|
118
118
|
'htmlVar': input_data.html_var,
|
|
@@ -137,7 +137,7 @@ class Session:
|
|
|
137
137
|
Raises:
|
|
138
138
|
ValueError: If the script attribute in input_data is empty.
|
|
139
139
|
"""
|
|
140
|
-
return self._send_request("https://incapsula.
|
|
140
|
+
return self._send_request("https://incapsula.hypersolutions.co/reese84/" + quote(site),
|
|
141
141
|
{
|
|
142
142
|
'userAgent': input_data.user_agent,
|
|
143
143
|
'acceptLanguage': input_data.acceptLanguage,
|
|
@@ -177,7 +177,7 @@ class Session:
|
|
|
177
177
|
signature = self.generate_signature()
|
|
178
178
|
headers['X-Signature'] = signature
|
|
179
179
|
|
|
180
|
-
response = self.client.post("https://incapsula.
|
|
180
|
+
response = self.client.post("https://incapsula.hypersolutions.co/utmvc", headers=headers, json={
|
|
181
181
|
'userAgent': input_data.user_agent,
|
|
182
182
|
'sessionIds': input_data.session_ids,
|
|
183
183
|
'script': input_data.script,
|
|
@@ -205,7 +205,7 @@ class Session:
|
|
|
205
205
|
Returns:
|
|
206
206
|
str: The x-kpsdk-cd value as a string.
|
|
207
207
|
"""
|
|
208
|
-
return self._send_request("https://kasada.
|
|
208
|
+
return self._send_request("https://kasada.hypersolutions.co/cd", input_data.to_dict())
|
|
209
209
|
|
|
210
210
|
def generate_kasada_payload(self, input_data: KasadaPayloadInput) -> tuple[str, dict]:
|
|
211
211
|
"""
|
|
@@ -230,7 +230,7 @@ class Session:
|
|
|
230
230
|
signature = self.generate_signature()
|
|
231
231
|
headers['X-Signature'] = signature
|
|
232
232
|
|
|
233
|
-
response = self.client.post("https://kasada.
|
|
233
|
+
response = self.client.post("https://kasada.hypersolutions.co/payload", headers=headers, json=input_data.to_dict())
|
|
234
234
|
|
|
235
235
|
response_data = response.json()
|
|
236
236
|
|
|
@@ -254,7 +254,7 @@ class Session:
|
|
|
254
254
|
- payload (str): The payload to post to /interstitial/
|
|
255
255
|
- headers (Dict[str, str]): The response headers
|
|
256
256
|
"""
|
|
257
|
-
return self._send_request_with_headers("https://datadome.
|
|
257
|
+
return self._send_request_with_headers("https://datadome.hypersolutions.co/interstitial", input_data.to_dict())
|
|
258
258
|
|
|
259
259
|
def generate_slider_payload(self, input_data: DataDomeSliderInput) -> Dict[str, Any]:
|
|
260
260
|
"""
|
|
@@ -268,7 +268,7 @@ class Session:
|
|
|
268
268
|
- payload (str): The URL to make a GET request to for a solved datadome cookie
|
|
269
269
|
- headers (Dict[str, str]): The response headers
|
|
270
270
|
"""
|
|
271
|
-
return self._send_request_with_headers("https://datadome.
|
|
271
|
+
return self._send_request_with_headers("https://datadome.hypersolutions.co/slider", input_data.to_dict())
|
|
272
272
|
|
|
273
273
|
def generate_tags_payload(self, input_data: DataDomeTagsInput) -> str:
|
|
274
274
|
"""
|
|
@@ -281,7 +281,7 @@ class Session:
|
|
|
281
281
|
Returns:
|
|
282
282
|
str: The tags payload.
|
|
283
283
|
"""
|
|
284
|
-
return self._send_request("https://datadome.
|
|
284
|
+
return self._send_request("https://datadome.hypersolutions.co/tags", input_data.to_dict())
|
|
285
285
|
|
|
286
286
|
def generate_signature(self) -> str:
|
|
287
287
|
claims = {
|
|
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
|