scanoss 1.32.0__py3-none-any.whl → 1.34.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.
Files changed (34) hide show
  1. protoc_gen_swagger/options/annotations_pb2.py +18 -12
  2. protoc_gen_swagger/options/annotations_pb2.pyi +48 -0
  3. protoc_gen_swagger/options/annotations_pb2_grpc.py +20 -0
  4. protoc_gen_swagger/options/openapiv2_pb2.py +110 -99
  5. protoc_gen_swagger/options/openapiv2_pb2.pyi +1317 -0
  6. protoc_gen_swagger/options/openapiv2_pb2_grpc.py +20 -0
  7. scanoss/__init__.py +1 -1
  8. scanoss/api/common/v2/scanoss_common_pb2.py +8 -6
  9. scanoss/api/common/v2/scanoss_common_pb2_grpc.py +5 -1
  10. scanoss/api/components/v2/scanoss_components_pb2.py +46 -32
  11. scanoss/api/components/v2/scanoss_components_pb2_grpc.py +6 -6
  12. scanoss/api/cryptography/v2/scanoss_cryptography_pb2.py +107 -29
  13. scanoss/api/cryptography/v2/scanoss_cryptography_pb2_grpc.py +545 -9
  14. scanoss/api/dependencies/v2/scanoss_dependencies_pb2.py +29 -21
  15. scanoss/api/dependencies/v2/scanoss_dependencies_pb2_grpc.py +1 -0
  16. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2.py +51 -19
  17. scanoss/api/geoprovenance/v2/scanoss_geoprovenance_pb2_grpc.py +189 -1
  18. scanoss/api/licenses/v2/scanoss_licenses_pb2.py +27 -27
  19. scanoss/api/scanning/v2/scanoss_scanning_pb2.py +18 -18
  20. scanoss/api/semgrep/v2/scanoss_semgrep_pb2.py +29 -13
  21. scanoss/api/semgrep/v2/scanoss_semgrep_pb2_grpc.py +102 -8
  22. scanoss/api/vulnerabilities/v2/scanoss_vulnerabilities_pb2.py +21 -21
  23. scanoss/cli.py +193 -146
  24. scanoss/components.py +57 -46
  25. scanoss/cryptography.py +64 -44
  26. scanoss/cyclonedx.py +22 -0
  27. scanoss/data/build_date.txt +1 -1
  28. scanoss/scanossgrpc.py +433 -314
  29. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/METADATA +4 -3
  30. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/RECORD +34 -32
  31. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/WHEEL +0 -0
  32. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/entry_points.txt +0 -0
  33. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/licenses/LICENSE +0 -0
  34. {scanoss-1.32.0.dist-info → scanoss-1.34.0.dist-info}/top_level.txt +0 -0
@@ -28,7 +28,10 @@ if _version_not_supported:
28
28
 
29
29
  class CryptographyStub(object):
30
30
  """
31
- Expose all of the SCANOSS Cryptography RPCs here
31
+ Cryptography Service Definition
32
+
33
+ Provides comprehensive cryptographic intelligence for software components
34
+ including algorithm detection, encryption hints, and security assessments.
32
35
  """
33
36
 
34
37
  def __init__(self, channel):
@@ -47,70 +50,280 @@ class CryptographyStub(object):
47
50
  request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
48
51
  response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.FromString,
49
52
  _registered_method=True)
53
+ self.GetComponentAlgorithms = channel.unary_unary(
54
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithms',
55
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
56
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.FromString,
57
+ _registered_method=True)
58
+ self.GetComponentsAlgorithms = channel.unary_unary(
59
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithms',
60
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
61
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.FromString,
62
+ _registered_method=True)
50
63
  self.GetAlgorithmsInRange = channel.unary_unary(
51
64
  '/scanoss.api.cryptography.v2.Cryptography/GetAlgorithmsInRange',
52
65
  request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
53
66
  response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.FromString,
54
67
  _registered_method=True)
