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,80 @@
1
+ ---
2
+ openapi: 3.0.1
3
+ info:
4
+ title: 'Ecosyste.ms: Licenses'
5
+ description: An open API service to parse license metadata from many open source
6
+ 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/licenses
18
+ servers:
19
+ - url: https://licenses.ecosyste.ms/api/v1
20
+ paths:
21
+ "/jobs":
22
+ post:
23
+ summary: submit a dependency parsing job
24
+ operationId: createJob
25
+ parameters:
26
+ - name: url
27
+ in: query
28
+ description: url of file or zip/tar archive
29
+ required: true
30
+ schema:
31
+ type: string
32
+ responses:
33
+ 301:
34
+ description: Redirect
35
+ headers:
36
+ location:
37
+ description: URL of submitted job
38
+ schema:
39
+ type: string
40
+ "/jobs/{jobID}":
41
+ get:
42
+ summary: fetch job by id
43
+ operationId: getJob
44
+ parameters:
45
+ - in: path
46
+ name: jobID
47
+ schema:
48
+ type: string
49
+ required: true
50
+ description: id of job
51
+ responses:
52
+ 200:
53
+ description: OK
54
+ content:
55
+ application/json:
56
+ schema:
57
+ "$ref": "#/components/schemas/Job"
58
+ components:
59
+ schemas:
60
+ Job:
61
+ type: object
62
+ properties:
63
+ id:
64
+ type: string
65
+ url:
66
+ type: string
67
+ status:
68
+ type: string
69
+ results:
70
+ type: object
71
+ created_at:
72
+ type: string
73
+ format: date-time
74
+ updated_at:
75
+ type: string
76
+ format: date-time
77
+ sidekiq_id:
78
+ type: string
79
+ sha256:
80
+ type: string
@@ -0,0 +1,247 @@
1
+ ---
2
+ openapi: 3.0.1
3
+ info:
4
+ title: 'Ecosyste.ms: OpenCollective'
5
+ description: An open API service for software projects hosted on opencollective.
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 Project
16
+ url: https://github.com/ecosyste-ms/opencollective
17
+ servers:
18
+ - url: https://opencollective.ecosyste.ms/api/v1
19
+ paths:
20
+ "/projects":
21
+ get:
22
+ description: get projects
23
+ operationId: getProjects
24
+ tags:
25
+ - projects
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
+ responses:
40
+ 200:
41
+ description: OK
42
+ content:
43
+ application/json:
44
+ schema:
45
+ type: array
46
+ items:
47
+ "$ref": "#/components/schemas/Project"
48
+ "/projects/{id}":
49
+ get:
50
+ description: get a project by id
51
+ operationId: getProject
52
+ tags:
53
+ - projects
54
+ parameters:
55
+ - in: path
56
+ name: id
57
+ schema:
58
+ type: integer
59
+ required: true
60
+ description: id of the project
61
+ responses:
62
+ 200:
63
+ description: OK
64
+ content:
65
+ application/json:
66
+ schema:
67
+ "$ref": "#/components/schemas/Project"
68
+ "/projects/lookup":
69
+ get:
70
+ description: lookup project by url
71
+ operationId: lookupProject
72
+ tags:
73
+ - projects
74
+ parameters:
75
+ - name: url
76
+ in: query
77
+ description: url of the project
78
+ required: true
79
+ schema:
80
+ type: string
81
+ responses:
82
+ 200:
83
+ description: OK
84
+ content:
85
+ application/json:
86
+ schema:
87
+ "$ref": "#/components/schemas/Project"
88
+ "/projects/packages":
89
+ get:
90
+ description: get projects with packages
91
+ operationId: getProjectPackages
92
+ tags:
93
+ - projects
94
+ responses:
95
+ 200:
96
+ description: OK
97
+ content:
98
+ application/json:
99
+ schema:
100
+ type: array
101
+ items:
102
+ "$ref": "#/components/schemas/Project"
103
+ "/collectives":
104
+ get:
105
+ description: get collectives
106
+ operationId: getCollectives
107
+ tags:
108
+ - collectives
109
+ parameters:
110
+ - name: page
111
+ in: query
112
+ description: pagination page number
113
+ required: false
114
+ schema:
115
+ type: integer
116
+ - name: per_page
117
+ in: query
118
+ description: number of records to return
119
+ required: false
120
+ schema:
121
+ type: integer
122
+ responses:
123
+ 200:
124
+ description: OK
125
+ content:
126
+ application/json:
127
+ schema:
128
+ type: array
129
+ items:
130
+ "$ref": "#/components/schemas/Collective"
131
+ "/collectives/{id}":
132
+ get:
133
+ description: get a collective by id
134
+ operationId: getCollective
135
+ tags:
136
+ - collectives
137
+ parameters:
138
+ - in: path
139
+ name: id
140
+ schema:
141
+ type: integer
142
+ required: true
143
+ description: id of the collective
144
+ responses:
145
+ 200:
146
+ description: OK
147
+ content:
148
+ application/json:
149
+ schema:
150
+ "$ref": "#/components/schemas/Collective"
151
+ "/collectives/{slug}/projects":
152
+ get:
153
+ description: get projects for a collective by slug
154
+ operationId: getCollectiveProjects
155
+ tags:
156
+ - collectives
157
+ parameters:
158
+ - in: path
159
+ name: slug
160
+ schema:
161
+ type: string
162
+ required: true
163
+ description: slug of the collective
164
+ responses:
165
+ 200:
166
+ description: OK
167
+ content:
168
+ application/json:
169
+ schema:
170
+ type: array
171
+ items:
172
+ "$ref": "#/components/schemas/Project"
173
+ components:
174
+ schemas:
175
+ Project:
176
+ type: object
177
+ properties:
178
+ id:
179
+ type: integer
180
+ url:
181
+ type: string
182
+ last_synced_at:
183
+ type: string
184
+ format: date-time
185
+ repository:
186
+ type: object
187
+ owner:
188
+ type: object
189
+ packages:
190
+ type: array
191
+ items:
192
+ type: object
193
+ commits:
194
+ type: object
195
+ issues:
196
+ type: object
197
+ events:
198
+ type: object
199
+ keywords:
200
+ type: array
201
+ items:
202
+ type: string
203
+ dependencies:
204
+ type: object
205
+ score:
206
+ type: number
207
+ created_at:
208
+ type: string
209
+ format: date-time
210
+ updated_at:
211
+ type: string
212
+ format: date-time
213
+ avatar_url:
214
+ type: string
215
+ language:
216
+ type: string
217
+ category:
218
+ type: string
219
+ sub_category:
220
+ type: string
221
+ monthly_downloads:
222
+ type: integer
223
+ funding_links:
224
+ type: array
225
+ items:
226
+ type: string
227
+ works:
228
+ type: object
229
+ Collective:
230
+ type: object
231
+ properties:
232
+ id:
233
+ type: integer
234
+ url:
235
+ type: string
236
+ name:
237
+ type: string
238
+ description:
239
+ type: string
240
+ avatar_url:
241
+ type: string
242
+ created_at:
243
+ type: string
244
+ format: date-time
245
+ updated_at:
246
+ type: string
247
+ format: date-time