hyper-sdk 0.7.0__tar.gz → 0.9.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 (29) hide show
  1. hyper_sdk-0.9.0/PKG-INFO +65 -0
  2. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai_input.py +6 -6
  3. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/datadome_input.py +9 -9
  4. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/incapsula_input.py +3 -2
  5. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/kasada_input.py +8 -6
  6. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/session.py +5 -4
  7. hyper_sdk-0.9.0/hyper_sdk.egg-info/PKG-INFO +65 -0
  8. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/pyproject.toml +2 -1
  9. hyper_sdk-0.7.0/PKG-INFO +0 -42
  10. hyper_sdk-0.7.0/hyper_sdk.egg-info/PKG-INFO +0 -42
  11. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/LICENSE +0 -0
  12. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/README.md +0 -0
  13. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/__init__.py +0 -0
  14. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai/__init__.py +0 -0
  15. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai/pixel.py +0 -0
  16. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai/script_path.py +0 -0
  17. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai/sec_cpt.py +0 -0
  18. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/akamai/stop_signal.py +0 -0
  19. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/datadome/__init__.py +0 -0
  20. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/datadome/parse.py +0 -0
  21. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/incapsula/__init__.py +0 -0
  22. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/incapsula/utmvc.py +0 -0
  23. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/kasada/__init__.py +0 -0
  24. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk/kasada/parse.py +0 -0
  25. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk.egg-info/SOURCES.txt +0 -0
  26. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk.egg-info/dependency_links.txt +0 -0
  27. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk.egg-info/requires.txt +0 -0
  28. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/hyper_sdk.egg-info/top_level.txt +0 -0
  29. {hyper_sdk-0.7.0 → hyper_sdk-0.9.0}/setup.cfg +0 -0
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: hyper_sdk
3
+ Version: 0.9.0
4
+ Summary: Hyper Solutions Python SDK
5
+ License: MIT License
6
+
7
+ Copyright (c) 2024 Hyper Solutions
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: homepage, https://github.com/Hyper-Solutions/hyper-sdk-py
28
+ Classifier: Intended Audience :: Developers
29
+ Classifier: License :: OSI Approved :: MIT License
30
+ Classifier: Programming Language :: Python :: 3
31
+ Requires-Python: >=3.6
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: certifi>=2024.2.2
35
+ Requires-Dist: charset-normalizer>=3.3.2
36
+ Requires-Dist: idna>=3.6
37
+ Requires-Dist: jsonpickle>=3.0.3
38
+ Requires-Dist: PyJWT>=2.8.0
39
+ Requires-Dist: requests>=2.31.0
40
+ Requires-Dist: urllib3>=2.2.1
41
+ Dynamic: license-file
42
+
43
+ # Hyper Solutions SDK for Python
44
+
45
+ ## Installation
46
+
47
+ To use the Hyper Solutions SDK in your Python project, you need to install it using the following command:
48
+
49
+ ```
50
+ pip install hyper-sdk
51
+ ```
52
+
53
+ ## Documentation
54
+
55
+ For detailed documentation on how to use the SDK, including examples and API reference, please visit our documentation website:
56
+
57
+ [https://docs.justhyped.dev/](https://docs.justhyped.dev/)
58
+
59
+ ## Contributing
60
+
61
+ If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
62
+
63
+ ## License
64
+
65
+ This SDK is licensed under the [MIT License](LICENSE).
@@ -1,5 +1,5 @@
1
1
  class SensorInput:
2
- def __init__(self, abck: str, bmsz: str, version: str, page_url: str, user_agent: str, ip: str, language: str, script_hash="", dynamic_values=""):
2
+ def __init__(self, abck: str, bmsz: str, version: str, page_url: str, user_agent: str, ip: str, acceptLanguage: str, script_hash="", dynamic_values=""):
3
3
  self.abck = abck
4
4
  self.bmsz = bmsz
5
5
  self.version = version
@@ -8,15 +8,15 @@ class SensorInput:
8
8
  self.script_hash = script_hash
9
9
  self.dynamic_values = dynamic_values
10
10
  self.ip = ip
11
- self.language = language
11
+ self.acceptLanguage = acceptLanguage
12
12
 
13
13
 
14
14
  class PixelInput:
15
- def __init__(self, user_agent: str, html_var: str, script_var: str, language: str, ip: str):
15
+ def __init__(self, user_agent: str, html_var: str, script_var: str, acceptLanguage: str, ip: str):
16
16
  self.user_agent = user_agent
17
17
  self.html_var = html_var
18
18
  self.script_var = script_var
19
- self.language = language
19
+ self.acceptLanguage = acceptLanguage
20
20
  self.ip = ip
21
21
 
22
22
 
@@ -26,11 +26,11 @@ class DynamicInput:
26
26
 
27
27
 
28
28
  class SbsdInput:
29
- def __init__(self, user_agent: str, uuid: str, page_url: str, o_cookie: str, script: str, language: str, ip: str):
29
+ def __init__(self, user_agent: str, uuid: str, page_url: str, o_cookie: str, script: str, acceptLanguage: str, ip: str):
30
30
  self.user_agent = user_agent
31
31
  self.uuid = uuid
32
32
  self.page_url = page_url
33
33
  self.o_cookie = o_cookie
34
34
  self.script = script
35
- self.language = language
35
+ self.acceptLanguage = acceptLanguage
36
36
  self.ip = ip
@@ -1,6 +1,6 @@
1
1
 
2
2
  class DataDomeSliderInput:
3
- def __init__(self, user_agent: str, device_link: str, html: str, puzzle: str, piece: str, parent_url: str, language: str, ip: str):
3
+ def __init__(self, user_agent: str, device_link: str, html: str, puzzle: str, piece: str, parent_url: str, acceptLanguage: str, ip: str):
4
4
  # UserAgent must be a Chrome Windows User-Agent.
5
5
  self.user_agent = user_agent
6
6
 
@@ -22,7 +22,7 @@ class DataDomeSliderInput:
22
22
  self.piece = piece
23
23
 
24
24
  self.parent_url = parent_url
25
- self.language = language
25
+ self.acceptLanguage = acceptLanguage
26
26
  self.ip = ip
27
27
 
28
28
  def to_dict(self):
@@ -33,13 +33,13 @@ class DataDomeSliderInput:
33
33
  "puzzle": self.puzzle,
34
34
  "piece": self.piece,
35
35
  "parentUrl": self.parent_url,
36
- "language": self.language,
36
+ "acceptLanguage": self.acceptLanguage,
37
37
  "ip": self.ip,
38
38
  }
