stackai-cli 0.1.0__tar.gz → 0.1.3__tar.gz

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.
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: stackai-cli
3
+ Version: 0.1.3
4
+ Summary: AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers.
5
+ Author-email: El Mehdi Boutahar <boutahar.elmehdi@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/MehdiB7/devai
8
+ Project-URL: Repository, https://github.com/MehdiB7/devai
9
+ Project-URL: Bug-Tracker, https://github.com/MehdiB7/devai/issues
10
+ Keywords: docker,ai,devops,cli,ollama,automation
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Build Tools
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ Requires-Dist: click>=8.1
20
+
21
+ # stackai-cli
22
+
23
+ > AI-powered Docker assistant. No configuration needed.
24
+
25
+ `stackai` analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.
26
+
27
+ [![PyPI version](https://img.shields.io/pypi/v/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
28
+ [![Python](https://img.shields.io/pypi/pyversions/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
29
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install stackai-cli
35
+ ```
36
+
37
+ > `stackai debug` requires [Ollama](https://ollama.com) running locally with `ollama pull llama3`.
38
+
39
+ ## Commands
40
+
41
+ ### `stackai init` — Generate Docker files from your project
42
+
43
+ ```bash
44
+ cd my-project
45
+ stackai init
46
+ ```
47
+
48
+ ```
49
+ 🔍 Analyzing project...
50
+ ✅ Stack detected: python / fastapi + postgres + redis
51
+ ⚙️ Generating Docker files...
52
+ ✅ Dockerfile created
53
+ ✅ .dockerignore created
54
+ ✅ docker-compose.yaml created
55
+
56
+ 🚀 Ready! Run: docker compose up -d
57
+ ```
58
+
59
+ ### `stackai scan` — Inspect detected stack without generating files
60
+
61
+ ```bash
62
+ stackai scan
63
+ ```
64
+
65
+ ```
66
+ 📦 Stack detected:
67
+ Language : python
68
+ Framework : fastapi
69
+ Port : 8000
70
+ Services : postgres, redis
71
+ Python ver. : 3.11
72
+ ```
73
+
74
+ ### `stackai debug` — Analyze a failing container with AI
75
+
76
+ ```bash
77
+ stackai debug my-container
78
+ ```
79
+
80
+ ```
81
+ 📋 Latest logs:
82
+ ─────────────────────────────────────────
83
+ Error: could not connect to postgres...
84
+ ─────────────────────────────────────────
85
+
86
+ 🤖 Running AI analysis...
87
+
88
+ 💡 Analysis:
89
+ 1. PROBLEM : The app cannot connect to PostgreSQL
90
+ 2. CAUSE : The postgres container is not ready when the app starts
91
+ 3. FIX : Add `depends_on: [postgres]` in your docker-compose.yaml
92
+ ```
93
+
94
+ ## Supported Stacks
95
+
96
+ | Language | Detected Frameworks |
97
+ |----------|-------------------|
98
+ | Python | FastAPI, Flask, Django, generic |
99
+ | Node.js | Express, Next.js, Nuxt.js, React |
100
+ | Java | Spring Boot (Maven / Gradle) |
101
+ | Go | generic |
102
+
103
+ ## Auto-detected Services
104
+
105
+ `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
106
+
107
+ ## Requirements
108
+
109
+ - Python 3.10+
110
+ - Docker installed and running
111
+ - [Ollama](https://ollama.com) + `ollama pull llama3` (only for `stackai debug`)
112
+
113
+ ## Contributing
114
+
115
+ Pull requests are welcome. For major changes, please open an issue first.
116
+
117
+ ## License
118
+
119
+ MIT © [El Mehdi Boutahar](https://github.com/MehdiB7)
@@ -0,0 +1,99 @@
1
+ # stackai-cli
2
+
3
+ > AI-powered Docker assistant. No configuration needed.
4
+
5
+ `stackai` analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.
6
+
7
+ [![PyPI version](https://img.shields.io/pypi/v/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
8
+ [![Python](https://img.shields.io/pypi/pyversions/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ pip install stackai-cli
15
+ ```
16
+
17
+ > `stackai debug` requires [Ollama](https://ollama.com) running locally with `ollama pull llama3`.
18
+
19
+ ## Commands
20
+
21
+ ### `stackai init` — Generate Docker files from your project
22
+
23
+ ```bash
24
+ cd my-project
25
+ stackai init
26
+ ```
27
+
28
+ ```
29
+ 🔍 Analyzing project...
30
+ ✅ Stack detected: python / fastapi + postgres + redis
31
+ ⚙️ Generating Docker files...
32
+ ✅ Dockerfile created
33
+ ✅ .dockerignore created
34
+ ✅ docker-compose.yaml created
35
+
36
+ 🚀 Ready! Run: docker compose up -d
37
+ ```
38
+
39
+ ### `stackai scan` — Inspect detected stack without generating files
40
+
41
+ ```bash
42
+ stackai scan
43
+ ```
44
+
45
+ ```
46
+ 📦 Stack detected:
47
+ Language : python
48
+ Framework : fastapi
49
+ Port : 8000
50
+ Services : postgres, redis
51
+ Python ver. : 3.11
52
+ ```
53
+
54
+ ### `stackai debug` — Analyze a failing container with AI
55
+
56
+ ```bash
57
+ stackai debug my-container
58
+ ```
59
+
60
+ ```
61
+ 📋 Latest logs:
62
+ ─────────────────────────────────────────
63
+ Error: could not connect to postgres...
64
+ ─────────────────────────────────────────
65
+
66
+ 🤖 Running AI analysis...
67
+
68
+ 💡 Analysis:
69
+ 1. PROBLEM : The app cannot connect to PostgreSQL
70
+ 2. CAUSE : The postgres container is not ready when the app starts
71
+ 3. FIX : Add `depends_on: [postgres]` in your docker-compose.yaml
72
+ ```
73
+
74
+ ## Supported Stacks
75
+
76
+ | Language | Detected Frameworks |
77
+ |----------|-------------------|
78
+ | Python | FastAPI, Flask, Django, generic |
79
+ | Node.js | Express, Next.js, Nuxt.js, React |
80
+ | Java | Spring Boot (Maven / Gradle) |
81
+ | Go | generic |
82
+
83
+ ## Auto-detected Services
84
+
85
+ `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
86
+
87
+ ## Requirements
88
+
89
+ - Python 3.10+
90
+ - Docker installed and running
91
+ - [Ollama](https://ollama.com) + `ollama pull llama3` (only for `stackai debug`)
92
+
93
+ ## Contributing
94
+
95
+ Pull requests are welcome. For major changes, please open an issue first.
96
+
97
+ ## License
98
+
99
+ MIT © [El Mehdi Boutahar](https://github.com/MehdiB7)
@@ -0,0 +1 @@
1
+ __version__ = "0.1.3"
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "stackai-cli"
7
- version = "0.1.0"
7
+ version = "0.1.3"
8
8
  description = "AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -0,0 +1,119 @@
1
+ Metadata-Version: 2.4
2
+ Name: stackai-cli
3
+ Version: 0.1.3
4
+ Summary: AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers.
5
+ Author-email: El Mehdi Boutahar <boutahar.elmehdi@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/MehdiB7/devai
8
+ Project-URL: Repository, https://github.com/MehdiB7/devai
9
+ Project-URL: Bug-Tracker, https://github.com/MehdiB7/devai/issues
10
+ Keywords: docker,ai,devops,cli,ollama,automation
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Build Tools
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ Requires-Dist: click>=8.1
20
+
21
+ # stackai-cli
22
+
23
+ > AI-powered Docker assistant. No configuration needed.
24
+
25
+ `stackai` analyzes your project, generates an optimized Dockerfile and docker-compose, and debugs your containers using a local AI model — all in a single command.
26
+
27
+ [![PyPI version](https://img.shields.io/pypi/v/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
28
+ [![Python](https://img.shields.io/pypi/pyversions/stackai-cli.svg)](https://pypi.org/project/stackai-cli/)
29
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install stackai-cli
35
+ ```
36
+
37
+ > `stackai debug` requires [Ollama](https://ollama.com) running locally with `ollama pull llama3`.
38
+
39
+ ## Commands
40
+
41
+ ### `stackai init` — Generate Docker files from your project
42
+
43
+ ```bash
44
+ cd my-project
45
+ stackai init
46
+ ```
47
+
48
+ ```
49
+ 🔍 Analyzing project...
50
+ ✅ Stack detected: python / fastapi + postgres + redis
51
+ ⚙️ Generating Docker files...
52
+ ✅ Dockerfile created
53
+ ✅ .dockerignore created
54
+ ✅ docker-compose.yaml created
55
+
56
+ 🚀 Ready! Run: docker compose up -d
57
+ ```
58
+
59
+ ### `stackai scan` — Inspect detected stack without generating files
60
+
61
+ ```bash
62
+ stackai scan
63
+ ```
64
+
65
+ ```
66
+ 📦 Stack detected:
67
+ Language : python
68
+ Framework : fastapi
69
+ Port : 8000
70
+ Services : postgres, redis
71
+ Python ver. : 3.11
72
+ ```
73
+
74
+ ### `stackai debug` — Analyze a failing container with AI
75
+
76
+ ```bash
77
+ stackai debug my-container
78
+ ```
79
+
80
+ ```
81
+ 📋 Latest logs:
82
+ ─────────────────────────────────────────
83
+ Error: could not connect to postgres...
84
+ ─────────────────────────────────────────
85
+
86
+ 🤖 Running AI analysis...
87
+
88
+ 💡 Analysis:
89
+ 1. PROBLEM : The app cannot connect to PostgreSQL
90
+ 2. CAUSE : The postgres container is not ready when the app starts
91
+ 3. FIX : Add `depends_on: [postgres]` in your docker-compose.yaml
92
+ ```
93
+
94
+ ## Supported Stacks
95
+
96
+ | Language | Detected Frameworks |
97
+ |----------|-------------------|
98
+ | Python | FastAPI, Flask, Django, generic |
99
+ | Node.js | Express, Next.js, Nuxt.js, React |
100
+ | Java | Spring Boot (Maven / Gradle) |
101
+ | Go | generic |
102
+
103
+ ## Auto-detected Services
104
+
105
+ `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
106
+
107
+ ## Requirements
108
+
109
+ - Python 3.10+
110
+ - Docker installed and running
111
+ - [Ollama](https://ollama.com) + `ollama pull llama3` (only for `stackai debug`)
112
+
113
+ ## Contributing
114
+
115
+ Pull requests are welcome. For major changes, please open an issue first.
116
+
117
+ ## License
118
+
119
+ MIT © [El Mehdi Boutahar](https://github.com/MehdiB7)
@@ -1,111 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: stackai-cli
3
- Version: 0.1.0
4
- Summary: AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers.
5
- Author-email: El Mehdi Boutahar <boutahar.elmehdi@gmail.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/MehdiB7/devai
8
- Project-URL: Repository, https://github.com/MehdiB7/devai
9
- Project-URL: Bug-Tracker, https://github.com/MehdiB7/devai/issues
10
- Keywords: docker,ai,devops,cli,ollama,automation
11
- Classifier: Development Status :: 3 - Alpha
12
- Classifier: Environment :: Console
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: MIT License
15
- Classifier: Programming Language :: Python :: 3
16
- Classifier: Topic :: Software Development :: Build Tools
17
- Requires-Python: >=3.10
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: click>=8.1
20
-
21
- # devai
22
-
23
- > AI-powered Docker assistant. No config needed.
24
-
25
- `devai` analyse ton projet, génère le Dockerfile et le docker-compose, et debug tes containers avec l'IA — le tout en une commande.
26
-
27
- ## Installation
28
-
29
- ```bash
30
- pip install stackai-cli
31
- ```
32
-
33
- > Requiert [Ollama](https://ollama.com) installé et `ollama pull llama3` pour le mode debug AI.
34
-
35
- ## Utilisation
36
-
37
- ### `devai init` — Générer les fichiers Docker
38
-
39
- ```bash
40
- cd mon-projet
41
- stackai init
42
- ```
43
-
44
- ```
45
- 🔍 Analyse du projet...
46
- ✅ Stack détectée : python / fastapi + postgres + redis
47
- ⚙️ Génération des fichiers Docker...
48
- ✅ Dockerfile créé
49
- ✅ .dockerignore créé
50
- ✅ docker-compose.yaml créé
51
-
52
- 🚀 Prêt ! Lance avec : docker compose up -d
53
- ```
54
-
55
- ### `devai scan` — Voir la stack sans rien générer
56
-
57
- ```bash
58
- stackai scan
59
- ```
60
-
61
- ```
62
- 📦 Stack détectée :
63
- Langage : python
64
- Framework : fastapi
65
- Port : 8000
66
- Services : postgres, redis
67
- Python ver. : 3.11
68
- ```
69
-
70
- ### `devai debug` — Analyser un container en erreur
71
-
72
- ```bash
73
- stackai debug mon-container
74
- ```
75
-
76
- ```
77
- 📋 Derniers logs :
78
- ─────────────────────────────────────────
79
- Error: could not connect to postgres...
80
- ─────────────────────────────────────────
81
-
82
- 🤖 Analyse IA en cours...
83
-
84
- 💡 Analyse :
85
- 1. PROBLÈME : L'application ne peut pas se connecter à PostgreSQL
86
- 2. CAUSE : Le container postgres n'est pas encore prêt au démarrage de l'app
87
- 3. FIX : Ajoute `depends_on: [postgres]` dans ton docker-compose.yaml
88
- ```
89
-
90
- ## Stacks supportées
91
-
92
- | Langage | Frameworks détectés |
93
- |---------|-------------------|
94
- | Python | FastAPI, Flask, Django, générique |
95
- | Node.js | Express, Next.js, Nuxt.js, React |
96
- | Java | Spring Boot (Maven/Gradle) |
97
- | Go | générique |
98
-
99
- ## Services auto-détectés
100
-
101
- `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
102
-
103
- ## Prérequis
104
-
105
- - Python 3.10+
106
- - Docker installé
107
- - [Ollama](https://ollama.com) + `ollama pull llama3` (pour `devai debug`)
108
-
109
- ## Licence
110
-
111
- MIT
@@ -1,91 +0,0 @@
1
- # devai
2
-
3
- > AI-powered Docker assistant. No config needed.
4
-
5
- `devai` analyse ton projet, génère le Dockerfile et le docker-compose, et debug tes containers avec l'IA — le tout en une commande.
6
-
7
- ## Installation
8
-
9
- ```bash
10
- pip install stackai-cli
11
- ```
12
-
13
- > Requiert [Ollama](https://ollama.com) installé et `ollama pull llama3` pour le mode debug AI.
14
-
15
- ## Utilisation
16
-
17
- ### `devai init` — Générer les fichiers Docker
18
-
19
- ```bash
20
- cd mon-projet
21
- stackai init
22
- ```
23
-
24
- ```
25
- 🔍 Analyse du projet...
26
- ✅ Stack détectée : python / fastapi + postgres + redis
27
- ⚙️ Génération des fichiers Docker...
28
- ✅ Dockerfile créé
29
- ✅ .dockerignore créé
30
- ✅ docker-compose.yaml créé
31
-
32
- 🚀 Prêt ! Lance avec : docker compose up -d
33
- ```
34
-
35
- ### `devai scan` — Voir la stack sans rien générer
36
-
37
- ```bash
38
- stackai scan
39
- ```
40
-
41
- ```
42
- 📦 Stack détectée :
43
- Langage : python
44
- Framework : fastapi
45
- Port : 8000
46
- Services : postgres, redis
47
- Python ver. : 3.11
48
- ```
49
-
50
- ### `devai debug` — Analyser un container en erreur
51
-
52
- ```bash
53
- stackai debug mon-container
54
- ```
55
-
56
- ```
57
- 📋 Derniers logs :
58
- ─────────────────────────────────────────
59
- Error: could not connect to postgres...
60
- ─────────────────────────────────────────
61
-
62
- 🤖 Analyse IA en cours...
63
-
64
- 💡 Analyse :
65
- 1. PROBLÈME : L'application ne peut pas se connecter à PostgreSQL
66
- 2. CAUSE : Le container postgres n'est pas encore prêt au démarrage de l'app
67
- 3. FIX : Ajoute `depends_on: [postgres]` dans ton docker-compose.yaml
68
- ```
69
-
70
- ## Stacks supportées
71
-
72
- | Langage | Frameworks détectés |
73
- |---------|-------------------|
74
- | Python | FastAPI, Flask, Django, générique |
75
- | Node.js | Express, Next.js, Nuxt.js, React |
76
- | Java | Spring Boot (Maven/Gradle) |
77
- | Go | générique |
78
-
79
- ## Services auto-détectés
80
-
81
- `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
82
-
83
- ## Prérequis
84
-
85
- - Python 3.10+
86
- - Docker installé
87
- - [Ollama](https://ollama.com) + `ollama pull llama3` (pour `devai debug`)
88
-
89
- ## Licence
90
-
91
- MIT
@@ -1 +0,0 @@
1
- __version__ = "0.1.0"
@@ -1,111 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: stackai-cli
3
- Version: 0.1.0
4
- Summary: AI-powered Docker assistant — detects your stack, generates Dockerfile & compose, debugs containers.
5
- Author-email: El Mehdi Boutahar <boutahar.elmehdi@gmail.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/MehdiB7/devai
8
- Project-URL: Repository, https://github.com/MehdiB7/devai
9
- Project-URL: Bug-Tracker, https://github.com/MehdiB7/devai/issues
10
- Keywords: docker,ai,devops,cli,ollama,automation
11
- Classifier: Development Status :: 3 - Alpha
12
- Classifier: Environment :: Console
13
- Classifier: Intended Audience :: Developers
14
- Classifier: License :: OSI Approved :: MIT License
15
- Classifier: Programming Language :: Python :: 3
16
- Classifier: Topic :: Software Development :: Build Tools
17
- Requires-Python: >=3.10
18
- Description-Content-Type: text/markdown
19
- Requires-Dist: click>=8.1
20
-
21
- # devai
22
-
23
- > AI-powered Docker assistant. No config needed.
24
-
25
- `devai` analyse ton projet, génère le Dockerfile et le docker-compose, et debug tes containers avec l'IA — le tout en une commande.
26
-
27
- ## Installation
28
-
29
- ```bash
30
- pip install stackai-cli
31
- ```
32
-
33
- > Requiert [Ollama](https://ollama.com) installé et `ollama pull llama3` pour le mode debug AI.
34
-
35
- ## Utilisation
36
-
37
- ### `devai init` — Générer les fichiers Docker
38
-
39
- ```bash
40
- cd mon-projet
41
- stackai init
42
- ```
43
-
44
- ```
45
- 🔍 Analyse du projet...
46
- ✅ Stack détectée : python / fastapi + postgres + redis
47
- ⚙️ Génération des fichiers Docker...
48
- ✅ Dockerfile créé
49
- ✅ .dockerignore créé
50
- ✅ docker-compose.yaml créé
51
-
52
- 🚀 Prêt ! Lance avec : docker compose up -d
53
- ```
54
-
55
- ### `devai scan` — Voir la stack sans rien générer
56
-
57
- ```bash
58
- stackai scan
59
- ```
60
-
61
- ```
62
- 📦 Stack détectée :
63
- Langage : python
64
- Framework : fastapi
65
- Port : 8000
66
- Services : postgres, redis
67
- Python ver. : 3.11
68
- ```
69
-
70
- ### `devai debug` — Analyser un container en erreur
71
-
72
- ```bash
73
- stackai debug mon-container
74
- ```
75
-
76
- ```
77
- 📋 Derniers logs :
78
- ─────────────────────────────────────────
79
- Error: could not connect to postgres...
80
- ─────────────────────────────────────────
81
-
82
- 🤖 Analyse IA en cours...
83
-
84
- 💡 Analyse :
85
- 1. PROBLÈME : L'application ne peut pas se connecter à PostgreSQL
86
- 2. CAUSE : Le container postgres n'est pas encore prêt au démarrage de l'app
87
- 3. FIX : Ajoute `depends_on: [postgres]` dans ton docker-compose.yaml
88
- ```
89
-
90
- ## Stacks supportées
91
-
92
- | Langage | Frameworks détectés |
93
- |---------|-------------------|
94
- | Python | FastAPI, Flask, Django, générique |
95
- | Node.js | Express, Next.js, Nuxt.js, React |
96
- | Java | Spring Boot (Maven/Gradle) |
97
- | Go | générique |
98
-
99
- ## Services auto-détectés
100
-
101
- `postgres` · `redis` · `mongodb` · `mysql` · `elasticsearch`
102
-
103
- ## Prérequis
104
-
105
- - Python 3.10+
106
- - Docker installé
107
- - [Ollama](https://ollama.com) + `ollama pull llama3` (pour `devai debug`)
108
-
109
- ## Licence
110
-
111
- MIT
File without changes
File without changes
File without changes