scanoss 1.20.0__py3-none-any.whl → 1.20.1__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.
- protoc_gen_swagger/__init__.py +13 -13
- protoc_gen_swagger/options/__init__.py +13 -13
- protoc_gen_swagger/options/annotations_pb2.py +12 -9
- protoc_gen_swagger/options/annotations_pb2_grpc.py +1 -1
- protoc_gen_swagger/options/openapiv2_pb2.py +98 -96
- protoc_gen_swagger/options/openapiv2_pb2_grpc.py +1 -1
- scanoss/__init__.py +18 -18
- scanoss/api/__init__.py +17 -17
- scanoss/api/common/__init__.py +17 -17
- scanoss/api/common/v2/__init__.py +17 -17
- scanoss/api/common/v2/scanoss_common_pb2.py +18 -18
- scanoss/api/common/v2/scanoss_common_pb2_grpc.py +1 -1
- scanoss/api/components/__init__.py +17 -17
- scanoss/api/components/v2/__init__.py +17 -17
- scanoss/api/components/v2/scanoss_components_pb2.py +48 -38
- scanoss/api/components/v2/scanoss_components_pb2_grpc.py +142 -96
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +22 -16
- scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +75 -49
- scanoss/api/dependencies/__init__.py +17 -17
- scanoss/api/dependencies/v2/__init__.py +17 -17
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +30 -24
- scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +75 -49
- scanoss/api/scanning/__init__.py +17 -17
- scanoss/api/scanning/v2/__init__.py +17 -17
- scanoss/api/scanning/v2/scanoss_scanning_pb2.py +10 -8
- scanoss/api/scanning/v2/scanoss_scanning_pb2_grpc.py +40 -32
- scanoss/api/semgrep/__init__.py +17 -17
- scanoss/api/semgrep/v2/__init__.py +17 -17
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +22 -18
- scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +71 -49
- scanoss/api/vulnerabilities/__init__.py +17 -17
- scanoss/api/vulnerabilities/v2/__init__.py +17 -17
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +37 -27
- scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2_grpc.py +109 -72
- scanoss/cli.py +576 -293
- scanoss/components.py +67 -45
- scanoss/csvoutput.py +83 -56
- scanoss/cyclonedx.py +48 -46
- scanoss/data/build_date.txt +1 -1
- scanoss/file_filters.py +13 -15
- scanoss/filecount.py +43 -36
- scanoss/inspection/__init__.py +17 -17
- scanoss/inspection/copyleft.py +71 -58
- scanoss/inspection/policy_check.py +76 -53
- scanoss/inspection/undeclared_component.py +98 -75
- scanoss/inspection/utils/license_utils.py +66 -44
- scanoss/results.py +51 -60
- scanoss/scancodedeps.py +61 -38
- scanoss/scanner.py +203 -135
- scanoss/scanoss_settings.py +5 -3
- scanoss/scanossapi.py +98 -69
- scanoss/scanossbase.py +19 -19
- scanoss/scanossgrpc.py +73 -51
- scanoss/scanpostprocessor.py +9 -6
- scanoss/scantype.py +22 -21
- scanoss/spdxlite.py +265 -171
- scanoss/threadeddependencies.py +91 -61
- scanoss/threadedscanning.py +37 -31
- scanoss/utils/file.py +4 -4
- scanoss/winnowing.py +111 -47
- {scanoss-1.20.0.dist-info → scanoss-1.20.1.dist-info}/METADATA +1 -1
- scanoss-1.20.1.dist-info/RECORD +74 -0
- scanoss-1.20.0.dist-info/RECORD +0 -74
- {scanoss-1.20.0.dist-info → scanoss-1.20.1.dist-info}/LICENSE +0 -0
- {scanoss-1.20.0.dist-info → scanoss-1.20.1.dist-info}/WHEEL +0 -0
- {scanoss-1.20.0.dist-info → scanoss-1.20.1.dist-info}/entry_points.txt +0 -0
- {scanoss-1.20.0.dist-info → scanoss-1.20.1.dist-info}/top_level.txt +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
|
|
3
4
|
import grpc
|
|
4
5
|
|
|
5
6
|
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
6
|
-
from scanoss.api.cryptography.v2 import
|
|
7
|
+
from scanoss.api.cryptography.v2 import (
|
|
8
|
+
scanoss_cryptography_pb2 as scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2,
|
|
9
|
+
)
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
class CryptographyStub(object):
|
|
@@ -18,15 +21,15 @@ class CryptographyStub(object):
|
|
|
18
21
|
channel: A grpc.Channel.
|
|
19
22
|
"""
|
|
20
23
|
self.Echo = channel.unary_unary(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
'/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
25
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
26
|
+
response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
27
|
+
)
|
|
25
28
|
self.GetAlgorithms = channel.unary_unary(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
30
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
31
|
+
response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
|
|
32
|
+
)
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
class CryptographyServicer(object):
|
|
@@ -35,15 +38,13 @@ class CryptographyServicer(object):
|
|
|
35
38
|
"""
|
|
36
39
|
|
|
37
40
|
def Echo(self, request, context):
|
|
38
|
-
"""Standard echo
|
|
39
|
-
"""
|
|
41
|
+
"""Standard echo"""
|
|
40
42
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
43
|
context.set_details('Method not implemented!')
|
|
42
44
|
raise NotImplementedError('Method not implemented!')
|
|
43
45
|
|
|
44
46
|
def GetAlgorithms(self, request, context):
|
|
45
|
-
"""Get Cryptographic algorithms associated with a list of PURLs
|
|
46
|
-
"""
|
|
47
|
+
"""Get Cryptographic algorithms associated with a list of PURLs"""
|
|
47
48
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
49
|
context.set_details('Method not implemented!')
|
|
49
50
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -51,58 +52,83 @@ class CryptographyServicer(object):
|
|
|
51
52
|
|
|
52
53
|
def add_CryptographyServicer_to_server(servicer, server):
|
|
53
54
|
rpc_method_handlers = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
'Echo': grpc.unary_unary_rpc_method_handler(
|
|
56
|
+
servicer.Echo,
|
|
57
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
|
|
58
|
+
response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
|
|
59
|
+
),
|
|
60
|
+
'GetAlgorithms': grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.GetAlgorithms,
|
|
62
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
|
|
63
|
+
response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.SerializeToString,
|
|
64
|
+
),
|
|
64
65
|
}
|
|
65
66
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
-
|
|
67
|
+
'scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers
|
|
68
|
+
)
|
|
67
69
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
73
|
class Cryptography(object):
|
|
72
74
|
"""
|
|
73
75
|
Expose all of the SCANOSS Cryptography RPCs here
|
|
74
76
|
"""
|
|
75
77
|
|
|
76
78
|
@staticmethod
|
|
77
|
-
def Echo(
|
|
79
|
+
def Echo(
|
|
80
|
+
request,
|
|
81
|
+
target,
|
|
82
|
+
options=(),
|
|
83
|
+
channel_credentials=None,
|
|
84
|
+
call_credentials=None,
|
|
85
|
+
insecure=False,
|
|
86
|
+
compression=None,
|
|
87
|
+
wait_for_ready=None,
|
|
88
|
+
timeout=None,
|
|
89
|
+
metadata=None,
|
|
90
|
+
):
|
|
91
|
+
return grpc.experimental.unary_unary(
|
|
92
|
+
request,
|
|
78
93
|
target,
|
|
79
|
-
|
|
80
|
-
channel_credentials=None,
|
|
81
|
-
call_credentials=None,
|
|
82
|
-
insecure=False,
|
|
83
|
-
compression=None,
|
|
84
|
-
wait_for_ready=None,
|
|
85
|
-
timeout=None,
|
|
86
|
-
metadata=None):
|
|
87
|
-
return grpc.experimental.unary_unary(request, target, '/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
94
|
+
'/scanoss.api.cryptography.v2.Cryptography/Echo',
|
|
88
95
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
89
96
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
90
|
-
options,
|
|
91
|
-
|
|
97
|
+
options,
|
|
98
|
+
channel_credentials,
|
|
99
|
+
insecure,
|
|
100
|
+
call_credentials,
|
|
101
|
+
compression,
|
|
102
|
+
wait_for_ready,
|
|
103
|
+
timeout,
|
|
104
|
+
metadata,
|
|
105
|
+
)
|
|
92
106
|
|
|
93
107
|
@staticmethod
|
|
94
|
-
def GetAlgorithms(
|
|
108
|
+
def GetAlgorithms(
|
|
109
|
+
request,
|
|
110
|
+
target,
|
|
111
|
+
options=(),
|
|
112
|
+
channel_credentials=None,
|
|
113
|
+
call_credentials=None,
|
|
114
|
+
insecure=False,
|
|
115
|
+
compression=None,
|
|
116
|
+
wait_for_ready=None,
|
|
117
|
+
timeout=None,
|
|
118
|
+
metadata=None,
|
|
119
|
+
):
|
|
120
|
+
return grpc.experimental.unary_unary(
|
|
121
|
+
request,
|
|
95
122
|
target,
|
|
96
|
-
|
|
97
|
-
channel_credentials=None,
|
|
98
|
-
call_credentials=None,
|
|
99
|
-
insecure=False,
|
|
100
|
-
compression=None,
|
|
101
|
-
wait_for_ready=None,
|
|
102
|
-
timeout=None,
|
|
103
|
-
metadata=None):
|
|
104
|
-
return grpc.experimental.unary_unary(request, target, '/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
123
|
+
'/scanoss.api.cryptography.v2.Cryptography/GetAlgorithms',
|
|
105
124
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
|
|
106
125
|
scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
|
|
107
|
-
options,
|
|
108
|
-
|
|
126
|
+
options,
|
|
127
|
+
channel_credentials,
|
|
128
|
+
insecure,
|
|
129
|
+
call_credentials,
|
|
130
|
+
compression,
|
|
131
|
+
wait_for_ready,
|
|
132
|
+
timeout,
|
|
133
|
+
metadata,
|
|
134
|
+
)
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright (c) 2021, SCANOSS
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
23
|
"""
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright (c) 2021, SCANOSS
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
23
|
"""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# source: scanoss/api/dependencies/v2/scanoss-dependencies.proto
|
|
4
4
|
"""Generated protocol buffer code."""
|
|
5
|
+
|
|
5
6
|
from google.protobuf.internal import builder as _builder
|
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
|
7
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -16,32 +17,37 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
16
17
|
from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
21
|
+
b'\n6scanoss/api/dependencies/v2/scanoss-dependencies.proto\x12\x1bscanoss.api.dependencies.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto"\xef\x01\n\x11\x44\x65pendencyRequest\x12\x43\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x34.scanoss.api.dependencies.v2.DependencyRequest.Files\x12\r\n\x05\x64\x65pth\x18\x02 \x01(\x05\x1a*\n\x05Purls\x12\x0c\n\x04purl\x18\x01 \x01(\t\x12\x13\n\x0brequirement\x18\x02 \x01(\t\x1aZ\n\x05\x46iles\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\x43\n\x05purls\x18\x02 \x03(\x0b\x32\x34.scanoss.api.dependencies.v2.DependencyRequest.Purls"\x98\x04\n\x12\x44\x65pendencyResponse\x12\x44\n\x05\x66iles\x18\x01 \x03(\x0b\x32\x35.scanoss.api.dependencies.v2.DependencyResponse.Files\x12\x35\n\x06status\x18\x02 \x01(\x0b\x32%.scanoss.api.common.v2.StatusResponse\x1aP\n\x08Licenses\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07spdx_id\x18\x02 \x01(\t\x12\x18\n\x10is_spdx_approved\x18\x03 \x01(\x08\x12\x0b\n\x03url\x18\x04 \x01(\t\x1a\xaa\x01\n\x0c\x44\x65pendencies\x12\x11\n\tcomponent\x18\x01 \x01(\t\x12\x0c\n\x04purl\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12J\n\x08licenses\x18\x04 \x03(\x0b\x32\x38.scanoss.api.dependencies.v2.DependencyResponse.Licenses\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x0f\n\x07\x63omment\x18\x06 \x01(\t\x1a\x85\x01\n\x05\x46iles\x12\x0c\n\x04\x66ile\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\t\x12R\n\x0c\x64\x65pendencies\x18\x04 \x03(\x0b\x32<.scanoss.api.dependencies.v2.DependencyResponse.Dependencies2\xa8\x02\n\x0c\x44\x65pendencies\x12u\n\x04\x45\x63ho\x12".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse"$\x82\xd3\xe4\x93\x02\x1e"\x19/api/v2/dependencies/echo:\x01*\x12\xa0\x01\n\x0fGetDependencies\x12..scanoss.api.dependencies.v2.DependencyRequest\x1a/.scanoss.api.dependencies.v2.DependencyResponse",\x82\xd3\xe4\x93\x02&"!/api/v2/dependencies/dependencies:\x01*B\x9c\x02Z9github.com/scanoss/papi/api/dependenciesv2;dependenciesv2\x92\x41\xdd\x01\x12w\n\x1aSCANOSS Dependency Service"T\n\x14scanoss-dependencies\x12\'https://github.com/scanoss/dependencies\x1a\x13support@scanoss.com2\x03\x32.0*\x01\x01\x32\x10\x61pplication/json:\x10\x61pplication/jsonR;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07\x62\x06proto3'
|
|
22
|
+
)
|
|
20
23
|
|
|
21
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
25
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.dependencies.v2.scanoss_dependencies_pb2', globals())
|
|
23
26
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'Z9github.com/scanoss/papi/api/dependenciesv2;dependenciesv2\222A\335\001\022w\n\032SCANOSS Dependency Service"T\n\024scanoss-dependencies\022\'https://github.com/scanoss/dependencies\032\023support@scanoss.com2\0032.0*\001\0012\020application/json:\020application/jsonR;\n\003404\0224\n*Returned when the resource does not exist.\022\006\n\004\232\002\001\007'
|
|
29
|
+
_DEPENDENCIES.methods_by_name['Echo']._options = None
|
|
30
|
+
_DEPENDENCIES.methods_by_name[
|
|
31
|
+
'Echo'
|
|
32
|
+
]._serialized_options = b'\202\323\344\223\002\036"\031/api/v2/dependencies/echo:\001*'
|
|
33
|
+
_DEPENDENCIES.methods_by_name['GetDependencies']._options = None
|
|
34
|
+
_DEPENDENCIES.methods_by_name[
|
|
35
|
+
'GetDependencies'
|
|
36
|
+
]._serialized_options = b'\202\323\344\223\002&"!/api/v2/dependencies/dependencies:\001*'
|
|
37
|
+
_DEPENDENCYREQUEST._serialized_start = 208
|
|
38
|
+
_DEPENDENCYREQUEST._serialized_end = 447
|
|
39
|
+
_DEPENDENCYREQUEST_PURLS._serialized_start = 313
|
|
40
|
+
_DEPENDENCYREQUEST_PURLS._serialized_end = 355
|
|
41
|
+
_DEPENDENCYREQUEST_FILES._serialized_start = 357
|
|
42
|
+
_DEPENDENCYREQUEST_FILES._serialized_end = 447
|
|
43
|
+
_DEPENDENCYRESPONSE._serialized_start = 450
|
|
44
|
+
_DEPENDENCYRESPONSE._serialized_end = 986
|
|
45
|
+
_DEPENDENCYRESPONSE_LICENSES._serialized_start = 597
|
|
46
|
+
_DEPENDENCYRESPONSE_LICENSES._serialized_end = 677
|
|
47
|
+
_DEPENDENCYRESPONSE_DEPENDENCIES._serialized_start = 680
|
|
48
|
+
_DEPENDENCYRESPONSE_DEPENDENCIES._serialized_end = 850
|
|
49
|
+
_DEPENDENCYRESPONSE_FILES._serialized_start = 853
|
|
50
|
+
_DEPENDENCYRESPONSE_FILES._serialized_end = 986
|
|
51
|
+
_DEPENDENCIES._serialized_start = 989
|
|
52
|
+
_DEPENDENCIES._serialized_end = 1285
|
|
47
53
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
|
|
3
4
|
import grpc
|
|
4
5
|
|
|
5
6
|
from scanoss.api.common.v2 import scanoss_common_pb2 as scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2
|
|
6
|
-
from scanoss.api.dependencies.v2 import
|
|
7
|
+
from scanoss.api.dependencies.v2 import (
|
|
8
|
+
scanoss_dependencies_pb2 as scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2,
|
|
9
|
+
)
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
class DependenciesStub(object):
|
|
@@ -18,15 +21,15 @@ class DependenciesStub(object):
|
|
|
18
21
|
channel: A grpc.Channel.
|
|
19
22
|
"""
|
|
20
23
|
self.Echo = channel.unary_unary(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
'/scanoss.api.dependencies.v2.Dependencies/Echo',
|
|
25
|
+
request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
26
|
+
response_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
27
|
+
)
|
|
25
28
|
self.GetDependencies = channel.unary_unary(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
'/scanoss.api.dependencies.v2.Dependencies/GetDependencies',
|
|
30
|
+
request_serializer=scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyRequest.SerializeToString,
|
|
31
|
+
response_deserializer=scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyResponse.FromString,
|
|
32
|
+
)
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
class DependenciesServicer(object):
|
|
@@ -35,15 +38,13 @@ class DependenciesServicer(object):
|
|
|
35
38
|
"""
|
|
36
39
|
|
|
37
40
|
def Echo(self, request, context):
|
|
38
|
-
"""Standard echo
|
|
39
|
-
"""
|
|
41
|
+
"""Standard echo"""
|
|
40
42
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
41
43
|
context.set_details('Method not implemented!')
|
|
42
44
|
raise NotImplementedError('Method not implemented!')
|
|
43
45
|
|
|
44
46
|
def GetDependencies(self, request, context):
|
|
45
|
-
"""Get dependency details
|
|
46
|
-
"""
|
|
47
|
+
"""Get dependency details"""
|
|
47
48
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
49
|
context.set_details('Method not implemented!')
|
|
49
50
|
raise NotImplementedError('Method not implemented!')
|
|
@@ -51,58 +52,83 @@ class DependenciesServicer(object):
|
|
|
51
52
|
|
|
52
53
|
def add_DependenciesServicer_to_server(servicer, server):
|
|
53
54
|
rpc_method_handlers = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
'Echo': grpc.unary_unary_rpc_method_handler(
|
|
56
|
+
servicer.Echo,
|
|
57
|
+
request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.FromString,
|
|
58
|
+
response_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.SerializeToString,
|
|
59
|
+
),
|
|
60
|
+
'GetDependencies': grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.GetDependencies,
|
|
62
|
+
request_deserializer=scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyRequest.FromString,
|
|
63
|
+
response_serializer=scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyResponse.SerializeToString,
|
|
64
|
+
),
|
|
64
65
|
}
|
|
65
66
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
66
|
-
|
|
67
|
+
'scanoss.api.dependencies.v2.Dependencies', rpc_method_handlers
|
|
68
|
+
)
|
|
67
69
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
|
|
72
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
73
|
class Dependencies(object):
|
|
72
74
|
"""
|
|
73
75
|
Expose all of the SCANOSS Dependency RPCs here
|
|
74
76
|
"""
|
|
75
77
|
|
|
76
78
|
@staticmethod
|
|
77
|
-
def Echo(
|
|
79
|
+
def Echo(
|
|
80
|
+
request,
|
|
81
|
+
target,
|
|
82
|
+
options=(),
|
|
83
|
+
channel_credentials=None,
|
|
84
|
+
call_credentials=None,
|
|
85
|
+
insecure=False,
|
|
86
|
+
compression=None,
|
|
87
|
+
wait_for_ready=None,
|
|
88
|
+
timeout=None,
|
|
89
|
+
metadata=None,
|
|
90
|
+
):
|
|
91
|
+
return grpc.experimental.unary_unary(
|
|
92
|
+
request,
|
|
78
93
|
target,
|
|
79
|
-
|
|
80
|
-
channel_credentials=None,
|
|
81
|
-
call_credentials=None,
|
|
82
|
-
insecure=False,
|
|
83
|
-
compression=None,
|
|
84
|
-
wait_for_ready=None,
|
|
85
|
-
timeout=None,
|
|
86
|
-
metadata=None):
|
|
87
|
-
return grpc.experimental.unary_unary(request, target, '/scanoss.api.dependencies.v2.Dependencies/Echo',
|
|
94
|
+
'/scanoss.api.dependencies.v2.Dependencies/Echo',
|
|
88
95
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoRequest.SerializeToString,
|
|
89
96
|
scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.EchoResponse.FromString,
|
|
90
|
-
options,
|
|
91
|
-
|
|
97
|
+
options,
|
|
98
|
+
channel_credentials,
|
|
99
|
+
insecure,
|
|
100
|
+
call_credentials,
|
|
101
|
+
compression,
|
|
102
|
+
wait_for_ready,
|
|
103
|
+
timeout,
|
|
104
|
+
metadata,
|
|
105
|
+
)
|
|
92
106
|
|
|
93
107
|
@staticmethod
|
|
94
|
-
def GetDependencies(
|
|
108
|
+
def GetDependencies(
|
|
109
|
+
request,
|
|
110
|
+
target,
|
|
111
|
+
options=(),
|
|
112
|
+
channel_credentials=None,
|
|
113
|
+
call_credentials=None,
|
|
114
|
+
insecure=False,
|
|
115
|
+
compression=None,
|
|
116
|
+
wait_for_ready=None,
|
|
117
|
+
timeout=None,
|
|
118
|
+
metadata=None,
|
|
119
|
+
):
|
|
120
|
+
return grpc.experimental.unary_unary(
|
|
121
|
+
request,
|
|
95
122
|
target,
|
|
96
|
-
|
|
97
|
-
channel_credentials=None,
|
|
98
|
-
call_credentials=None,
|
|
99
|
-
insecure=False,
|
|
100
|
-
compression=None,
|
|
101
|
-
wait_for_ready=None,
|
|
102
|
-
timeout=None,
|
|
103
|
-
metadata=None):
|
|
104
|
-
return grpc.experimental.unary_unary(request, target, '/scanoss.api.dependencies.v2.Dependencies/GetDependencies',
|
|
123
|
+
'/scanoss.api.dependencies.v2.Dependencies/GetDependencies',
|
|
105
124
|
scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyRequest.SerializeToString,
|
|
106
125
|
scanoss_dot_api_dot_dependencies_dot_v2_dot_scanoss__dependencies__pb2.DependencyResponse.FromString,
|
|
107
|
-
options,
|
|
108
|
-
|
|
126
|
+
options,
|
|
127
|
+
channel_credentials,
|
|
128
|
+
insecure,
|
|
129
|
+
call_credentials,
|
|
130
|
+
compression,
|
|
131
|
+
wait_for_ready,
|
|
132
|
+
timeout,
|
|
133
|
+
metadata,
|
|
134
|
+
)
|
scanoss/api/scanning/__init__.py
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright (c) 2021, SCANOSS
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
23
|
"""
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
SPDX-License-Identifier: MIT
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Copyright (c) 2021, SCANOSS
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
23
|
"""
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# source: scanoss/api/scanning/v2/scanoss-scanning.proto
|
|
4
4
|
"""Generated protocol buffer code."""
|
|
5
|
+
|
|
5
6
|
from google.protobuf.internal import builder as _builder
|
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
|
7
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -16,16 +17,17 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
16
17
|
from protoc_gen_swagger.options import annotations_pb2 as protoc__gen__swagger_dot_options_dot_annotations__pb2
|
|
17
18
|
|
|
18
19
|
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
|
21
|
+
b'\n.scanoss/api/scanning/v2/scanoss-scanning.proto\x12\x17scanoss.api.scanning.v2\x1a*scanoss/api/common/v2/scanoss-common.proto\x1a\x1cgoogle/api/annotations.proto\x1a,protoc-gen-swagger/options/annotations.proto2}\n\x08Scanning\x12q\n\x04\x45\x63ho\x12".scanoss.api.common.v2.EchoRequest\x1a#.scanoss.api.common.v2.EchoResponse" \x82\xd3\xe4\x93\x02\x1a"\x15/api/v2/scanning/echo:\x01*B\x8a\x02Z1github.com/scanoss/papi/api/scanningv2;scanningv2\x92\x41\xd3\x01\x12m\n\x18SCANOSS Scanning Service"L\n\x10scanoss-scanning\x12#https://github.com/scanoss/scanning\x1a\x13support@scanoss.com2\x03\x32.0*\x01\x01\x32\x10\x61pplication/json:\x10\x61pplication/jsonR;\n\x03\x34\x30\x34\x12\x34\n*Returned when the resource does not exist.\x12\x06\n\x04\x9a\x02\x01\x07\x62\x06proto3'
|
|
22
|
+
)
|
|
20
23
|
|
|
21
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
22
25
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scanoss.api.scanning.v2.scanoss_scanning_pb2', globals())
|
|
23
26
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_SCANNING._serialized_end=320
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'Z1github.com/scanoss/papi/api/scanningv2;scanningv2\222A\323\001\022m\n\030SCANOSS Scanning Service"L\n\020scanoss-scanning\022#https://github.com/scanoss/scanning\032\023support@scanoss.com2\0032.0*\001\0012\020application/json:\020application/jsonR;\n\003404\0224\n*Returned when the resource does not exist.\022\006\n\004\232\002\001\007'
|
|
29
|
+
_SCANNING.methods_by_name['Echo']._options = None
|
|
30
|
+
_SCANNING.methods_by_name['Echo']._serialized_options = b'\202\323\344\223\002\032"\025/api/v2/scanning/echo:\001*'
|
|
31
|
+
_SCANNING._serialized_start = 195
|
|
32
|
+
_SCANNING._serialized_end = 320
|
|
31
33
|
# @@protoc_insertion_point(module_scope)
|