39
39
 
40
40
 
41
41
  class DataDomeInterstitialInput:
42
- def __init__(self, user_agent: str, device_link: str, html: str, language: str, ip: str):
42
+ def __init__(self, user_agent: str, device_link: str, html: str, acceptLanguage: str, ip: str):
43
43
  # UserAgent must be a Chrome Windows User-Agent.
44
44
  self.user_agent = user_agent
45
45
 
@@ -50,7 +50,7 @@ class DataDomeInterstitialInput:
50
50
  # Html is the response body of the GET request to the DeviceLink
51
51
  self.html = html
52
52
 
53
- self.language = language
53
+ self.acceptLanguage = acceptLanguage
54
54
  self.ip = ip
55
55
 
56
56
  def to_dict(self):
@@ -58,13 +58,13 @@ class DataDomeInterstitialInput:
58
58
  "userAgent": self.user_agent,
59
59
  "deviceLink": self.device_link,
60
60
  "html": self.html,
61
- "language": self.language,
61
+ "acceptLanguage": self.acceptLanguage,
62
62
  "ip": self.ip,
63
63
  }
64
64
 
65
65
 
66
66
  class DataDomeTagsInput:
67
- def __init__(self, user_agent: str, cid: str, ddk: str, referer: str, tags_type: str, version: str, language: str, ip: str):
67
+ def __init__(self, user_agent: str, cid: str, ddk: str, referer: str, tags_type: str, version: str, acceptLanguage: str, ip: str):
68
68
  # UserAgent must be a Chrome Windows User-Agent.
69
69
  self.user_agent = user_agent
70
70
  self.cid = cid
@@ -72,7 +72,7 @@ class DataDomeTagsInput:
72
72
  self.referer = referer
73
73
  self.tags_type = tags_type
74
74
  self.version = version
75
- self.language = language
75
+ self.acceptLanguage = acceptLanguage
76
76
  self.ip = ip
77
77
 
78
78
  def to_dict(self):
@@ -82,7 +82,7 @@ class DataDomeTagsInput:
82
82
  "ddk": self.ddk,
83
83
  "referer": self.referer,
84
84
  "type": self.tags_type,
85
- "language": self.language,
85
+ "acceptLanguage": self.acceptLanguage,
86
86
  "ip": self.ip,
87
87
  "version": self.version,
88
88
  }
@@ -8,7 +8,8 @@ class UtmvcInput:
8
8
  self.script = script
9
9
 
10
10
  class ReeseInput:
11
- def __init__(self, user_agent: str, language: str, ip: str):
11
+ def __init__(self, user_agent: str, acceptLanguage: str, ip: str, scriptUrl: str = ""):
12
12
  self.user_agent = user_agent