68
+ self.GetComponentAlgorithmsInRange = channel.unary_unary(
69
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithmsInRange',
70
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
71
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.FromString,
72
+ _registered_method=True)
73
+ self.GetComponentsAlgorithmsInRange = channel.unary_unary(
74
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithmsInRange',
75
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
76
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.FromString,
77
+ _registered_method=True)
55
78
  self.GetVersionsInRange = channel.unary_unary(
56
79
  '/scanoss.api.cryptography.v2.Cryptography/GetVersionsInRange',
57
80
  request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
58
81
  response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.FromString,
59
82
  _registered_method=True)
83
+ self.GetComponentVersionsInRange = channel.unary_unary(
84
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentVersionsInRange',
85
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
86
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.FromString,
87
+ _registered_method=True)
88
+ self.GetComponentsVersionsInRange = channel.unary_unary(
89
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsVersionsInRange',
90
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
91
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.FromString,
92
+ _registered_method=True)
60
93
  self.GetHintsInRange = channel.unary_unary(
61
94
  '/scanoss.api.cryptography.v2.Cryptography/GetHintsInRange',
62
95
  request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
63
96
  response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.FromString,
64
97
  _registered_method=True)
98
+ self.GetComponentHintsInRange = channel.unary_unary(
99
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentHintsInRange',
100
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
101
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.FromString,
102
+ _registered_method=True)
103
+ self.GetComponentsHintsInRange = channel.unary_unary(
104
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsHintsInRange',
105
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
106
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.FromString,
107
+ _registered_method=True)
65
108
  self.GetEncryptionHints = channel.unary_unary(
66
109
  '/scanoss.api.cryptography.v2.Cryptography/GetEncryptionHints',
67
110
  request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.SerializeToString,
68
111
  response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.FromString,
69
112
  _registered_method=True)
113
+ self.GetComponentEncryptionHints = channel.unary_unary(
114
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentEncryptionHints',
115
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
116
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.FromString,
117
+ _registered_method=True)
118
+ self.GetComponentsEncryptionHints = channel.unary_unary(
119
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsEncryptionHints',
120
+ request_serializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
121
+ response_deserializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.FromString,
122
+ _registered_method=True)
70
123
 
71
124
 
72
125
  class CryptographyServicer(object):
73
126
  """
74
- Expose all of the SCANOSS Cryptography RPCs here
127
+ Cryptography Service Definition
128
+
129
+ Provides comprehensive cryptographic intelligence for software components
130
+ including algorithm detection, encryption hints, and security assessments.
75
131
  """
76
132
 
77
133
  def Echo(self, request, context):
78
- """Standard echo
134
+ """
135
+ Returns the same message that was sent, used for health checks and connectivity testing
79
136
  """
80
137
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
81
138
  context.set_details('Method not implemented!')
82
139
  raise NotImplementedError('Method not implemented!')
83
140
 
84
141
  def GetAlgorithms(self, request, context):
85
- """Get Cryptographic algorithms associated with a list of PURLs and, optionally, a requirement
142
+ """****** Algorithms ****** //
143
+
144
+
145
+ Get cryptographic algorithms associated with a list of PURLs - legacy endpoint.
146
+
147
+ Legacy method for retrieving cryptographic algorithms used by software components.
148
+ Use GetComponentAlgorithms or GetComponentsAlgorithms instead.
149
+ """
150
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
151
+ context.set_details('Method not implemented!')
152
+ raise NotImplementedError('Method not implemented!')
153
+
154
+ def GetComponentAlgorithms(self, request, context):
155
+ """
156
+ Get cryptographic algorithms associated with a single software component.
157
+
158
+ Analyzes the component and returns cryptographic algorithms detected in the codebase
159
+ including algorithm names and strength classifications.
160
+
161
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentalgorithms
162
+ """
163
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
164
+ context.set_details('Method not implemented!')
165
+ raise NotImplementedError('Method not implemented!')
166
+
167
+ def GetComponentsAlgorithms(self, request, context):
168
+ """
169
+ Get cryptographic algorithms associated with multiple software components in a single request.
170
+
171
+ Analyzes multiple components and returns cryptographic algorithms detected in each codebase
172
+ including algorithm names and strength classifications.
173
+
174
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentsalgorithms
86
175
  """
