ecosyste-ms-cli 1.3.2__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 (84) hide show
  1. ecosyste_ms_cli-1.3.2.dist-info/METADATA +133 -0
  2. ecosyste_ms_cli-1.3.2.dist-info/RECORD +84 -0
  3. ecosyste_ms_cli-1.3.2.dist-info/WHEEL +5 -0
  4. ecosyste_ms_cli-1.3.2.dist-info/entry_points.txt +2 -0
  5. ecosyste_ms_cli-1.3.2.dist-info/licenses/LICENSE +21 -0
  6. ecosyste_ms_cli-1.3.2.dist-info/top_level.txt +1 -0
  7. ecosystems_cli/__init__.py +3 -0
  8. ecosystems_cli/__main__.py +4 -0
  9. ecosystems_cli/apis/__init__.py +0 -0
  10. ecosystems_cli/apis/advisories.openapi.yaml +347 -0
  11. ecosystems_cli/apis/archives.openapi.yaml +193 -0
  12. ecosystems_cli/apis/commits.openapi.yaml +391 -0
  13. ecosystems_cli/apis/dependabot.openapi.yaml +887 -0
  14. ecosystems_cli/apis/diff.openapi.yaml +90 -0
  15. ecosystems_cli/apis/docker.openapi.yaml +534 -0
  16. ecosystems_cli/apis/issues.openapi.yaml +839 -0
  17. ecosystems_cli/apis/licenses.openapi.yaml +80 -0
  18. ecosystems_cli/apis/opencollective.openapi.yaml +247 -0
  19. ecosystems_cli/apis/packages.openapi.yaml +2522 -0
  20. ecosystems_cli/apis/parser.openapi.yaml +97 -0
  21. ecosystems_cli/apis/registries.yaml +155 -0
  22. ecosystems_cli/apis/repos.openapi.yaml +1521 -0
  23. ecosystems_cli/apis/resolve.openapi.yaml +130 -0
  24. ecosystems_cli/apis/sbom.openapi.yaml +79 -0
  25. ecosystems_cli/apis/sponsors.openapi.yaml +283 -0
  26. ecosystems_cli/apis/summary.openapi.yaml +239 -0
  27. ecosystems_cli/apis/timeline.openapi.yaml +91 -0
  28. ecosystems_cli/cli.py +213 -0
  29. ecosystems_cli/commands/__init__.py +1 -0
  30. ecosystems_cli/commands/advisories.py +109 -0
  31. ecosystems_cli/commands/archives.py +5 -0
  32. ecosystems_cli/commands/commits.py +5 -0
  33. ecosystems_cli/commands/decorators.py +101 -0
  34. ecosystems_cli/commands/dependabot.py +5 -0
  35. ecosystems_cli/commands/diff.py +144 -0
  36. ecosystems_cli/commands/docker.py +5 -0
  37. ecosystems_cli/commands/execution.py +99 -0
  38. ecosystems_cli/commands/generator.py +127 -0
  39. ecosystems_cli/commands/handlers/__init__.py +45 -0
  40. ecosystems_cli/commands/handlers/advisories.py +73 -0
  41. ecosystems_cli/commands/handlers/archives.py +40 -0
  42. ecosystems_cli/commands/handlers/base.py +38 -0
  43. ecosystems_cli/commands/handlers/commits.py +76 -0
  44. ecosystems_cli/commands/handlers/default.py +40 -0
  45. ecosystems_cli/commands/handlers/dependabot.py +205 -0
  46. ecosystems_cli/commands/handlers/diff.py +72 -0
  47. ecosystems_cli/commands/handlers/docker.py +142 -0
  48. ecosystems_cli/commands/handlers/factory.py +60 -0
  49. ecosystems_cli/commands/handlers/issues.py +87 -0
  50. ecosystems_cli/commands/handlers/licenses.py +52 -0
  51. ecosystems_cli/commands/handlers/opencollective.py +86 -0
  52. ecosystems_cli/commands/handlers/packages.py +103 -0
  53. ecosystems_cli/commands/handlers/parser.py +57 -0
  54. ecosystems_cli/commands/handlers/repos.py +97 -0
  55. ecosystems_cli/commands/handlers/resolve.py +68 -0
  56. ecosystems_cli/commands/handlers/sbom.py +52 -0
  57. ecosystems_cli/commands/handlers/sponsors.py +52 -0
  58. ecosystems_cli/commands/handlers/summary.py +81 -0
  59. ecosystems_cli/commands/handlers/timeline.py +45 -0
  60. ecosystems_cli/commands/issues.py +5 -0
  61. ecosystems_cli/commands/licenses.py +135 -0
  62. ecosystems_cli/commands/mcp.py +54 -0
  63. ecosystems_cli/commands/opencollective.py +5 -0
  64. ecosystems_cli/commands/packages.py +151 -0
  65. ecosystems_cli/commands/parser.py +135 -0
  66. ecosystems_cli/commands/repos.py +5 -0
  67. ecosystems_cli/commands/resolve.py +160 -0
  68. ecosystems_cli/commands/sbom.py +135 -0
  69. ecosystems_cli/commands/sponsors.py +5 -0
  70. ecosystems_cli/commands/summary.py +5 -0
  71. ecosystems_cli/commands/timeline.py +5 -0
  72. ecosystems_cli/constants.py +92 -0
  73. ecosystems_cli/exceptions.py +149 -0
  74. ecosystems_cli/helpers/click_params.py +49 -0
  75. ecosystems_cli/helpers/flatten_dict.py +15 -0
  76. ecosystems_cli/helpers/format_value.py +30 -0
  77. ecosystems_cli/helpers/get_domain.py +68 -0
  78. ecosystems_cli/helpers/load_api_spec.py +31 -0
  79. ecosystems_cli/helpers/print_error.py +15 -0
  80. ecosystems_cli/helpers/print_operations.py +73 -0
  81. ecosystems_cli/helpers/print_output.py +183 -0
  82. ecosystems_cli/helpers/purl_parser.py +121 -0
  83. ecosystems_cli/mcp_server.py +267 -0
  84. ecosystems_cli/openapi_client.py +461 -0
