insightconnect-plugin-runtime 6.1.4__py3-none-any.whl → 6.2.0__py3-none-any.whl

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.
@@ -75,10 +75,10 @@ def make_request(
75
75
  _request: requests.Request,
76
76
  timeout: int = 60,
77
77
  verify: bool = True,
78
- cert: Union[str, Tuple]=None,
78
+ cert: Union[str, Tuple] = None,
79
79
  stream: bool = False,
80
80
  allow_redirects: bool = True,
81
- exception_custom_configs: Dict[int, Exception]={},
81
+ exception_custom_configs: Dict[int, Exception] = {},
82
82
  exception_data_location: str = None,
83
83
  allowed_status_codes: List[str] = [],
84
84
  ) -> Tuple[requests.Response, Dict]:
@@ -156,7 +156,7 @@ def extract_json(response: requests.Response) -> Dict:
156
156
 
157
157
 
158
158
  def request_error_handling(
159
- custom_configs: Dict[int, Exception]={},
159
+ custom_configs: Dict[int, Exception] = {},
160
160
  exception_data_location: str = None,
161
161
  allowed_status_codes: List[str] = [],
162
162
  ) -> Union[Any, None]:
@@ -204,7 +204,7 @@ def request_error_handling(
204
204
 
205
205
  def response_handler(
206
206
  response: requests.Response,
207
- custom_configs: Dict[int, Exception]={},
207
+ custom_configs: Dict[int, Exception] = {},
208
208
  data_location: str = None,
209
209
  allowed_status_codes: List[str] = [],
210
210
  ) -> None:
@@ -304,7 +304,7 @@ def extract_value(begin, key, end, s):
304
304
 
305
305
  Example: The following will use pull out the /bin/bash from the string s
306
306
  s = '\nShell: /bin/bash\n'
307
- shell = get_value(r'\s', 'Shell', r':\s(.*)\s', s)
307
+ shell = get_value(r'\\s', 'Shell', r':\\s(.*)\\s', s)
308
308
 
309
309
  This function works well when you have a list of keys to iterate through where the pattern is the same.
310
310
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: insightconnect-plugin-runtime
3
- Version: 6.1.4
3
+ Version: 6.2.0
4
4
  Summary: InsightConnect Plugin Runtime
5
5
  Home-page: https://github.com/rapid7/komand-plugin-sdk-python
6
6
  Author: Rapid7 Integrations Alliance
@@ -18,8 +18,8 @@ Requires-Dist: jsonschema==4.21.1
18
18
  Requires-Dist: certifi==2024.07.04
19
19
  Requires-Dist: Flask==3.0.2
20
20
  Requires-Dist: gunicorn==22.0.0
21
- Requires-Dist: greenlet==3.0.3
22
- Requires-Dist: gevent==24.2.1
21
+ Requires-Dist: greenlet==3.1.1
22
+ Requires-Dist: gevent==24.10.1
23
23
  Requires-Dist: marshmallow==3.21.0
24
24
  Requires-Dist: apispec==6.5.0
25
25
  Requires-Dist: apispec-webframeworks==1.0.0
@@ -48,10 +48,10 @@ to get started.
48
48
 
49
49
  ## Development of the InsightConnect Plugin Runtime
50
50
 
51
- The Python Runtime codebase is built to support Python 3.9.18 as of version 5.3.0. The following dependencies will need
51
+ The Python Runtime codebase is built to support Python 3.11.10 as of version 6.2.0. The following dependencies will need
52
52
  to be installed when developing or testing the Plugin Runtime:
53
53
 
54
- - Python 3.9.18
54
+ - Python 3.11.10
55
55
  - Docker
56
56
  - make
57
57
  - tox
@@ -184,11 +184,11 @@ Running a specific test file:
184
184
 
185
185
  | | Plugin | Slim Plugin |
186
186
  |:------------------|:-------:|:-----------:|
187
- | Python Version | 3.9.18 | 3.9.18 |
187
+ | Python Version | 3.11.10 | 3.11.10 |
188
188
  | OS | Alpine | Bullseye |
189
189
  | Package installer | apk | apt |
190
190
  | Shell | /bin/sh | /bin/bash |
191
- | Image Size | ~350MB | ~180MB |
191
+ | Image Size | ~370MB | ~230MB |
192
192
 
193
193
  Note that for the plugin image, we run `apk update` and `apk add ..` which leads to a longer build time.
194
194
 
@@ -211,6 +211,7 @@ contributed. Black is installed as a test dependency and the hook can be initial
211
211
  after cloning this repository.
212
212
 
213
213
  ## Changelog
214
+ * 6.2.0 - Update base images to pull Python 3.11.10 | changed the pep-8 check in tox to `pycodestyle`
214
215
  * 6.1.4 - Address vulnerabilities within local development requirements.txt and vulnerabilities in slim image.
215
216
  * 6.1.3 - Addressing failing Python Slim package (bump packages).
216
217
  * 6.1.2 - Removing the call to mask_output_data for task code.
@@ -4,7 +4,7 @@ insightconnect_plugin_runtime/cli.py,sha256=Pb-Janu-XfRlSXxPHh30OIquljWptrhhS51C
4
4
  insightconnect_plugin_runtime/connection.py,sha256=4bHHV2B0UFGsAtvLu1fiYQRwx7fissUakHPUyjLQO0E,2340
5
5
  insightconnect_plugin_runtime/dispatcher.py,sha256=ru7njnyyWE1-oD-VbZJ-Z8tELwvDf69rM7Iezs4rbnw,1774
6
6
  insightconnect_plugin_runtime/exceptions.py,sha256=Pvcdkx81o6qC2qU661x-DzNjuIMP82x52nPMSEqEo4s,8491
7
- insightconnect_plugin_runtime/helper.py,sha256=F2JmcvmUAlwjeqtqGoTbfuTSgmgqaFOw-xdZMCC79is,31538
7
+ insightconnect_plugin_runtime/helper.py,sha256=X23SRP1bJksAfIWTmRZ4JQTZ8nhfcr1NUIsTvvR8tdM,31549
8
8
  insightconnect_plugin_runtime/metrics.py,sha256=hf_Aoufip_s4k4o8Gtzz90ymZthkaT2e5sXh5B4LcF0,3186
9
9
  insightconnect_plugin_runtime/plugin.py,sha256=Yf4LNczykDVc31F9G8uuJ9gxEsgmxmAr0n4pcZzichM,26393
10
10
  insightconnect_plugin_runtime/schema.py,sha256=jTNc6KAMqFpaDVWrAYhkVC6e8I63P3X7uVlJkAr1hiY,583
@@ -78,7 +78,7 @@ tests/unit/test_server_spec.py,sha256=je97BaktgK0Fiz3AwFPkcmHzYtOJJNqJV_Fw5hrvqX
78
78
  tests/unit/test_trigger.py,sha256=E53mAUoVyponWu_4IQZ0IC1gQ9lakBnTn_9vKN2IZfg,1692
79
79
  tests/unit/test_variables.py,sha256=OUEOqGYZA3Nd5oKk5GVY3hcrWKHpZpxysBJcO_v5gzs,291
80
80
  tests/unit/utils.py,sha256=VooVmfpIgxmglNdtmT32AkEDFxHxyRHLK8RsCWjjYRY,2153
81
- insightconnect_plugin_runtime-6.1.4.dist-info/METADATA,sha256=tUofv23JDlh0ClMPm-Vi6AKGkZZdCvDcBAqrnig0WiU,14929
82
- insightconnect_plugin_runtime-6.1.4.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
83
- insightconnect_plugin_runtime-6.1.4.dist-info/top_level.txt,sha256=AJtyJOpiFzHxsbHUICTcUKXyrGQ3tZxhrEHsPjJBvEA,36
84
- insightconnect_plugin_runtime-6.1.4.dist-info/RECORD,,
81
+ insightconnect_plugin_runtime-6.2.0.dist-info/METADATA,sha256=omcme5-sOih-Wl98UPLsGBnFRRQNK_fLNC3x7RvSQNk,15034
82
+ insightconnect_plugin_runtime-6.2.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
83
+ insightconnect_plugin_runtime-6.2.0.dist-info/top_level.txt,sha256=AJtyJOpiFzHxsbHUICTcUKXyrGQ3tZxhrEHsPjJBvEA,36
84
+ insightconnect_plugin_runtime-6.2.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5