87
176
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
88
177
  context.set_details('Method not implemented!')
89
178
  raise NotImplementedError('Method not implemented!')
90
179
 
91
180
  def GetAlgorithmsInRange(self, request, context):
92
- """Given a list of PURLS and version ranges, get a list of cryptographic algorithms used
181
+ """****** Algorithms in range ****** //
182
+
183
+
184
+ Get cryptographic algorithms used across version ranges - legacy endpoint.
185
+
186
+ Legacy method for retrieving cryptographic algorithms across component version ranges.
187
+ Use GetComponentAlgorithmsInRange or GetComponentsAlgorithmsInRange instead.
188
+ """
189
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
190
+ context.set_details('Method not implemented!')
191
+ raise NotImplementedError('Method not implemented!')
192
+
193
+ def GetComponentAlgorithmsInRange(self, request, context):
194
+ """
195
+ Get cryptographic algorithms used by a component across specified version ranges.
196
+
197
+ Analyzes the component across version ranges and returns all cryptographic algorithms
198
+ detected along with the versions where they appear.
199
+
200
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentalgorithmsinrange
201
+ """
202
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
203
+ context.set_details('Method not implemented!')
204
+ raise NotImplementedError('Method not implemented!')
205
+
206
+ def GetComponentsAlgorithmsInRange(self, request, context):
207
+ """
208
+ Get cryptographic algorithms used by multiple components across specified version ranges.
209
+
210
+ Analyzes multiple components across version ranges and returns all cryptographic algorithms
211
+ detected along with the versions where they appear for each component.
212
+
213
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#getcomponentsalgorithmsinrange
93
214
  """
94
215
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
216
  context.set_details('Method not implemented!')
96
217
  raise NotImplementedError('Method not implemented!')
97
218
 
98
219
  def GetVersionsInRange(self, request, context):
99
- """Given a list of PURLS and version ranges, get a list of versions that do/do not contain cryptographic algorithms
220
+ """****** Versions in range ****** //
221
+
222
+
223
+ Get component versions that contain or don't contain cryptographic algorithms - legacy endpoint.
224
+
225
+ Legacy method for retrieving version lists based on cryptographic algorithm presence.
226
+ Use ComponentVersionsInRange or ComponentsVersionsInRange instead.
227
+ """
228
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
229
+ context.set_details('Method not implemented!')
230
+ raise NotImplementedError('Method not implemented!')
231
+
232
+ def GetComponentVersionsInRange(self, request, context):
233
+ """
234
+ Get component versions that contain or don't contain cryptographic algorithms within specified ranges.
235
+
236
+ Returns lists of versions that either contain cryptographic algorithms or don't,
237
+ helping assess cryptographic presence across component evolution.
238
+
239
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentversionsinrange
240
+ """
241
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
242
+ context.set_details('Method not implemented!')
243
+ raise NotImplementedError('Method not implemented!')
244
+
245
+ def GetComponentsVersionsInRange(self, request, context):
246
+ """
247
+ Get multiple component versions that contain or don't contain cryptographic algorithms within specified ranges.
248
+
249
+ Returns lists of versions for multiple components that either contain cryptographic algorithms or don't,
250
+ helping assess cryptographic presence across component evolution in batch operations.
251
+
252
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentsversionsinrange
100
253
  """
101
254
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
102
255
  context.set_details('Method not implemented!')
103
256
  raise NotImplementedError('Method not implemented!')
104
257
 
105
258
  def GetHintsInRange(self, request, context):