@@ -0,0 +1,90 @@
1
+ ---
2
+ openapi: 3.0.1
3
+ info:
4
+ title: 'Ecosyste.ms: Diff'
5
+ description: An open API service to generate diffs between package releases for
6
+ many open source software ecosystems.
7
+ contact:
8
+ name: Ecosyste.ms
9
+ email: support@ecosyste.ms
10
+ url: https://ecosyste.ms
11
+ version: 1.0.0
12
+ license:
13
+ name: CC-BY-SA-4.0
14
+ url: https://creativecommons.org/licenses/by-sa/4.0/
15
+ externalDocs:
16
+ description: GitHub Repository
17
+ url: https://github.com/ecosyste-ms/diff
18
+ servers:
19
+ - url: https://diff.ecosyste.ms/api/v1
20
+ paths:
21
+ "/jobs":
22
+ post:
23
+ summary: submit a diff job
24
+ operationId: createJob
25
+ parameters:
26
+ - name: url_1
27
+ in: query
28
+ description: first url of file or zip/tar archive
29
+ required: true
30
+ schema:
31
+ type: string
32
+ - name: url_2
33
+ in: query
34
+ description: second url of file or zip/tar archive
35
+ required: true
36
+ schema:
37
+ type: string
38
+ responses:
39
+ 301:
40
+ description: Redirect
41
+ headers:
42
+ location:
43
+ description: URL of submitted job
44
+ schema:
45
+ type: string
46
+ "/jobs/{jobID}":
47
+ get:
48
+ summary: fetch job by id
49
+ operationId: getJob
50
+ parameters:
51
+ - in: path
52
+ name: jobID
53
+ schema:
54
+ type: string
55
+ required: true
56
+ description: id of job
57
+ responses:
58
+ 200:
59
+ description: OK
60
+ content:
61
+ application/json:
62
+ schema:
63
+ "$ref": "#/components/schemas/Job"
64
+ components:
65
+ schemas:
66
+ Job:
67
+ type: object
68
+ properties:
69
+ id:
70
+ type: string
71
+ url_1:
72
+ type: string
73
+ url_2:
74
+ type: string
75
+ status:
76
+ type: string
77
+ results:
78
+ type: object
79
+ created_at:
80
+ type: string
81
+ format: date-time
82
+ updated_at:
83
+ type: string
84
+ format: date-time
85
+ sidekiq_id:
86
+ type: string
87
+ sha256_1:
88
+ type: string
89
+ sha256_2:
90
+ type: string
@@ -0,0 +1,534 @@
1
+ ---
2
+ openapi: 3.0.1
3
+ info:
4
+ title: 'Ecosyste.ms: Docker'
5
+ description: An open API service providing dependency metadata for docker images.
6
+ contact:
7
+ name: Ecosyste.ms
8
+ email: support@ecosyste.ms
9
+ url: https://ecosyste.ms
10
+ version: 1.0.0
11
+ license:
12
+ name: CC-BY-SA-4.0
13
+ url: https://creativecommons.org/licenses/by-sa/4.0/
14
+ externalDocs:
15
+ description: GitHub Repository
16
+ url: https://github.com/ecosyste-ms/docker
17
+ servers:
18
+ - url: https://docker.ecosyste.ms/api/v1
19
+ paths:
20
+ "/packages":
21
+ get:
22
+ summary: get a list of packages
23
+ operationId: getPackages
24
+ tags:
25
+ - packages
26
+ parameters:
27
+ - name: page
28
+ in: query
29
+ description: pagination page number
30
+ required: false
31
+ schema:
32
+ type: integer
33
+ - name: per_page
34
+ in: query
35
+ description: Number of records to return
36
+ required: false
37
+ schema:
38
+ type: integer
39
+ - name: created_after
40
+ in: query
41
+ description: filter by created_at after given time
42
+ required: false
43
+ schema:
44
+ type: string
45
+ format: date-time
46
+ - name: updated_after
47
+ in: query
48
+ description: filter by updated_at after given time
49
+ required: false
50
+ schema:
51
+ type: string
52
+ format: date-time
53
+ - name: sort
54
+ in: query
55
+ description: field to order results by
56
+ required: false
57
+ schema:
58
+ type: string
59
+ - name: order
60
+ in: query
61
+ description: direction to order results by
62
+ required: false
63
+ schema:
64
+ type: string
65
+ responses:
66
+ 200:
67
+ description: OK
68
+ content:
69
+ application/json:
70
+ schema:
71
+ type: array
72
+ items:
73
+ "$ref": "#/components/schemas/Package"
74
+ "/packages/{packageName}":
75
+ get:
76
+ summary: get a package by name
77
+ operationId: getPackage
78
+ tags:
79
+ - packages
80
+ parameters:
81
+ - in: path
82
+ name: packageName
83
+ schema:
84
+ type: string
85
+ required: true
86
+ description: name of package
87
+ responses:
88
+ 200:
89
+ description: OK
90
+ content:
91
+ application/json:
92
+ schema:
93
+ "$ref": "#/components/schemas/Package"
94
+ "/packages/{packageName}/versions":
95
+ get:
96
+ summary: get a list of versions for a package
97
+ operationId: getPackageVersions
98
+ tags:
99
+ - packages
100
+ parameters:
101
+ - in: path
102
+ name: packageName
103
+ schema:
104
+ type: string
105
+ required: true
106
+ description: name of package
107
+ - name: page
108
+ in: query
109
+ description: pagination page number
110
+ required: false
111
+ schema:
112
+ type: integer
113
+ - name: per_page
114
+ in: query
115
+ description: Number of records to return
116
+ required: false
117
+ schema:
118
+ type: integer
119
+ - name: created_after
120
+ in: query
121
+ description: filter by created_at after given time
122
+ required: false
123
+ schema:
124
+ type: string
125
+ format: date-time
126
+ - name: updated_after
127
+ in: query
128
+ description: filter by updated_at after given time
129
+ required: false
130
+ schema:
131
+ type: string
132
+ format: date-time
133
+ - name: published_after
134
+ in: query
135
+ description: filter by published_at after given time
136
+ required: false
137
+ schema:
138
+ type: string
139
+ format: date-time
140
+ - name: sort
141
+ in: query
142
+ description: field to order results by
143
+ required: false
144
+ schema:
145
+ type: string
146
+ - name: order
147
+ in: query
148
+ description: direction to order results by
149
+ required: false
150
+ schema:
151
+ type: string
152
+ responses:
153
+ 200:
154
+ description: OK
155
+ content:
156
+ application/json:
157
+ schema:
158
+ type: array
159
+ items:
160
+ "$ref": "#/components/schemas/Version"
161
+ "/packages/{packageName}/versions/{versionNumber}":
162
+ get:
163
+ summary: get a version of a package
164
+ operationId: getPackageVersion
165
+ tags:
166
+ - packages
167
+ parameters:
168
+ - in: path
169
+ name: packageName
170
+ schema:
171
+ type: string
172
+ required: true
173
+ description: name of package
174
+ - in: path
175
+ name: versionNumber
176
+ schema:
177
+ type: string
178
+ required: true
179
+ description: number of version
180
+ responses:
181
+ 200:
182
+ description: OK
183
+ content:
184
+ application/json:
185
+ schema:
186
+ "$ref": "#/components/schemas/Version"
187
+ "/usage":
188
+ get:
189
+ summary: Get package usage ecosystems
190
+ operationId: usage
191
+ responses:
192
+ 200:
193
+ description: OK
194
+ content:
195
+ application/json:
196
+ schema:
197
+ type: array
198
+ items:
199
+ "$ref": "#/components/schemas/Ecosystem"
200
+ "/usage/{ecosystem}":
201
+ get:
202
+ summary: Get package usage for an ecosystem
203
+ operationId: usageEcosystem
204
+ parameters:
205
+ - name: ecosystem
206
+ in: path
207
+ description: The ecosystem to get usage for
208
+ required: true
209
+ schema:
210
+ type: string
211
+ responses:
212
+ 200:
213
+ description: OK
214
+ content:
215
+ application/json:
216
+ schema:
217
+ type: array
218
+ items:
219
+ "$ref": "#/components/schemas/PackageUsage"
220
+ "/usage/{ecosystem}/{package}":
221
+ get:
222
+ summary: Get package usage for a package
223
+ operationId: usagePackage
224
+ parameters:
225
+ - name: ecosystem
226
+ in: path
227
+ description: The ecosystem to get usage for
228
+ required: true
229
+ schema:
230
+ type: string
231
+ - name: package
232
+ in: path
233
+ description: The package to get usage for
234
+ required: true
235
+ schema:
236
+ type: string
237
+ responses:
238
+ 200:
239
+ description: OK
240
+ content:
241
+ application/json:
242
+ schema:
243
+ "$ref": "#/components/schemas/PackageUsage"
244
+ "/distros":
245
+ get:
246
+ summary: get a list of Linux distributions
247
+ operationId: getDistros
248
+ tags:
249
+ - distros
250
+ parameters:
251
+ - name: page
252
+ in: query
253
+ description: pagination page number
254
+ required: false
255
+ schema:
256
+ type: integer
257
+ - name: per_page
258
+ in: query
259
+ description: Number of records to return
260
+ required: false
261
+ schema:
262
+ type: integer
263
+ - name: created_after
264
+ in: query
265
+ description: filter by created_at after given time
266
+ required: false
267
+ schema:
268
+ type: string
269
+ format: date-time
270
+ - name: updated_after
271
+ in: query
272
+ description: filter by updated_at after given time
273
+ required: false
274
+ schema:
275
+ type: string
276
+ format: date-time
277
+ - name: sort
278
+ in: query
279
+ description: field to order results by
280
+ required: false
281
+ schema:
282
+ type: string
283
+ - name: order
284
+ in: query
285
+ description: direction to order results by
286
+ required: false
287
+ schema:
288
+ type: string
289
+ - name: query
290
+ in: query
291
+ description: search query for distro name or id
292
+ required: false
293
+ schema:
294
+ type: string
295
+ responses:
296
+ 200:
297
+ description: OK
298
+ content:
299
+ application/json:
300
+ schema:
301
+ type: array
302
+ items:
303
+ "$ref": "#/components/schemas/Distro"
304
+ "/distros/{slug}":
305
+ get:
306
+ summary: get a Linux distribution by slug
307
+ operationId: getDistro
308
+ tags:
309
+ - distros
310
+ parameters:
311
+ - in: path
312
+ name: slug
313
+ schema:
314
+ type: string
315
+ required: true
316
+ description: slug of distribution
317
+ responses:
318
+ 200:
319
+ description: OK
320
+ content:
321
+ application/json:
322
+ schema:
323
+ "$ref": "#/components/schemas/Distro"
324
+ "/distros/{slug}/versions":
325
+ get:
326
+ summary: get a list of versions for a Linux distribution
327
+ operationId: getDistroVersions
328
+ tags:
329
+ - distros
330
+ parameters:
331
+ - in: path
332
+ name: slug
333
+ schema:
334
+ type: string
335
+ required: true
336
+ description: slug of distribution
337
+ - name: page
338
+ in: query
339
+ description: pagination page number
340
+ required: false
341
+ schema:
342
+ type: integer
343
+ - name: per_page
344
+ in: query
345
+ description: Number of records to return
346
+ required: false
347
+ schema:
348
+ type: integer
349
+ - name: created_after
350
+ in: query
351
+ description: filter by created_at after given time
352
+ required: false
353
+ schema:
354
+ type: string
355
+ format: date-time
356
+ - name: updated_after
357
+ in: query
358
+ description: filter by updated_at after given time
359
+ required: false
360
+ schema:
361
+ type: string
362
+ format: date-time
363
+ - name: sort
364
+ in: query
365
+ description: field to order results by
366
+ required: false
367
+ schema:
368
+ type: string
369
+ - name: order
370
+ in: query
371
+ description: direction to order results by
372
+ required: false
373
+ schema:
374
+ type: string
375
+ responses:
376
+ 200:
377
+ description: OK
378
+ content:
379
+ application/json:
380
+ schema:
381
+ type: array
382
+ items:
383
+ "$ref": "#/components/schemas/Version"
384
+ components:
385
+ schemas:
386
+ Package:
387
+ type: object
388
+ properties:
389
+ name:
390
+ type: string
391
+ description:
392
+ type: string
393
+ versions_count:
394
+ type: integer
395
+ latest_release_published_at:
396
+ type: string
397
+ format: date-time
398
+ latest_release_number:
399
+ type: string
400
+ last_synced_at:
401
+ type: string
402
+ format: date-time
403
+ created_at:
404
+ type: string
405
+ format: date-time
406
+ updated_at:
407
+ type: string
408
+ format: date-time
409
+ downloads:
410
+ type: integer
411
+ versions_url:
412
+ type: string
413
+ Version:
414
+ type: object
415
+ properties:
416
+ number:
417
+ type: string
418
+ published_at:
419
+ type: string
420
+ created_at:
421
+ type: string
422
+ format: date-time
423
+ updated_at:
424
+ type: string
425
+ format: date-time
426
+ purl:
427
+ type: string
428
+ distro:
429
+ type: string
430
+ version_url:
431
+ type: string
432
+ package:
433
+ type: object
434
+ properties:
435
+ name:
436
+ type: string
437
+ package_url:
438
+ type: string
439
+ dependencies:
440
+ type: array
441
+ items:
442
+ "$ref": "#/components/schemas/Dependency"
443
+ Dependency:
444
+ type: object
445
+ properties:
446
+ ecosystem:
447
+ type: string
448
+ package_name:
449
+ type: string
450
+ requirements:
451
+ type: string
452
+ Ecosystem:
453
+ type: object
454
+ properties:
455
+ name:
456
+ type: string
457
+ packages_count:
458
+ type: integer
459
+ total_downloads:
460
+ type: integer
461
+ ecosystem_url:
462
+ type: string
463
+ PackageUsage:
464
+ type: object
465
+ properties:
466
+ ecosystem:
467
+ type: string
468
+ name:
469
+ type: string
470
+ dependents_count:
471
+ type: integer
472
+ requirements:
473
+ type: object
474
+ package_usage_url:
475
+ type: string
476
+ dependencies_url:
477
+ type: string
478
+ Distro:
479
+ type: object
480
+ properties:
481
+ id:
482
+ type: integer
483
+ pretty_name:
484
+ type: string
485
+ name:
486
+ type: string
487
+ id_field:
488
+ type: string
489
+ id_like:
490
+ type: string
491
+ version_id:
492
+ type: string
493
+ version_codename:
494
+ type: string
495
+ variant:
496
+ type: string
497
+ variant_id:
498
+ type: string
499
+ slug:
500
+ type: string
501
+ versions_count:
502
+ type: integer
503
+ total_downloads:
504
+ type: integer
505
+ home_url:
506
+ type: string
507
+ support_url:
508
+ type: string
509
+ bug_report_url:
510
+ type: string
511
+ documentation_url:
512
+ type: string
513
+ logo:
514
+ type: string
515
+ ansi_color:
516
+ type: string
517
+ cpe_name:
518
+ type: string
519
+ build_id:
520
+ type: string
521
+ image_id:
522
+ type: string
523
+ image_version:
524
+ type: string
525
+ created_at:
526
+ type: string
527
+ format: date-time
528
+ updated_at:
529
+ type: string
530
+ format: date-time
531
+ url:
532
+ type: string
533
+ html_url:
534
+ type: string