hyper-sdk 0.11.1__tar.gz → 2.0.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.
Files changed (28) hide show
  1. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/PKG-INFO +1 -1
  2. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/session.py +12 -11
  3. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk.egg-info/PKG-INFO +1 -1
  4. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/pyproject.toml +1 -1
  5. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/LICENSE +0 -0
  6. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/README.md +0 -0
  7. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/__init__.py +0 -0
  8. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai/__init__.py +0 -0
  9. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai/pixel.py +0 -0
  10. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai/script_path.py +0 -0
  11. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai/sec_cpt.py +0 -0
  12. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai/stop_signal.py +0 -0
  13. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/akamai_input.py +0 -0
  14. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/datadome/__init__.py +0 -0
  15. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/datadome/parse.py +0 -0
  16. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/datadome_input.py +0 -0
  17. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/incapsula/__init__.py +0 -0
  18. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/incapsula/dynamic.py +0 -0
  19. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/incapsula/utmvc.py +0 -0
  20. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/incapsula_input.py +0 -0
  21. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/kasada/__init__.py +0 -0
  22. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/kasada/parse.py +0 -0
  23. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk/kasada_input.py +0 -0
  24. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk.egg-info/SOURCES.txt +0 -0
  25. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk.egg-info/dependency_links.txt +0 -0
  26. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk.egg-info/requires.txt +0 -0
  27. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/hyper_sdk.egg-info/top_level.txt +0 -0
  28. {hyper_sdk-0.11.1 → hyper_sdk-2.0.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper_sdk
3
- Version: 0.11.1
3
+ Version: 2.0.0
4
4
  Summary: Hyper Solutions Python SDK
5
5
  License: MIT License
6
6
 
@@ -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.justhyped.dev/v2/sensor"
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
 
@@ -50,6 +50,7 @@ class Session:
50
50
  'pageUrl': input_data.page_url,
51
51
  'scriptHash': input_data.script_hash,
52
52
  'dynamicValues': input_data.dynamic_values,
53
+ 'context': input_data.context,
53
54
  'ip': input_data.ip,
54
55
  'acceptLanguage': input_data.acceptLanguage,
55
56
  })
@@ -74,7 +75,7 @@ class Session:
74
75
  Returns:
75
76
  str: Sensor data as a string.
76
77
  """
77
- sensor_endpoint = "https://akm.justhyped.dev/sbsd"
78
+ sensor_endpoint = "https://akm.hypersolutions.co/sbsd"
78
79
  return self._send_request(sensor_endpoint, {
79
80
  'userAgent': input_data.user_agent,
80
81
  'uuid': input_data.uuid,
@@ -95,7 +96,7 @@ class Session:
95
96
  Returns:
96
97
  str: Dynamic values as a string.
97
98
  """
98
- sensor_endpoint = "https://akm.justhyped.dev/v3dynamic"
99
+ sensor_endpoint = "https://akm.hypersolutions.co/v3dynamic"
99
100
  return self._send_request(sensor_endpoint, {
100
101
  'script': input_data.script,
101
102
  })
@@ -111,7 +112,7 @@ class Session:
111
112
  Returns:
112
113
  str: Pixel data as a string.
113
114
  """
114
- pixel_endpoint = "https://akm.justhyped.dev/pixel"
115
+ pixel_endpoint = "https://akm.hypersolutions.co/pixel"
115
116
  return self._send_request(pixel_endpoint, {
116
117
  'userAgent': input_data.user_agent,
117
118
  'htmlVar': input_data.html_var,
@@ -136,7 +137,7 @@ class Session:
136
137
  Raises:
137
138
  ValueError: If the script attribute in input_data is empty.
138
139
  """
139
- return self._send_request("https://incapsula.justhyped.dev/reese84/" + quote(site),
140
+ return self._send_request("https://incapsula.hypersolutions.co/reese84/" + quote(site),
140
141
  {
141
142
  'userAgent': input_data.user_agent,
142
143
  'acceptLanguage': input_data.acceptLanguage,
@@ -176,7 +177,7 @@ class Session:
176
177
  signature = self.generate_signature()
177
178
  headers['X-Signature'] = signature
178
179
 
179
- response = self.client.post("https://incapsula.justhyped.dev/utmvc", headers=headers, json={
180
+ response = self.client.post("https://incapsula.hypersolutions.co/utmvc", headers=headers, json={
180
181
  'userAgent': input_data.user_agent,
181
182
  'sessionIds': input_data.session_ids,
182
183
  'script': input_data.script,
@@ -204,7 +205,7 @@ class Session:
204
205
  Returns:
205
206
  str: The x-kpsdk-cd value as a string.
206
207
  """
207
- return self._send_request("https://kasada.justhyped.dev/cd", input_data.to_dict())
208
+ return self._send_request("https://kasada.hypersolutions.co/cd", input_data.to_dict())
208
209
 
209
210
  def generate_kasada_payload(self, input_data: KasadaPayloadInput) -> tuple[str, dict]:
210
211
  """
@@ -229,7 +230,7 @@ class Session:
229
230
  signature = self.generate_signature()
230
231
  headers['X-Signature'] = signature
231
232
 
232
- response = self.client.post("https://kasada.justhyped.dev/payload", headers=headers, json=input_data.to_dict())
233
+ response = self.client.post("https://kasada.hypersolutions.co/payload", headers=headers, json=input_data.to_dict())
233
234
 
234
235
  response_data = response.json()
235
236
 
@@ -253,7 +254,7 @@ class Session:
253
254
  - payload (str): The payload to post to /interstitial/
254
255
  - headers (Dict[str, str]): The response headers
255
256
  """
256
- return self._send_request_with_headers("https://datadome.justhyped.dev/interstitial", input_data.to_dict())
257
+ return self._send_request_with_headers("https://datadome.hypersolutions.co/interstitial", input_data.to_dict())
257
258
 
258
259
  def generate_slider_payload(self, input_data: DataDomeSliderInput) -> Dict[str, Any]:
259
260
  """
@@ -267,7 +268,7 @@ class Session:
267
268
  - payload (str): The URL to make a GET request to for a solved datadome cookie
268
269
  - headers (Dict[str, str]): The response headers
269
270
  """
270
- return self._send_request_with_headers("https://datadome.justhyped.dev/slider", input_data.to_dict())
271
+ return self._send_request_with_headers("https://datadome.hypersolutions.co/slider", input_data.to_dict())
271
272
 
272
273
  def generate_tags_payload(self, input_data: DataDomeTagsInput) -> str:
273
274
  """
@@ -280,7 +281,7 @@ class Session:
280
281
  Returns:
281
282
  str: The tags payload.
282
283
  """
283
- return self._send_request("https://datadome.justhyped.dev/tags", input_data.to_dict())
284
+ return self._send_request("https://datadome.hypersolutions.co/tags", input_data.to_dict())
284
285
 
285
286
  def generate_signature(self) -> str:
286
287
  claims = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyper_sdk
3
- Version: 0.11.1
3
+ Version: 2.0.0
4
4
  Summary: Hyper Solutions Python SDK
5
5
  License: MIT License
6
6
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hyper_sdk"
7
- version = "0.11.1"
7
+ version = "2.0.0"
8
8
  description = "Hyper Solutions Python SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
File without changes
File without changes
File without changes