hyper-sdk 2.8.0__tar.gz → 2.10.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-2.8.0 → hyper_sdk-2.10.0}/PKG-INFO +1 -1
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai_input.py +2 -1
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/session.py +3 -3
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/session_async.py +3 -3
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk.egg-info/PKG-INFO +1 -1
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/pyproject.toml +1 -1
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/LICENSE +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/README.md +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai/script_path.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/datadome/parse.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/datadome_input.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/incapsula/dynamic.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/incapsula_input.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/kasada/parse.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/kasada_input.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/shared.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk/trustdecision_input.py +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-2.8.0 → hyper_sdk-2.10.0}/setup.cfg +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
class SensorInput:
|
|
2
2
|
def __init__(self, abck: str, bmsz: str, version: str, page_url: str, user_agent: str, ip: str, acceptLanguage: str,
|
|
3
|
-
context: str, script: str):
|
|
3
|
+
context: str, script: str, scriptUrl: str):
|
|
4
4
|
self.abck = abck
|
|
5
5
|
self.bmsz = bmsz
|
|
6
6
|
self.version = version
|
|
7
7
|
self.page_url = page_url
|
|
8
8
|
self.user_agent = user_agent
|
|
9
9
|
self.script = script
|
|
10
|
+
self.scriptUrl = scriptUrl
|
|
10
11
|
self.context = context
|
|
11
12
|
self.ip = ip
|
|
12
13
|
self.acceptLanguage = acceptLanguage
|
|
@@ -64,6 +64,7 @@ class Session:
|
|
|
64
64
|
'version': input_data.version,
|
|
65
65
|
'pageUrl': input_data.page_url,
|
|
66
66
|
'script': input_data.script,
|
|
67
|
+
'scriptUrl': input_data.scriptUrl,
|
|
67
68
|
'context': input_data.context,
|
|
68
69
|
'ip': input_data.ip,
|
|
69
70
|
'acceptLanguage': input_data.acceptLanguage,
|
|
@@ -125,14 +126,13 @@ class Session:
|
|
|
125
126
|
'acceptLanguage': input_data.acceptLanguage,
|
|
126
127
|
})
|
|
127
128
|
|
|
128
|
-
def generate_reese84_sensor(self,
|
|
129
|
+
def generate_reese84_sensor(self, input_data: ReeseInput) -> str:
|
|
129
130
|
"""
|
|
130
131
|
Returns the sensor data required to generate valid reese84 cookies using the Hyper Solutions API.
|
|
131
132
|
|
|
132
133
|
This function sends a request to the specified sensor endpoint with the necessary data to generate the reese84 sensor data.
|
|
133
134
|
|
|
134
135
|
Args:
|
|
135
|
-
site (str): The name of the site that will be used to generate the sensor data.
|
|
136
136
|
input_data (ReeseInput): The input data.
|
|
137
137
|
|
|
138
138
|
Returns:
|
|
@@ -141,7 +141,7 @@ class Session:
|
|
|
141
141
|
Raises:
|
|
142
142
|
ValueError: If the script attribute in input_data is empty.
|
|
143
143
|
"""
|
|
144
|
-
return self._send_request("https://incapsula.hypersolutions.co/reese84
|
|
144
|
+
return self._send_request("https://incapsula.hypersolutions.co/reese84", {
|
|
145
145
|
'userAgent': input_data.user_agent,
|
|
146
146
|
'acceptLanguage': input_data.acceptLanguage,
|
|
147
147
|
'ip': input_data.ip,
|
|
@@ -68,6 +68,7 @@ class SessionAsync:
|
|
|
68
68
|
'version': input_data.version,
|
|
69
69
|
'pageUrl': input_data.page_url,
|
|
70
70
|
'script': input_data.script,
|
|
71
|
+
'scriptUrl': input_data.scriptUrl,
|
|
71
72
|
'context': input_data.context,
|
|
72
73
|
'ip': input_data.ip,
|
|
73
74
|
'acceptLanguage': input_data.acceptLanguage,
|
|
@@ -129,14 +130,13 @@ class SessionAsync:
|
|
|
129
130
|
'acceptLanguage': input_data.acceptLanguage,
|
|
130
131
|
})
|
|
131
132
|
|
|
132
|
-
async def generate_reese84_sensor(self,
|
|
133
|
+
async def generate_reese84_sensor(self, input_data: ReeseInput) -> str:
|
|
133
134
|
"""
|
|
134
135
|
Returns the sensor data required to generate valid reese84 cookies using the Hyper Solutions API.
|
|
135
136
|
|
|
136
137
|
This function sends a request to the specified sensor endpoint with the necessary data to generate the reese84 sensor data.
|
|
137
138
|
|
|
138
139
|
Args:
|
|
139
|
-
site (str): The name of the site that will be used to generate the sensor data.
|
|
140
140
|
input_data (ReeseInput): The input data.
|
|
141
141
|
|
|
142
142
|
Returns:
|
|
@@ -145,7 +145,7 @@ class SessionAsync:
|
|
|
145
145
|
Raises:
|
|
146
146
|
ValueError: If the script attribute in input_data is empty.
|
|
147
147
|
"""
|
|
148
|
-
return await self._send_request("https://incapsula.hypersolutions.co/reese84
|
|
148
|
+
return await self._send_request("https://incapsula.hypersolutions.co/reese84", {
|
|
149
149
|
'userAgent': input_data.user_agent,
|
|
150
150
|
'acceptLanguage': input_data.acceptLanguage,
|
|
151
151
|
'ip': input_data.ip,
|
|
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
|