106
- """Given a list of PURLS and version ranges, get hints related to protocol/library/sdk/framework
259
+ """****** Hints in range ****** //
260
+
261
+
262
+ Get cryptographic hints across version ranges - legacy endpoint.
263
+
264
+ Legacy method for retrieving cryptographic hints related to protocols, libraries,
265
+ SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
266
+ """
267
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
268
+ context.set_details('Method not implemented!')
269
+ raise NotImplementedError('Method not implemented!')
270
+
271
+ def GetComponentHintsInRange(self, request, context):
272
+ """
273
+ Get cryptographic hints across version ranges - legacy endpoint.
274
+
275
+ Legacy method for retrieving cryptographic hints related to protocols, libraries,
276
+ SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
277
+ """
278
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
279
+ context.set_details('Method not implemented!')
280
+ raise NotImplementedError('Method not implemented!')
281
+
282
+ def GetComponentsHintsInRange(self, request, context):
283
+ """
284
+ Get cryptographic hints across version ranges - legacy endpoint.
285
+
286
+ Legacy method for retrieving cryptographic hints related to protocols, libraries,
287
+ SDKs and frameworks across version ranges. Use ComponentHintsInRange or ComponentsHintsInRange instead.
107
288
  """
108
289
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
109
290
  context.set_details('Method not implemented!')
110
291
  raise NotImplementedError('Method not implemented!')
111
292
 
112
293
  def GetEncryptionHints(self, request, context):
113
- """Given a list of PURLS, get hints related to protocol/library/sdk/framework
294
+ """****** Encryption hints ****** //
295
+
296
+
297
+ Get encryption hints for components - legacy endpoint.
298
+
299
+ Legacy method for retrieving hints about cryptographic protocols, libraries,
300
+ SDKs and frameworks used by components. Use ComponentHintsInRange or ComponentsHintsInRange instead.
301
+ """
302
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
303
+ context.set_details('Method not implemented!')
304
+ raise NotImplementedError('Method not implemented!')
305
+
306
+ def GetComponentEncryptionHints(self, request, context):
307
+ """
308
+ Get cryptographic hints for a single component.
309
+
310
+ Returns hints about cryptographic protocols, libraries, SDKs and frameworks
311
+ used by the component, providing insights into cryptographic dependencies.
312
+
313
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componenthintsinrange
314
+ """
315
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
316
+ context.set_details('Method not implemented!')
317
+ raise NotImplementedError('Method not implemented!')
318
+
319
+ def GetComponentsEncryptionHints(self, request, context):
320
+ """
321
+ Get cryptographic hints for multiple components in a single request.
322
+
323
+ Returns hints about cryptographic protocols, libraries, SDKs and frameworks
324
+ used by multiple components, providing insights into cryptographic dependencies.
325
+
326
+ See: https://github.com/scanoss/papi/blob/main/protobuf/scanoss/api/cryptography/v2/README.md#componentshintsinrange
114
327
  """
115
328
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
329
  context.set_details('Method not implemented!')
@@ -129,26 +342,76 @@ def add_CryptographyServicer_to_server(servicer, server):
129
342
  request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
130
343
  response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmResponse.SerializeToString,
131
344
  ),
345
+ 'GetComponentAlgorithms': grpc.unary_unary_rpc_method_handler(
346
+ servicer.GetComponentAlgorithms,
347
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
348
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.SerializeToString,
349
+ ),
350
+ 'GetComponentsAlgorithms': grpc.unary_unary_rpc_method_handler(
351
+ servicer.GetComponentsAlgorithms,
352
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
353
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.SerializeToString,
354
+ ),
132
355
  'GetAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
133
356
  servicer.GetAlgorithmsInRange,
134
357
  request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
135
358
  response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.AlgorithmsInRangeResponse.SerializeToString,
136
359
  ),
360
+ 'GetComponentAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
361
+ servicer.GetComponentAlgorithmsInRange,
362
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
363
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.SerializeToString,
364
+ ),
365
+ 'GetComponentsAlgorithmsInRange': grpc.unary_unary_rpc_method_handler(
366
+ servicer.GetComponentsAlgorithmsInRange,
367
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
368
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.SerializeToString,
369
+ ),
137
370
  'GetVersionsInRange': grpc.unary_unary_rpc_method_handler(
138
371
  servicer.GetVersionsInRange,
139
372
  request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
140
373
  response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.VersionsInRangeResponse.SerializeToString,
141
374
  ),
