hyper-sdk 2.1.0__tar.gz → 2.2.1__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.1.0 → hyper_sdk-2.2.1}/PKG-INFO +1 -1
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/incapsula_input.py +3 -1
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/session.py +3 -1
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk.egg-info/PKG-INFO +1 -1
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/pyproject.toml +1 -1
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/LICENSE +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/README.md +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai/script_path.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/akamai_input.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/datadome/parse.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/datadome_input.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/incapsula/dynamic.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/kasada/parse.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk/kasada_input.py +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-2.1.0 → hyper_sdk-2.2.1}/setup.cfg +0 -0
|
@@ -8,9 +8,11 @@ class UtmvcInput:
|
|
|
8
8
|
self.script = script
|
|
9
9
|
|
|
10
10
|
class ReeseInput:
|
|
11
|
-
def __init__(self, user_agent: str, acceptLanguage: str, ip: str, pageUrl: str, scriptUrl: str = ""):
|
|
11
|
+
def __init__(self, user_agent: str, acceptLanguage: str, ip: str, pageUrl: str, pow: str, wasm: str, scriptUrl: str = ""):
|
|
12
12
|
self.user_agent = user_agent
|
|
13
13
|
self.acceptLanguage = acceptLanguage
|
|
14
14
|
self.ip = ip
|
|
15
15
|
self.scriptUrl = scriptUrl
|
|
16
|
+
self.pow = pow
|
|
17
|
+
self.wasm = wasm
|
|
16
18
|
self.pageUrl = pageUrl
|
|
@@ -144,6 +144,8 @@ class Session:
|
|
|
144
144
|
'ip': input_data.ip,
|
|
145
145
|
'scriptUrl': input_data.scriptUrl,
|
|
146
146
|
'pageUrl': input_data.pageUrl,
|
|
147
|
+
'pow': input_data.pow,
|
|
148
|
+
'wasm': input_data.wasm,
|
|
147
149
|
})
|
|
148
150
|
|
|
149
151
|
def generate_utmvc_cookie(self, input_data: UtmvcInput) -> str:
|
|
@@ -289,7 +291,7 @@ class Session:
|
|
|
289
291
|
"exp": datetime.now(timezone.utc) + timedelta(seconds=60)
|
|
290
292
|
}
|
|
291
293
|
token = jwt.encode(claims, self.jwt_key, algorithm='HS256')
|
|
292
|
-
return token.decode('utf-8')
|
|
294
|
+
return token.decode('utf-8') if type(token) == bytes else token
|
|
293
295
|
|
|
294
296
|
def _send_request(self, url: str, input_data: Dict[str, Any]) -> str:
|
|
295
297
|
if not self.api_key:
|
|
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
|