scanoss 1.28.3__py3-none-any.whl → 1.29.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.
- scanoss/__init__.py +1 -1
- scanoss/cyclonedx.py +4 -4
- scanoss/data/build_date.txt +1 -1
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/METADATA +3 -3
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/RECORD +9 -9
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/WHEEL +0 -0
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/entry_points.txt +0 -0
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/licenses/LICENSE +0 -0
- {scanoss-1.28.3.dist-info → scanoss-1.29.0.dist-info}/top_level.txt +0 -0
scanoss/__init__.py
CHANGED
scanoss/cyclonedx.py
CHANGED
|
@@ -48,10 +48,10 @@ class CycloneDx(ScanossBase):
|
|
|
48
48
|
self.debug = debug
|
|
49
49
|
self._spdx = SpdxLite(debug=debug)
|
|
50
50
|
|
|
51
|
-
def parse(self, data:
|
|
51
|
+
def parse(self, data: dict): # noqa: PLR0912, PLR0915
|
|
52
52
|
"""
|
|
53
53
|
Parse the given input (raw/plain) JSON string and return CycloneDX summary
|
|
54
|
-
:param data:
|
|
54
|
+
:param data: dict - JSON object
|
|
55
55
|
:return: CycloneDX dictionary, and vulnerability dictionary
|
|
56
56
|
"""
|
|
57
57
|
if not data:
|
|
@@ -170,12 +170,12 @@ class CycloneDx(ScanossBase):
|
|
|
170
170
|
success = self.produce_from_str(f.read(), output_file)
|
|
171
171
|
return success
|
|
172
172
|
|
|
173
|
-
def produce_from_json(self, data:
|
|
173
|
+
def produce_from_json(self, data: dict, output_file: str = None) -> tuple[bool, dict]: # noqa: PLR0912
|
|
174
174
|
"""
|
|
175
175
|
Produce the CycloneDX output from the raw scan results input data
|
|
176
176
|
|
|
177
177
|
Args:
|
|
178
|
-
data (
|
|
178
|
+
data (dict): JSON object
|
|
179
179
|
output_file (str, optional): Output file (optional). Defaults to None.
|
|
180
180
|
|
|
181
181
|
Returns:
|
scanoss/data/build_date.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
date:
|
|
1
|
+
date: 20250715073533, utime: 1752564933
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scanoss
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.29.0
|
|
4
4
|
Summary: Simple Python library to leverage the SCANOSS APIs
|
|
5
5
|
Home-page: https://scanoss.com
|
|
6
6
|
Author: SCANOSS
|
|
@@ -13,7 +13,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
|
-
Requires-Python: >=3.
|
|
16
|
+
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
19
|
Requires-Dist: requests
|
|
@@ -174,7 +174,7 @@ if __name__ == "__main__":
|
|
|
174
174
|
```
|
|
175
175
|
|
|
176
176
|
## Requirements
|
|
177
|
-
Python 3.
|
|
177
|
+
Python 3.9 or higher.
|
|
178
178
|
|
|
179
179
|
## Source code
|
|
180
180
|
The source for this package can be found [here](https://github.com/scanoss/scanoss.py).
|
|
@@ -4,13 +4,13 @@ protoc_gen_swagger/options/annotations_pb2.py,sha256=b25EDD6gssUWnFby9gxgcpLIROT
|
|
|
4
4
|
protoc_gen_swagger/options/annotations_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
5
5
|
protoc_gen_swagger/options/openapiv2_pb2.py,sha256=vYElGp8E1vGHszvWqX97zNG9GFJ7u2QcdK9ouq0XdyI,14939
|
|
6
6
|
protoc_gen_swagger/options/openapiv2_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
|
|
7
|
-
scanoss/__init__.py,sha256=
|
|
7
|
+
scanoss/__init__.py,sha256=XTAk-l3ntps3-o54lFtGf416on1_H2KJQix36NTu5fU,1146
|
|
8
8
|
scanoss/cli.py,sha256=3ECRfRo4K01TdNIJ1qRySz5-p8tQi8mAzH2tPPIUuuc,72552
|
|
9
9
|
scanoss/components.py,sha256=b0R9DdKuXqyQiw5nZZwjQ6NJXBr1U9gyx1RI2FP9ozA,14511
|
|
10
10
|
scanoss/constants.py,sha256=On8mQ-8ardVMHSJ7WOJqeTvGXIOWPLCgUanjE7Wk-wE,351
|
|
11
11
|
scanoss/cryptography.py,sha256=oj5HHgJk1e31dzQfB-5sIVmQVcUJMsP5DUPyP9QpPgQ,9806
|
|
12
12
|
scanoss/csvoutput.py,sha256=qNKRwcChSkgIwLm00kZiVX6iHVQUF4Apl-sMbzJ5Taw,10192
|
|
13
|
-
scanoss/cyclonedx.py,sha256=
|
|
13
|
+
scanoss/cyclonedx.py,sha256=eNiji61gTovtdw_OkFA_MNzY7cW2rwBvWC2upaBRpog,16334
|
|
14
14
|
scanoss/file_filters.py,sha256=2DzyvSVR7We7U36UurtJj3cdQturUjDl8j3OIqmv4Pg,20638
|
|
15
15
|
scanoss/filecount.py,sha256=RZjKQ6M5P_RQg0_PMD2tsRe5Z8f98ke0sxYVjPDN8iQ,6538
|
|
16
16
|
scanoss/results.py,sha256=47ZXXuU2sDjYa5vhtbWTmikit9jHhA0rsYKwkvZFI5w,9252
|
|
@@ -57,7 +57,7 @@ scanoss/api/vulnerabilities/__init__.py,sha256=IFrDk_DTJgKSZmmU-nuLXuq_s8sQZlrSC
|
|
|
57
57
|
scanoss/api/vulnerabilities/v2/__init__.py,sha256=IFrDk_DTJgKSZmmU-nuLXuq_s8sQZlrSCHhIDMJT4r0,1122
|
|
58
58
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py,sha256=CFhF80av8tenGvn9AIsGEtRJPuV2dC_syA5JLZb2lDw,5464
|
|
59
59
|
scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py,sha256=HlS4k4Zmx6RIAqaO9I96jD-eyF5yU6Xx04pVm7pdqOg,6864
|
|
60
|
-
scanoss/data/build_date.txt,sha256=
|
|
60
|
+
scanoss/data/build_date.txt,sha256=6Fcsk0phSCVMmiIS65RrexpCmMfwP5QnQfnNFyVFFnw,40
|
|
61
61
|
scanoss/data/scanoss-settings-schema.json,sha256=ClkRYAkjAN0Sk704G8BE_Ok006oQ6YnIGmX84CF8h9w,8798
|
|
62
62
|
scanoss/data/spdx-exceptions.json,sha256=s7UTYxC7jqQXr11YBlIWYCNwN6lRDFTR33Y8rpN_dA4,17953
|
|
63
63
|
scanoss/data/spdx-licenses.json,sha256=A6Z0q82gaTLtnopBfzeIVZjJFxkdRW1g2TuumQc-lII,228794
|
|
@@ -79,9 +79,9 @@ scanoss/utils/abstract_presenter.py,sha256=teiDTxBj5jBMCk2T8i4l1BJPf_u4zBLWrtCTF
|
|
|
79
79
|
scanoss/utils/crc64.py,sha256=TMrwQimSdE6imhFOUL7oAG6Kxu-8qMpGWMuMg8QpSVs,3169
|
|
80
80
|
scanoss/utils/file.py,sha256=62cA9a17TU9ZvfA3FY5HY4-QOajJeSrc8S6xLA_f-3M,2980
|
|
81
81
|
scanoss/utils/simhash.py,sha256=6iu8DOcecPAY36SZjCOzrrLMT9oIE7-gI6QuYwUQ7B0,5793
|
|
82
|
-
scanoss-1.
|
|
83
|
-
scanoss-1.
|
|
84
|
-
scanoss-1.
|
|
85
|
-
scanoss-1.
|
|
86
|
-
scanoss-1.
|
|
87
|
-
scanoss-1.
|
|
82
|
+
scanoss-1.29.0.dist-info/licenses/LICENSE,sha256=LLUaXoiyOroIbr5ubAyrxBOwSRLTm35ETO2FmLpy8QQ,1074
|
|
83
|
+
scanoss-1.29.0.dist-info/METADATA,sha256=9kfYCyVam5BEQ_wn4cTup7DUExwsksphT1jW_R_4M8U,6060
|
|
84
|
+
scanoss-1.29.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
85
|
+
scanoss-1.29.0.dist-info/entry_points.txt,sha256=Uy28xnaDL5KQ7V77sZD5VLDXPNxYYzSr5tsqtiXVzAs,48
|
|
86
|
+
scanoss-1.29.0.dist-info/top_level.txt,sha256=V11PrQ6Pnrc-nDF9xnisnJ8e6-i7HqSIKVNqduRWcL8,27
|
|
87
|
+
scanoss-1.29.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|