375
+ 'GetComponentVersionsInRange': grpc.unary_unary_rpc_method_handler(
376
+ servicer.GetComponentVersionsInRange,
377
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
378
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.SerializeToString,
379
+ ),
380
+ 'GetComponentsVersionsInRange': grpc.unary_unary_rpc_method_handler(
381
+ servicer.GetComponentsVersionsInRange,
382
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
383
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.SerializeToString,
384
+ ),
142
385
  'GetHintsInRange': grpc.unary_unary_rpc_method_handler(
143
386
  servicer.GetHintsInRange,
144
387
  request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
145
388
  response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsInRangeResponse.SerializeToString,
146
389
  ),
390
+ 'GetComponentHintsInRange': grpc.unary_unary_rpc_method_handler(
391
+ servicer.GetComponentHintsInRange,
392
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
393
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.SerializeToString,
394
+ ),
395
+ 'GetComponentsHintsInRange': grpc.unary_unary_rpc_method_handler(
396
+ servicer.GetComponentsHintsInRange,
397
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
398
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.SerializeToString,
399
+ ),
147
400
  'GetEncryptionHints': grpc.unary_unary_rpc_method_handler(
148
401
  servicer.GetEncryptionHints,
149
402
  request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.PurlRequest.FromString,
150
403
  response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.HintsResponse.SerializeToString,
151
404
  ),
405
+ 'GetComponentEncryptionHints': grpc.unary_unary_rpc_method_handler(
406
+ servicer.GetComponentEncryptionHints,
407
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.FromString,
408
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.SerializeToString,
409
+ ),
410
+ 'GetComponentsEncryptionHints': grpc.unary_unary_rpc_method_handler(
411
+ servicer.GetComponentsEncryptionHints,
412
+ request_deserializer=scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.FromString,
413
+ response_serializer=scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.SerializeToString,
414
+ ),
152
415
  }
153
416
  generic_handler = grpc.method_handlers_generic_handler(
154
417
  'scanoss.api.cryptography.v2.Cryptography', rpc_method_handlers)
@@ -159,7 +422,10 @@ def add_CryptographyServicer_to_server(servicer, server):
159
422
  # This class is part of an EXPERIMENTAL API.
160
423
  class Cryptography(object):
161
424
  """
162
- Expose all of the SCANOSS Cryptography RPCs here
425
+ Cryptography Service Definition
426
+
427
+ Provides comprehensive cryptographic intelligence for software components
428
+ including algorithm detection, encryption hints, and security assessments.
163
429
  """
164
430
 
165
431
  @staticmethod
@@ -216,6 +482,60 @@ class Cryptography(object):
216
482
  metadata,
217
483
  _registered_method=True)
218
484
 
485
+ @staticmethod
486
+ def GetComponentAlgorithms(request,
487
+ target,
488
+ options=(),
489
+ channel_credentials=None,
490
+ call_credentials=None,
491
+ insecure=False,
492
+ compression=None,
493
+ wait_for_ready=None,
494
+ timeout=None,
495
+ metadata=None):
496
+ return grpc.experimental.unary_unary(
497
+ request,
498
+ target,
499
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithms',
500
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
501
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsResponse.FromString,
502
+ options,
503
+ channel_credentials,
504
+ insecure,
505
+ call_credentials,
506
+ compression,
507
+ wait_for_ready,
508
+ timeout,
509
+ metadata,
510
+ _registered_method=True)
511
+
512
+ @staticmethod
513
+ def GetComponentsAlgorithms(request,
514
+ target,
515
+ options=(),
516
+ channel_credentials=None,
517
+ call_credentials=None,
518
+ insecure=False,
519
+ compression=None,
520
+ wait_for_ready=None,
521
+ timeout=None,
522
+ metadata=None):
523
+ return grpc.experimental.unary_unary(
524
+ request,
525
+ target,
526
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithms',
527
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
528
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsResponse.FromString,
529
+ options,
530
+ channel_credentials,
531
+ insecure,
532
+ call_credentials,
533
+ compression,
534
+ wait_for_ready,
535
+ timeout,
536
+ metadata,
537
+ _registered_method=True)
538
+
219
539
  @staticmethod
