cloudshellgpt 1.0.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.
- cloudshellgpt/__init__.py +11 -0
- cloudshellgpt/audit.py +175 -0
- cloudshellgpt/bedrock_translator.py +525 -0
- cloudshellgpt/cli.py +612 -0
- cloudshellgpt/config.py +296 -0
- cloudshellgpt/cost.py +443 -0
- cloudshellgpt/executor.py +382 -0
- cloudshellgpt/formatter.py +328 -0
- cloudshellgpt/i18n.py +203 -0
- cloudshellgpt/intent.py +1080 -0
- cloudshellgpt/learning.py +969 -0
- cloudshellgpt/mcp_server.py +264 -0
- cloudshellgpt/safety.py +952 -0
- cloudshellgpt-1.0.0.dist-info/METADATA +426 -0
- cloudshellgpt-1.0.0.dist-info/RECORD +18 -0
- cloudshellgpt-1.0.0.dist-info/WHEEL +4 -0
- cloudshellgpt-1.0.0.dist-info/entry_points.txt +2 -0
- cloudshellgpt-1.0.0.dist-info/licenses/LICENSE +198 -0
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cloudshellgpt
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: AWS CLI that speaks your language. Natural language to AWS operations via Amazon Bedrock.
|
|
5
|
+
Project-URL: Homepage, https://github.com/blaylopez/cloudshellgpt
|
|
6
|
+
Project-URL: Documentation, https://github.com/blaylopez/cloudshellgpt#readme
|
|
7
|
+
Project-URL: Repository, https://github.com/blaylopez/cloudshellgpt
|
|
8
|
+
Project-URL: Issues, https://github.com/blaylopez/cloudshellgpt/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/blaylopez/cloudshellgpt/blob/main/CHANGELOG.md
|
|
10
|
+
Author-email: CloudShellGPT Team <team@cloudshellgpt.dev>
|
|
11
|
+
License: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: ai,aws,bedrock,cli,developer-tools,productivity
|
|
14
|
+
Classifier: Development Status :: 4 - Beta
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Topic :: Software Development
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Requires-Dist: boto3>=1.34.0
|
|
22
|
+
Requires-Dist: botocore>=1.34.0
|
|
23
|
+
Requires-Dist: httpx>=0.27.0
|
|
24
|
+
Requires-Dist: langdetect>=1.0.9
|
|
25
|
+
Requires-Dist: mcp>=1.0.0
|
|
26
|
+
Requires-Dist: pydantic-settings>=2.1.0
|
|
27
|
+
Requires-Dist: pydantic>=2.5.0
|
|
28
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
29
|
+
Requires-Dist: pyyaml>=6.0.1
|
|
30
|
+
Requires-Dist: rich>=13.7.0
|
|
31
|
+
Requires-Dist: textual>=0.79.0
|
|
32
|
+
Requires-Dist: typer>=0.12.0
|
|
33
|
+
Provides-Extra: dev
|
|
34
|
+
Requires-Dist: boto3-stubs>=1.34.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: build>=1.2.0; extra == 'dev'
|
|
36
|
+
Requires-Dist: bumpversion>=0.6.0; extra == 'dev'
|
|
37
|
+
Requires-Dist: moto[all]>=5.0.0; extra == 'dev'
|
|
38
|
+
Requires-Dist: mypy>=1.10.0; extra == 'dev'
|
|
39
|
+
Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
|
|
40
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
|
|
41
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
|
|
42
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
43
|
+
Requires-Dist: ruff>=0.4.0; extra == 'dev'
|
|
44
|
+
Requires-Dist: twine>=5.0.0; extra == 'dev'
|
|
45
|
+
Requires-Dist: types-pyyaml>=6.0.0; extra == 'dev'
|
|
46
|
+
Description-Content-Type: text/markdown
|
|
47
|
+
|
|
48
|
+
# ⚡ CloudShellGPT
|
|
49
|
+
|
|
50
|
+
> **AWS CLI que habla tu idioma.**
|
|
51
|
+
> Natural language → AWS operations · powered by Amazon Bedrock
|
|
52
|
+
|
|
53
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
54
|
+
[](https://www.python.org/downloads/)
|
|
55
|
+
[](https://aws.amazon.com/bedrock/)
|
|
56
|
+
[](https://modelcontextprotocol.io)
|
|
57
|
+
[](https://kiro.dev)
|
|
58
|
+
|
|
59
|
+
CloudShellGPT convierte tus intenciones en lenguaje natural (en **cualquier idioma**) en comandos AWS CLI correctos, seguros y con predicción de costos. Construido con [Amazon Bedrock](https://aws.amazon.com/bedrock/) (Claude Sonnet 4.6) y compatible con [Kiro](https://kiro.dev) como MCP server.
|
|
60
|
+
|
|
61
|
+
> 🏆 Built for **HACKATHONKIRO** — Category: *Agentes especializados & Productividad para developers*
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 🎯 ¿Qué problema resuelve?
|
|
66
|
+
|
|
67
|
+
| Problema | Cómo CloudShellGPT lo resuelve |
|
|
68
|
+
|---|---|
|
|
69
|
+
| AWS CLI tiene 2,500+ comandos imposibles de memorizar | Describe lo que quieres en tu idioma, nosotros lo traducimos |
|
|
70
|
+
| La documentación de AWS está en inglés y es densa | Soporte nativo para ES, EN, PT, FR, DE, ZH |
|
|
71
|
+
| Los comandos destructivos son peligrosos | Confirmación typed + dry-run automático + cost preview |
|
|
72
|
+
| Los developers junior no saben qué comando usar | Modo `--explain` te enseña qué hace cada flag |
|
|
73
|
+
| Las facturas de AWS sorprenden al final del mes | Predicción de costo antes de ejecutar |
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## ⚡ Quick Start
|
|
78
|
+
|
|
79
|
+
### Instalación (30 segundos)
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
# Desde GitHub (recomendado)
|
|
83
|
+
pip install git+https://github.com/blaylopez/cloudshellgpt.git
|
|
84
|
+
|
|
85
|
+
# O con uv (más rápido)
|
|
86
|
+
uv pip install git+https://github.com/blaylopez/cloudshellgpt.git
|
|
87
|
+
|
|
88
|
+
# Desde PyPI (próximamente)
|
|
89
|
+
# pip install cloudshellgpt
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### Configuración inicial (1 minuto)
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# 1. Asegúrate de tener credenciales AWS
|
|
96
|
+
aws configure
|
|
97
|
+
|
|
98
|
+
# 2. Habilita el modelo Claude Sonnet 4.6 en Bedrock (one-click)
|
|
99
|
+
# https://console.aws.amazon.com/bedrock/home?region=us-east-1#/modelaccess
|
|
100
|
+
|
|
101
|
+
# 3. (Opcional) Configura defaults
|
|
102
|
+
csgpt config --set-region us-west-2
|
|
103
|
+
csgpt config --set-language es
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Primer uso (10 segundos)
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
# Antes: tenías que saber el comando exacto
|
|
110
|
+
$ aws s3api list-buckets --query 'Buckets[].{Name:Name,Created:CreationDate}' --output table
|
|
111
|
+
|
|
112
|
+
# Ahora: solo describe lo que quieres
|
|
113
|
+
$ csgpt ask "lista los buckets de S3 con su fecha de creación"
|
|
114
|
+
|
|
115
|
+
# Output:
|
|
116
|
+
# ⚡ CloudShellGPT v1.0.0 — AWS CLI that speaks your language
|
|
117
|
+
#
|
|
118
|
+
# ┌──────────────────────────┬─────────────────────┐
|
|
119
|
+
# │ Name │ Created │
|
|
120
|
+
# ├──────────────────────────┼─────────────────────┤
|
|
121
|
+
# │ mi-bucket-produccion │ 2024-03-15T10:23:01 │
|
|
122
|
+
# │ mi-bucket-staging │ 2024-09-22T14:18:33 │
|
|
123
|
+
# │ backups-2023 │ 2023-11-08T08:45:12 │
|
|
124
|
+
# └──────────────────────────┴─────────────────────┘
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## 🎬 Demo — 7 ejemplos que impresionan
|
|
130
|
+
|
|
131
|
+
### 1. En español, sin saber AWS CLI
|
|
132
|
+
```bash
|
|
133
|
+
$ csgpt ask "muéstrame las funciones lambda de mi cuenta"
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 2. En portugués, detección automática de idioma
|
|
137
|
+
```bash
|
|
138
|
+
$ csgpt ask "liste os buckets do S3 com data de criação"
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 3. Crear un recurso (DynamoDB)
|
|
142
|
+
```bash
|
|
143
|
+
$ csgpt ask "crea una tabla en DynamoDB llamada hackathon-users con partition key user_id"
|
|
144
|
+
# Output:
|
|
145
|
+
# ╭──────────── Plan ─────────────╮
|
|
146
|
+
# │ Comando: aws dynamodb create-table --table-name hackathon-users
|
|
147
|
+
# │ --attribute-definitions AttributeName=user_id,AttributeType=S
|
|
148
|
+
# │ --key-schema AttributeName=user_id,KeyType=HASH
|
|
149
|
+
# │ --billing-mode PAY_PER_REQUEST
|
|
150
|
+
# │
|
|
151
|
+
# │ Riesgo: medium
|
|
152
|
+
# │ Costo: $1.25 por millón de escrituras / $0.25 por millón de lecturas
|
|
153
|
+
# ╰──────────────────────────────╯
|
|
154
|
+
# Proceed? [Y/n]: y
|
|
155
|
+
# ✓ Tabla creada: arn:aws:dynamodb:us-east-1:***:table/hackathon-users
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### 4. Eliminar un recurso (con confirmación de seguridad)
|
|
159
|
+
```bash
|
|
160
|
+
$ csgpt ask "elimina la tabla DynamoDB hackathon-users"
|
|
161
|
+
# Output:
|
|
162
|
+
# ╭──────────── Plan ─────────────╮
|
|
163
|
+
# │ Comando: aws dynamodb delete-table --table-name hackathon-users
|
|
164
|
+
# │ Riesgo: high
|
|
165
|
+
# │ Recursos afectados: dynamodb:table/hackathon-users, todos los ítems, índices GSI/LSI
|
|
166
|
+
# ╰──────────────────────────────╯
|
|
167
|
+
# ⚠️ OPERACIÓN DE ALTO RIESGO
|
|
168
|
+
# Escribe el nombre del recurso ("dynamodb:table/hackathon-users") para confirmar: _
|
|
169
|
+
#
|
|
170
|
+
# 💡 Consejo: Antes de eliminar, considera hacer un backup con
|
|
171
|
+
# 'aws dynamodb create-backup' o exportar a S3.
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### 5. Con predicción de costo
|
|
175
|
+
```bash
|
|
176
|
+
$ csgpt ask "spin up a rds postgres db.t3.medium for 30 days" --cost-only
|
|
177
|
+
# Output:
|
|
178
|
+
# ╭──────────────── Cost Preview ────────────────╮
|
|
179
|
+
# │ Estimated cost: ~$60–$75 per month │
|
|
180
|
+
# │ (db.t3.medium On-Demand ~$0.082/hr │
|
|
181
|
+
# │ + gp3 storage ~$0.115/GB-month) │
|
|
182
|
+
# ╰──────────────────────────────────────────────╯
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 6. Modo aprendizaje
|
|
186
|
+
```bash
|
|
187
|
+
$ csgpt ask "lista las funciones lambda con su runtime" --explain
|
|
188
|
+
# Output:
|
|
189
|
+
# ✓ Ejecutado
|
|
190
|
+
#
|
|
191
|
+
# What just happened? (educational mode)
|
|
192
|
+
# - aws lambda list-functions: Obtiene todas las funciones Lambda de la cuenta
|
|
193
|
+
# - --query: Filtra y selecciona campos relevantes (nombre, runtime, memoria, timeout)
|
|
194
|
+
# - --output table: Presenta la información en formato tabular legible
|
|
195
|
+
# - --no-paginate: Devuelve todos los resultados en una sola llamada
|
|
196
|
+
#
|
|
197
|
+
# 💡 Consejo: Los runtimes deprecated dejan de recibir actualizaciones de seguridad.
|
|
198
|
+
# Filtra por runtime específico añadiendo '?Runtime==`python3.8`' al query.
|
|
199
|
+
#
|
|
200
|
+
# 🔗 Relacionados:
|
|
201
|
+
# aws lambda get-function --function-name NOMBRE
|
|
202
|
+
# aws lambda list-functions --query 'Functions[?Runtime==`nodejs18.x`]...'
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### 7. Explicar un comando existente (sin ejecutar)
|
|
206
|
+
```bash
|
|
207
|
+
$ csgpt explain "aws s3 rm s3://my-bucket --recursive"
|
|
208
|
+
# Output:
|
|
209
|
+
# ╭─────────────── Explanation ───────────────╮
|
|
210
|
+
# │ Service: Amazon S3 (high-level commands)
|
|
211
|
+
# │ Operation: rm — permanently deletes objects
|
|
212
|
+
# │
|
|
213
|
+
# │ Flags:
|
|
214
|
+
# │ s3://my-bucket → Targets the entire bucket root
|
|
215
|
+
# │ --recursive → Traverse all keys under the prefix
|
|
216
|
+
# │
|
|
217
|
+
# │ ⚠️ Common Pitfalls:
|
|
218
|
+
# │ - Does NOT delete the bucket itself
|
|
219
|
+
# │ - Versioned buckets: only adds Delete Markers
|
|
220
|
+
# │ - No confirmation prompt — executes immediately
|
|
221
|
+
# │ - Use --dryrun first to preview deletions
|
|
222
|
+
# │
|
|
223
|
+
# │ 💡 Dry-run:
|
|
224
|
+
# │ aws s3 rm s3://my-bucket --recursive --dryrun
|
|
225
|
+
# ╰──────────────────────────────────────────╯
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## 🏗️ Arquitectura
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
┌──────────────────────────────────────────────────────────────┐
|
|
234
|
+
│ USER TERMINAL │
|
|
235
|
+
│ $ csgpt ask "lista los buckets de S3" │
|
|
236
|
+
└────────────────────┬─────────────────────────────────────────┘
|
|
237
|
+
│
|
|
238
|
+
▼
|
|
239
|
+
┌────────────────┐
|
|
240
|
+
│ csgpt CLI │
|
|
241
|
+
│ (Python 3.12)│
|
|
242
|
+
└────────┬───────┘
|
|
243
|
+
│
|
|
244
|
+
┌─────────────┼─────────────┐
|
|
245
|
+
│ │ │
|
|
246
|
+
▼ ▼ ▼
|
|
247
|
+
┌──────────┐ ┌──────────┐ ┌──────────┐
|
|
248
|
+
│ Intent │ │ Bedrock │ │ Safety │
|
|
249
|
+
│ Parser │→ │Translator│→ │ Layer │
|
|
250
|
+
└──────────┘ └──────────┘ └──────────┘
|
|
251
|
+
Claude Sonnet Cost Explorer
|
|
252
|
+
4.6
|
|
253
|
+
│
|
|
254
|
+
▼
|
|
255
|
+
┌────────────────┐
|
|
256
|
+
│ AWS Executor │
|
|
257
|
+
│ (subprocess + │
|
|
258
|
+
│ boto3) │
|
|
259
|
+
└────────┬───────┘
|
|
260
|
+
│
|
|
261
|
+
▼
|
|
262
|
+
┌────────────────┐
|
|
263
|
+
│ Formatter │
|
|
264
|
+
│ (Rich TUI) │
|
|
265
|
+
└────────────────┘
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Componentes principales
|
|
269
|
+
|
|
270
|
+
| Componente | Responsabilidad | Tecnología |
|
|
271
|
+
|---|---|---|
|
|
272
|
+
| Intent Parser | Convierte lenguaje natural en Intent estructurado | Python + Pydantic + langdetect |
|
|
273
|
+
| Bedrock Translator | Traduce Intent → AWS CLI command | Amazon Bedrock + Claude Sonnet 4.6 |
|
|
274
|
+
| Safety Layer | Evalúa riesgo + predice costo | AWS Cost Explorer + reglas |
|
|
275
|
+
| Executor | Ejecuta comandos con sandboxing | subprocess + boto3 |
|
|
276
|
+
| Formatter | Renderiza output (table, json, yaml, csv) | Rich |
|
|
277
|
+
| Audit Logger | Registra todo para compliance | JSON Lines en disco |
|
|
278
|
+
| MCP Server | Expone como herramientas MCP | mcp library |
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## 🌐 Integración con Kiro como MCP Server
|
|
283
|
+
|
|
284
|
+
CloudShellGPT se puede usar desde Kiro, Claude Desktop, Cursor, o cualquier cliente MCP.
|
|
285
|
+
|
|
286
|
+
### Configuración en Kiro
|
|
287
|
+
|
|
288
|
+
Agrega esto a `.kiro/settings/mcp.json`:
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
{
|
|
292
|
+
"mcpServers": {
|
|
293
|
+
"cloudshellgpt": {
|
|
294
|
+
"command": "csgpt",
|
|
295
|
+
"args": ["mcp", "serve"],
|
|
296
|
+
"env": {
|
|
297
|
+
"AWS_REGION": "us-east-1"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
### Tools MCP expuestos
|
|
305
|
+
|
|
306
|
+
| Tool | Descripción |
|
|
307
|
+
|---|---|
|
|
308
|
+
| `aws_translate` | Traduce intención en lenguaje natural a comando AWS CLI |
|
|
309
|
+
| `aws_execute` | Ejecuta un comando AWS (con dry-run opcional) |
|
|
310
|
+
| `aws_cost_preview` | Predice el costo de un comando |
|
|
311
|
+
| `aws_explain` | Explica en detalle qué hace un comando |
|
|
312
|
+
|
|
313
|
+
### Ejemplo de uso desde Kiro
|
|
314
|
+
|
|
315
|
+
```
|
|
316
|
+
> Kiro, ayúdame a encontrar recursos sin tags en mi cuenta AWS
|
|
317
|
+
|
|
318
|
+
[Kiro invoca aws_translate con la intención]
|
|
319
|
+
[Kiro muestra el comando generado al usuario]
|
|
320
|
+
[Usuario confirma]
|
|
321
|
+
[Kiro invoca aws_execute]
|
|
322
|
+
[Kiro formatea el output]
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
## 🛡️ Seguridad
|
|
328
|
+
|
|
329
|
+
### IAM Permissions mínimas recomendadas
|
|
330
|
+
|
|
331
|
+
```json
|
|
332
|
+
{
|
|
333
|
+
"Version": "2012-10-17",
|
|
334
|
+
"Statement": [
|
|
335
|
+
{
|
|
336
|
+
"Sid": "BedrockAccess",
|
|
337
|
+
"Effect": "Allow",
|
|
338
|
+
"Action": [
|
|
339
|
+
"bedrock:InvokeModel",
|
|
340
|
+
"bedrock:InvokeModelWithResponseStream"
|
|
341
|
+
],
|
|
342
|
+
"Resource": "arn:aws:bedrock:*::foundation-model/us.anthropic.claude-sonnet-4-6"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"Sid": "CostExplorer",
|
|
346
|
+
"Effect": "Allow",
|
|
347
|
+
"Action": ["ce:GetCostAndUsage", "ce:GetCostForecast"],
|
|
348
|
+
"Resource": "*"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
> **Importante:** CloudShellGPT NO necesita permisos adicionales sobre los servicios AWS que operas. Usa los que ya tienes en tu environment.
|
|
355
|
+
|
|
356
|
+
Para documentación completa de permisos IAM, ver [docs/IAM_PERMISSIONS.md](docs/IAM_PERMISSIONS.md).
|
|
357
|
+
|
|
358
|
+
### Características de seguridad
|
|
359
|
+
|
|
360
|
+
- ✅ **No exfiltra datos**: las llamadas a Bedrock usan solo el intent en lenguaje natural
|
|
361
|
+
- ✅ **Audit log local**: todos los comandos ejecutados quedan registrados
|
|
362
|
+
- ✅ **Risk classification**: cada comando es evaluado antes de ejecutar
|
|
363
|
+
- ✅ **Confirmation typed**: comandos críticos requieren escribir "yes-i-understand"
|
|
364
|
+
- ✅ **Dry-run obligatorio**: para comandos `critical` se fuerza `--dry-run`
|
|
365
|
+
- ✅ **Timeout enforcement**: comandos colgados se matan según configuración (default 60s)
|
|
366
|
+
|
|
367
|
+
---
|
|
368
|
+
|
|
369
|
+
## 🌍 Idiomas soportados
|
|
370
|
+
|
|
371
|
+
| Idioma | Calidad | Ejemplo |
|
|
372
|
+
|---|---|---|
|
|
373
|
+
| 🇪🇸 Español | ⭐⭐⭐⭐⭐ Nativo | `csgpt ask "lista los buckets de S3"` |
|
|
374
|
+
| 🇺🇸 English | ⭐⭐⭐⭐⭐ Nativo | `csgpt ask "list the S3 buckets"` |
|
|
375
|
+
| 🇧🇷 Português | ⭐⭐⭐⭐⭐ Nativo | `csgpt ask "liste os buckets do S3"` |
|
|
376
|
+
| 🇫🇷 Français | ⭐⭐⭐⭐ Excelente | `csgpt ask "liste les buckets S3"` |
|
|
377
|
+
| 🇩🇪 Deutsch | ⭐⭐⭐⭐ Excelente | `csgpt ask "liste die S3-Buckets"` |
|
|
378
|
+
| 🇨🇳 中文 | ⭐⭐⭐⭐ Excelente | `csgpt ask "列出S3存储桶"` |
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
## 🤝 Contribución
|
|
383
|
+
|
|
384
|
+
¡Contribuciones bienvenidas!
|
|
385
|
+
|
|
386
|
+
### Setup de desarrollo
|
|
387
|
+
|
|
388
|
+
```bash
|
|
389
|
+
git clone https://github.com/blaylopez/cloudshellgpt
|
|
390
|
+
cd cloudshellgpt
|
|
391
|
+
uv sync --all-extras
|
|
392
|
+
pre-commit install
|
|
393
|
+
pytest
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
### Roadmap
|
|
397
|
+
|
|
398
|
+
- [ ] Soporte para más modelos Bedrock (Llama 3, Mistral)
|
|
399
|
+
- [ ] TUI interactivo con Textual
|
|
400
|
+
- [ ] Plugin system para commands custom
|
|
401
|
+
- [ ] Integración con CloudWatch Logs Insights
|
|
402
|
+
- [ ] Modo "infrastructure as code" (genera Terraform)
|
|
403
|
+
- [ ] Multi-account con AWS SSO
|
|
404
|
+
|
|
405
|
+
---
|
|
406
|
+
|
|
407
|
+
## 📄 Licencia
|
|
408
|
+
|
|
409
|
+
Apache 2.0 — ver [LICENSE](LICENSE).
|
|
410
|
+
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
## 🙏 Agradecimientos
|
|
414
|
+
|
|
415
|
+
- Amazon Web Services por [Bedrock](https://aws.amazon.com/bedrock/)
|
|
416
|
+
- Anthropic por [Claude Sonnet 4.6](https://www.anthropic.com)
|
|
417
|
+
- Los organizadores de **HACKATHONKIRO**
|
|
418
|
+
- La comunidad open source
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
<p align="center">
|
|
423
|
+
<strong>Hecho con ⚡ para HACKATHONKIRO</strong>
|
|
424
|
+
<br>
|
|
425
|
+
<em>Repositorio: <a href="https://github.com/blaylopez/cloudshellgpt">github.com/blaylopez/cloudshellgpt</a></em>
|
|
426
|
+
</p>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
cloudshellgpt/__init__.py,sha256=IAn_h5737UxtTke1bi6oDVElnZ--cQuefx3kpTictuA,352
|
|
2
|
+
cloudshellgpt/audit.py,sha256=IjrSLr081MQ7OGvHM5Cyu5Iz4PmYGIOJZ7sa3wK4kdQ,5756
|
|
3
|
+
cloudshellgpt/bedrock_translator.py,sha256=XGo16QhdfdGpYRXJwQbz9oZlYuIbHCQPBaauIW859IA,21566
|
|
4
|
+
cloudshellgpt/cli.py,sha256=msqFzc6A2kgz2hhTobqUs5ZXYaIHFp4gM01oknz6vsw,22161
|
|
5
|
+
cloudshellgpt/config.py,sha256=o-6RT4WbXEOei_YLlVekRx3EN6sfMLW8oEhOUmM5Hag,10333
|
|
6
|
+
cloudshellgpt/cost.py,sha256=PSN52BoqZZCgkTg88p4nIeI098kUhlUJKv5ZCWtRTN4,15612
|
|
7
|
+
cloudshellgpt/executor.py,sha256=SOAYsw1G4c-mu2H4T67pOpHG1t1zKFUbbkJOwFL1W70,14615
|
|
8
|
+
cloudshellgpt/formatter.py,sha256=04C7DF0We5UODuSqeWeUandfKBmo8eEKqxwmrhrJhXE,11964
|
|
9
|
+
cloudshellgpt/i18n.py,sha256=Yx9S_I0OvYfiEyT0t6Zh47UB8jbTc7XQW15t1PskmTk,10809
|
|
10
|
+
cloudshellgpt/intent.py,sha256=gVyx5WsUd199RLzEcy9JtltnkUv-qRM92vmTtQlxntM,28677
|
|
11
|
+
cloudshellgpt/learning.py,sha256=MRSM52N6XxVyR2O16AZ5lmVlR-_EjO4lKg0QNkQr-1A,41912
|
|
12
|
+
cloudshellgpt/mcp_server.py,sha256=qLlbWjM5E99Sz9kbt1bABydTMEIblcwhWbXHdm8GXjA,9470
|
|
13
|
+
cloudshellgpt/safety.py,sha256=RbZPCsNIOVTvvq3OoCEWgXsiZ0WM7oQpMr248C5c1sc,34460
|
|
14
|
+
cloudshellgpt-1.0.0.dist-info/METADATA,sha256=tD-VMAHbYxktCanpsngNvL2Ff6B4Hojz7fA5vEVRgiE,16034
|
|
15
|
+
cloudshellgpt-1.0.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
16
|
+
cloudshellgpt-1.0.0.dist-info/entry_points.txt,sha256=6hpwT6aw-FjnNF207r0O6XmYFWzmc555DllkXnfyYtw,48
|
|
17
|
+
cloudshellgpt-1.0.0.dist-info/licenses/LICENSE,sha256=3XrN6Y5tSvPzhAJhmZC3c--WxBTt5CK49PiyUMI0V40,11345
|
|
18
|
+
cloudshellgpt-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format.
|
|
185
|
+
|
|
186
|
+
Copyright 2026 CloudShellGPT Team
|
|
187
|
+
|
|
188
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
189
|
+
you may not use this file except in compliance with the License.
|
|
190
|
+
You may obtain a copy of the License at
|
|
191
|
+
|
|
192
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
193
|
+
|
|
194
|
+
Unless required by applicable law or agreed to in writing, software
|
|
195
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
196
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
197
|
+
See the License for the specific language governing permissions and
|
|
198
|
+
limitations under the License.
|