13
- self.language = language
13
+ self.acceptLanguage = acceptLanguage
14
14
  self.ip = ip
15
+ self.scriptUrl = scriptUrl
@@ -1,19 +1,21 @@
1
1
  class KasadaPowInput:
2
- def __init__(self, st: int, work_time: int = None):
2
+ def __init__(self, st: int, ct: str, work_time: int = None):
3
3
  # St is the x-kpsdk-st value returned by the /tl POST request
4
4
  self.st = st
5
+ # Ct is the x-kpsdk-ct value returned by the /tl POST request
6
+ self.ct = ct
5
7
  # WorkTime can be used to pre-generate POW strings
6
8
  self.work_time = work_time
7
9
 
8
10
  def to_dict(self):
9
- result = {"st": self.st}
11
+ result = {"st": self.st, "ct": self.ct}
10
12
  if self.work_time is not None:
11
13
  result["workTime"] = self.work_time
12
14
  return result
13
15
 
14
16
 
15
17
  class KasadaPayloadInput:
16
- def __init__(self, user_agent: str, ips_link: str, script: str, language: str, ip: str):
18
+ def __init__(self, user_agent: str, ips_link: str, script: str, acceptLanguage: str, ip: str):
17
19
  # UserAgent must be a Chrome Windows User-Agent.
18
20
  self.user_agent = user_agent
19
21
 
@@ -23,8 +25,8 @@ class KasadaPayloadInput:
23
25
  # Script is the ips.js script retrieved using the IpsLink url
24
26
  self.script = script
25
27
 
26
- # Language is the first language of your accept-language header
27
- self.language = language
28
+ # Your accept-language header
29
+ self.acceptLanguage = acceptLanguage
28
30
  self.ip = ip
29
31
 
30
32
  def to_dict(self):
@@ -32,7 +34,7 @@ class KasadaPayloadInput:
32
34
  "userAgent": self.user_agent,
33
35
  "ipsLink": self.ips_link,
34
36
  "script": self.script,
35
- "language": self.language,
37
+ "acceptLanguage": self.acceptLanguage,
36
38
  "ip": self.ip,
37
39
  }
38
40
  return result
@@ -37,7 +37,7 @@ class Session:
37
37
  'scriptHash': input_data.script_hash,
38
38
  'dynamicValues': input_data.dynamic_values,
39
39
  'ip': input_data.ip,
40
- 'language': input_data.language,
40
+ 'acceptLanguage': input_data.acceptLanguage,
41
41
  })
42
42
 
43
43
  def generate_sbsd_data(self, input_data: SbsdInput) -> str:
@@ -57,7 +57,7 @@ class Session:
57
57
  'pageUrl': input_data.page_url,
58
58
  'o': input_data.o_cookie,
59
59
  'script': input_data.script,
60
- 'language': input_data.language,
60
+ 'acceptLanguage': input_data.acceptLanguage,
61
61
  'ip': input_data.ip,
62
62
  })
63
63
 
@@ -93,7 +93,7 @@ class Session:
93
93
  'htmlVar': input_data.html_var,
94
94
  'scriptVar': input_data.script_var,
95
95
  'ip': input_data.ip,
96
- 'language': input_data.language,
96
+ 'acceptLanguage': input_data.acceptLanguage,
97
97
  })
98
98
 
99
99
  def generate_reese84_sensor(self, site: str, input_data: ReeseInput) -> str:
@@ -115,8 +115,9 @@ class Session:
115
115
  return self._send_request("https://incapsula.justhyped.dev/reese84/" + quote(site),
116
116
  {
117
117
  'userAgent': input_data.user_agent,
118
- 'language': input_data.language,
118
+ 'acceptLanguage': input_data.acceptLanguage,
119
119
  'ip': input_data.ip,
120
+ 'scriptUrl': input_data.scriptUrl,
120
121
  })
121
122
 
122
123
  def generate_utmvc_cookie(self, input_data: UtmvcInput) -> str:
@@ -0,0 +1,65 @@
1
+ Metadata-Version: 2.4
2
+ Name: hyper_sdk
3
+ Version: 0.9.0
4
+ Summary: Hyper Solutions Python SDK
5
+ License: MIT License
6
+
7
+ Copyright (c) 2024 Hyper Solutions
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Project-URL: homepage, https://github.com/Hyper-Solutions/hyper-sdk-py
28
+ Classifier: Intended Audience :: Developers
29
+ Classifier: License :: OSI Approved :: MIT License
30
+ Classifier: Programming Language :: Python :: 3
31
+ Requires-Python: >=3.6
32
+ Description-Content-Type: text/markdown
33
+ License-File: LICENSE
34
+ Requires-Dist: certifi>=2024.2.2
35
+ Requires-Dist: charset-normalizer>=3.3.2
36
+ Requires-Dist: idna>=3.6
37
+ Requires-Dist: jsonpickle>=3.0.3
38
+ Requires-Dist: PyJWT>=2.8.0
39
+ Requires-Dist: requests>=2.31.0
40
+ Requires-Dist: urllib3>=2.2.1
41
+ Dynamic: license-file
42
+
43
+ # Hyper Solutions SDK for Python
44
+
45
+ ## Installation
46
+
47
+ To use the Hyper Solutions SDK in your Python project, you need to install it using the following command:
48
+
49
+ ```
50
+ pip install hyper-sdk
51
+ ```
52
+
53
+ ## Documentation
54
+
55
+ For detailed documentation on how to use the SDK, including examples and API reference, please visit our documentation website:
56
+
57
+ [https://docs.justhyped.dev/](https://docs.justhyped.dev/)
58
+
59
+ ## Contributing
60
+
61
+ If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
62
+
63
+ ## License
64
+
65
+ This SDK is licensed under the [MIT License](LICENSE).
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hyper_sdk"
7
- version = "0.7.0"
7
+ version = "0.9.0"
8
8
  description = "Hyper Solutions Python SDK"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.6"
@@ -22,6 +22,7 @@ dependencies = [
22
22
  "requests>=2.31.0",
23
23
  "urllib3>=2.2.1",
24
24
  ]
25
+ license = {file = "LICENSE"}
25
26
 
26
27
  [project.urls]
27
28
  homepage = "https://github.com/Hyper-Solutions/hyper-sdk-py"
hyper_sdk-0.7.0/PKG-INFO DELETED
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: hyper_sdk
3
- Version: 0.7.0
4
- Summary: Hyper Solutions Python SDK
5
- Project-URL: homepage, https://github.com/Hyper-Solutions/hyper-sdk-py
6
- Classifier: Intended Audience :: Developers
7
- Classifier: License :: OSI Approved :: MIT License
8
- Classifier: Programming Language :: Python :: 3
9
- Requires-Python: >=3.6
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: certifi>=2024.2.2
13
- Requires-Dist: charset-normalizer>=3.3.2
14
- Requires-Dist: idna>=3.6
15
- Requires-Dist: jsonpickle>=3.0.3
16
- Requires-Dist: PyJWT>=2.8.0
17
- Requires-Dist: requests>=2.31.0
18
- Requires-Dist: urllib3>=2.2.1
19
-
20
- # Hyper Solutions SDK for Python
21
-
22
- ## Installation
23
-
24
- To use the Hyper Solutions SDK in your Python project, you need to install it using the following command:
25
-
26
- ```
27
- pip install hyper-sdk
28
- ```
29
-
30
- ## Documentation
31
-
32
- For detailed documentation on how to use the SDK, including examples and API reference, please visit our documentation website:
33
-
34
- [https://docs.justhyped.dev/](https://docs.justhyped.dev/)
35
-
36
- ## Contributing
37
-
38
- If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
39
-
40
- ## License
41
-
42
- This SDK is licensed under the [MIT License](LICENSE).
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.2
2
- Name: hyper_sdk
3
- Version: 0.7.0
4
- Summary: Hyper Solutions Python SDK
5
- Project-URL: homepage, https://github.com/Hyper-Solutions/hyper-sdk-py
6
- Classifier: Intended Audience :: Developers
7
- Classifier: License :: OSI Approved :: MIT License
8
- Classifier: Programming Language :: Python :: 3
9
- Requires-Python: >=3.6
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: certifi>=2024.2.2
13
- Requires-Dist: charset-normalizer>=3.3.2
14
- Requires-Dist: idna>=3.6
15
- Requires-Dist: jsonpickle>=3.0.3
16
- Requires-Dist: PyJWT>=2.8.0
17
- Requires-Dist: requests>=2.31.0
18
- Requires-Dist: urllib3>=2.2.1
19
-
20
- # Hyper Solutions SDK for Python
21
-
22
- ## Installation
23
-
24
- To use the Hyper Solutions SDK in your Python project, you need to install it using the following command:
25
-
26
- ```
27
- pip install hyper-sdk
28
- ```
29
-
30
- ## Documentation
31
-
32
- For detailed documentation on how to use the SDK, including examples and API reference, please visit our documentation website:
33
-
34
- [https://docs.justhyped.dev/](https://docs.justhyped.dev/)
35
-
36
- ## Contributing
37
-
38
- If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
39
-
40
- ## License
41
-
42
- This SDK is licensed under the [MIT License](LICENSE).
File without changes
File without changes
File without changes