220
540
  def GetAlgorithmsInRange(request,
221
541
  target,
@@ -243,6 +563,60 @@ class Cryptography(object):
243
563
  metadata,
244
564
  _registered_method=True)
245
565
 
566
+ @staticmethod
567
+ def GetComponentAlgorithmsInRange(request,
568
+ target,
569
+ options=(),
570
+ channel_credentials=None,
571
+ call_credentials=None,
572
+ insecure=False,
573
+ compression=None,
574
+ wait_for_ready=None,
575
+ timeout=None,
576
+ metadata=None):
577
+ return grpc.experimental.unary_unary(
578
+ request,
579
+ target,
580
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentAlgorithmsInRange',
581
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
582
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentAlgorithmsInRangeResponse.FromString,
583
+ options,
584
+ channel_credentials,
585
+ insecure,
586
+ call_credentials,
587
+ compression,
588
+ wait_for_ready,
589
+ timeout,
590
+ metadata,
591
+ _registered_method=True)
592
+
593
+ @staticmethod
594
+ def GetComponentsAlgorithmsInRange(request,
595
+ target,
596
+ options=(),
597
+ channel_credentials=None,
598
+ call_credentials=None,
599
+ insecure=False,
600
+ compression=None,
601
+ wait_for_ready=None,
602
+ timeout=None,
603
+ metadata=None):
604
+ return grpc.experimental.unary_unary(
605
+ request,
606
+ target,
607
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsAlgorithmsInRange',
608
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
609
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsAlgorithmsInRangeResponse.FromString,
610
+ options,
611
+ channel_credentials,
612
+ insecure,
613
+ call_credentials,
614
+ compression,
615
+ wait_for_ready,
616
+ timeout,
617
+ metadata,
618
+ _registered_method=True)
619
+
246
620
  @staticmethod
247
621
  def GetVersionsInRange(request,
248
622
  target,
@@ -270,6 +644,60 @@ class Cryptography(object):
270
644
  metadata,
271
645
  _registered_method=True)
272
646
 
647
+ @staticmethod
648
+ def GetComponentVersionsInRange(request,
649
+ target,
650
+ options=(),
651
+ channel_credentials=None,
652
+ call_credentials=None,
653
+ insecure=False,
654
+ compression=None,
655
+ wait_for_ready=None,
656
+ timeout=None,
657
+ metadata=None):
658
+ return grpc.experimental.unary_unary(
659
+ request,
660
+ target,
661
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentVersionsInRange',
662
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
663
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentVersionsInRangeResponse.FromString,
664
+ options,
665
+ channel_credentials,
666
+ insecure,
667
+ call_credentials,
668
+ compression,
669
+ wait_for_ready,
670
+ timeout,
671
+ metadata,
672
+ _registered_method=True)
673
+
674
+ @staticmethod
675
+ def GetComponentsVersionsInRange(request,
676
+ target,
677
+ options=(),
678
+ channel_credentials=None,
679
+ call_credentials=None,
680
+ insecure=False,
681
+ compression=None,
682
+ wait_for_ready=None,
683
+ timeout=None,
684
+ metadata=None):
685
+ return grpc.experimental.unary_unary(
686
+ request,
687
+ target,
688
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsVersionsInRange',
689
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
690
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsVersionsInRangeResponse.FromString,
691
+ options,
692
+ channel_credentials,
693
+ insecure,
694
+ call_credentials,
695
+ compression,
696
+ wait_for_ready,
697
+ timeout,
698
+ metadata,
699
+ _registered_method=True)
700
+
273
701
  @staticmethod
274
702
  def GetHintsInRange(request,
275
703
  target,
@@ -297,6 +725,60 @@ class Cryptography(object):
297
725
  metadata,
298
726
  _registered_method=True)
299
727
 
728
+ @staticmethod
729
+ def GetComponentHintsInRange(request,
730
+ target,
731
+ options=(),
732
+ channel_credentials=None,
733
+ call_credentials=None,
734
+ insecure=False,
735
+ compression=None,
736
+ wait_for_ready=None,
737
+ timeout=None,
738
+ metadata=None):
739
+ return grpc.experimental.unary_unary(
740
+ request,
741
+ target,
742
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentHintsInRange',
743
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
744
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentHintsInRangeResponse.FromString,
745
+ options,
746
+ channel_credentials,
747
+ insecure,
748
+ call_credentials,
749
+ compression,
750
+ wait_for_ready,
751
+ timeout,
752
+ metadata,
753
+ _registered_method=True)
754
+
755
+ @staticmethod
756
+ def GetComponentsHintsInRange(request,
757
+ target,
758
+ options=(),
759
+ channel_credentials=None,
760
+ call_credentials=None,
761
+ insecure=False,
762
+ compression=None,
763
+ wait_for_ready=None,
764
+ timeout=None,
765
+ metadata=None):
766
+ return grpc.experimental.unary_unary(
767
+ request,
768
+ target,
769
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsHintsInRange',
770
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
771
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsHintsInRangeResponse.FromString,
772
+ options,
773
+ channel_credentials,
774
+ insecure,
775
+ call_credentials,
776
+ compression,
777
+ wait_for_ready,
778
+ timeout,
779
+ metadata,
780
+ _registered_method=True)
781
+
300
782
  @staticmethod
301
783
  def GetEncryptionHints(request,
302
784
  target,
@@ -323,3 +805,57 @@ class Cryptography(object):
323
805
  timeout,
324
806
  metadata,
325
807
  _registered_method=True)
808
+
809
+ @staticmethod
810
+ def GetComponentEncryptionHints(request,
811
+ target,
812
+ options=(),
813
+ channel_credentials=None,
814
+ call_credentials=None,
815
+ insecure=False,
816
+ compression=None,
817
+ wait_for_ready=None,
818
+ timeout=None,
819
+ metadata=None):
820
+ return grpc.experimental.unary_unary(
821
+ request,
822
+ target,
823
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentEncryptionHints',
824
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentRequest.SerializeToString,
825
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentEncryptionHintsResponse.FromString,
826
+ options,
827
+ channel_credentials,
828
+ insecure,
829
+ call_credentials,
830
+ compression,
831
+ wait_for_ready,
832
+ timeout,
833
+ metadata,
834
+ _registered_method=True)
835
+
836
+ @staticmethod
837
+ def GetComponentsEncryptionHints(request,
838
+ target,
839
+ options=(),
840
+ channel_credentials=None,
841
+ call_credentials=None,
842
+ insecure=False,
843
+ compression=None,
844
+ wait_for_ready=None,
845
+ timeout=None,
846
+ metadata=None):
847
+ return grpc.experimental.unary_unary(
848
+ request,
849
+ target,
850
+ '/scanoss.api.cryptography.v2.Cryptography/GetComponentsEncryptionHints',
851
+ scanoss_dot_api_dot_common_dot_v2_dot_scanoss__common__pb2.ComponentsRequest.SerializeToString,
852
+ scanoss_dot_api_dot_cryptography_dot_v2_dot_scanoss__cryptography__pb2.ComponentsEncryptionHintsResponse.FromString,
853
+ options,
854
+ channel_credentials,
855
+ insecure,
856
+ call_credentials,
857
+ compression,
858
+ wait_for_ready,
859
+ timeout,
860
+ metadata,
861
+ _registered_method=True)