devit-cli 0.1.2__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.
- {devit_cli-0.1.2/devit_cli.egg-info → devit_cli-0.1.3}/PKG-INFO +53 -52
- {devit_cli-0.1.2 → devit_cli-0.1.3}/README.md +52 -51
- {devit_cli-0.1.2 → devit_cli-0.1.3/devit_cli.egg-info}/PKG-INFO +53 -52
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/__init__.py +1 -1
- devit_cli-0.1.3/devkit_cli/templates/aws/README.md +24 -0
- devit_cli-0.1.3/devkit_cli/templates/django/README.md +16 -0
- devit_cli-0.1.3/devkit_cli/templates/fastapi/README.md +22 -0
- devit_cli-0.1.3/devkit_cli/templates/package/README.md +16 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/pyproject.toml +1 -1
- devit_cli-0.1.2/devkit_cli/templates/aws/README.md +0 -23
- devit_cli-0.1.2/devkit_cli/templates/django/README.md +0 -15
- devit_cli-0.1.2/devkit_cli/templates/fastapi/README.md +0 -21
- devit_cli-0.1.2/devkit_cli/templates/package/README.md +0 -15
- {devit_cli-0.1.2 → devit_cli-0.1.3}/LICENSE +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/_devkit_entry.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devit_cli.egg-info/SOURCES.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devit_cli.egg-info/dependency_links.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devit_cli.egg-info/entry_points.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devit_cli.egg-info/requires.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devit_cli.egg-info/top_level.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/archive.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/clean.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/env.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/find.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/info.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/init.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/commands/run.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/main.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/.gitignore +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/requirements.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/scripts/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/scripts/ec2.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/scripts/main.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/scripts/s3.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/aws/tests/test_scripts.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/.gitignore +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/apps/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/apps/core/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/apps/core/apps.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/apps/core/urls.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/apps/core/views.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/manage.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/requirements.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/{{module_name}}/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/{{module_name}}/settings.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/{{module_name}}/urls.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/django/{{module_name}}/wsgi.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/.gitignore +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/app/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/app/routers/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/app/routers/health.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/main.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/requirements.txt +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/fastapi/tests/test_api.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/.gitignore +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/pyproject.toml +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/tests/test_core.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/{{module_name}}/__init__.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/{{module_name}}/core.py +0 -0
- {devit_cli-0.1.2 → devit_cli-0.1.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devit-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: A full-featured CLI framework for professional Python developers
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/dipenpadhiyar/devit-cli
|
|
@@ -30,7 +30,7 @@ Requires-Dist: ruff>=0.4; extra == "dev"
|
|
|
30
30
|
Dynamic: license-file
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/
|
|
33
|
+
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/devit.png" alt="devit-cli" width="300"/>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
36
36
|
<p align="center">
|
|
@@ -61,19 +61,19 @@ Requires **Python 3.10+**. Works on **Windows · Linux · macOS**.
|
|
|
61
61
|
## Quick Start
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
devit # show help + logo
|
|
65
|
+
devit init # interactive project wizard
|
|
66
|
+
devit info # system snapshot
|
|
67
|
+
devit clean # remove caches & build artifacts
|
|
68
|
+
devit dev # start dev server / install in dev mode
|
|
69
|
+
devit test # run tests (auto-detects pytest / django)
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
---
|
|
73
73
|
|
|
74
74
|
## Commands
|
|
75
75
|
|
|
76
|
-
### `
|
|
76
|
+
### `devit init` — Project wizard
|
|
77
77
|
|
|
78
78
|
Interactively scaffold a new project. Asks for:
|
|
79
79
|
|
|
@@ -84,10 +84,10 @@ Interactively scaffold a new project. Asks for:
|
|
|
84
84
|
| Python version | e.g. `3.11` |
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
devit init # fully interactive
|
|
88
|
+
devit init my-api --type fastapi --env venv
|
|
89
|
+
devit init my-lib --type package --env conda --python 3.12
|
|
90
|
+
devit init my-app -y # skip confirmation prompt
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
#### Generated structures
|
|
@@ -150,88 +150,88 @@ my-aws/
|
|
|
150
150
|
|
|
151
151
|
---
|
|
152
152
|
|
|
153
|
-
### `
|
|
153
|
+
### `devit dev / run / build / test` — Unified task runner
|
|
154
154
|
|
|
155
155
|
Auto-detects project type and runs the right command:
|
|
156
156
|
|
|
157
157
|
| Command | Package | FastAPI | Django | AWS |
|
|
158
158
|
|---|---|---|---|---|
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
159
|
+
| `devit dev` | `pip install -e .[dev]` | `uvicorn main:app --reload` | `manage.py runserver` | `sam local start-api` |
|
|
160
|
+
| `devit run` | `python -m <module>` | `uvicorn main:app` | `manage.py runserver 0.0.0.0` | `python -m scripts.main` |
|
|
161
|
+
| `devit build` | `python -m build` | `pip install -r requirements.txt` | `pip install -r requirements.txt` | `sam build` |
|
|
162
|
+
| `devit test` | `pytest -v` | `pytest -v` | `manage.py test` | `pytest -v` |
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
devit dev
|
|
166
|
+
devit test
|
|
167
|
+
devit build
|
|
168
|
+
devit run -- --port 9000 # extra args forwarded
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
---
|
|
172
172
|
|
|
173
|
-
### `
|
|
173
|
+
### `devit clean` — Remove artifacts
|
|
174
174
|
|
|
175
175
|
```bash
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
devit clean # clean cwd
|
|
177
|
+
devit clean ./my-project # clean specific dir
|
|
178
|
+
devit clean --dry-run # preview only
|
|
179
|
+
devit clean --include-venv # also remove .venv
|
|
180
|
+
devit clean -y # skip confirmation
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
Removes: `__pycache__`, `*.pyc`, `.pytest_cache`, `build/`, `dist/`, `*.egg-info`, `.DS_Store`, `*.log`, `node_modules`, `.coverage`, and more.
|
|
184
184
|
|
|
185
185
|
---
|
|
186
186
|
|
|
187
|
-
### `
|
|
187
|
+
### `devit info` — System snapshot
|
|
188
188
|
|
|
189
189
|
```bash
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
devit info
|
|
191
|
+
devit info --json
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
Shows: OS, hostname, Python version + executable, active venv/conda env, CPU count + frequency, RAM usage, disk usage.
|
|
195
195
|
|
|
196
196
|
---
|
|
197
197
|
|
|
198
|
-
### `
|
|
198
|
+
### `devit find` — Fast file search
|
|
199
199
|
|
|
200
200
|
```bash
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
devit find "*.py"
|
|
202
|
+
devit find "config" -e toml -e ini
|
|
203
|
+
devit find "*" --min-size 1mb --newer-than 7 # >1 MB, modified in last 7 days
|
|
204
|
+
devit find --dirs-only "src"
|
|
205
|
+
devit find "*" -l 500 # show up to 500 results
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
---
|
|
209
209
|
|
|
210
|
-
### `
|
|
210
|
+
### `devit zip` / `devit unzip` — Archive utilities
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
devit zip dist.zip src/ README.md
|
|
214
|
+
devit zip dist.zip . -x __pycache__ -x "*.pyc" -l 9
|
|
215
|
+
devit unzip dist.zip ./output
|
|
216
|
+
devit unzip dist.zip --list # show contents without extracting
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
---
|
|
220
220
|
|
|
221
|
-
### `
|
|
221
|
+
### `devit env` — Environment variable management
|
|
222
222
|
|
|
223
223
|
```bash
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
devit env list # list all env vars
|
|
225
|
+
devit env list --filter AWS # filter by keyword
|
|
226
|
+
devit env list --json # JSON output
|
|
227
227
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
devit env export # save to .env (dotenv format)
|
|
229
|
+
devit env export vars.json --format json
|
|
230
|
+
devit env export activate.sh --format shell # bash / zsh
|
|
231
|
+
devit env export activate.ps1 --format powershell # Windows PowerShell
|
|
232
|
+
devit env export activate.bat --format cmd # Windows CMD
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
devit env diff .env .env.production # show what changed
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
---
|
|
@@ -265,3 +265,4 @@ Pull requests are welcome!
|
|
|
265
265
|
MIT — see [LICENSE](https://github.com/dipenpadhiyar/devit-cli/blob/main/LICENSE) for details.
|
|
266
266
|
|
|
267
267
|
|
|
268
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/
|
|
2
|
+
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/devit.png" alt="devit-cli" width="300"/>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
@@ -30,19 +30,19 @@ Requires **Python 3.10+**. Works on **Windows · Linux · macOS**.
|
|
|
30
30
|
## Quick Start
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
devit # show help + logo
|
|
34
|
+
devit init # interactive project wizard
|
|
35
|
+
devit info # system snapshot
|
|
36
|
+
devit clean # remove caches & build artifacts
|
|
37
|
+
devit dev # start dev server / install in dev mode
|
|
38
|
+
devit test # run tests (auto-detects pytest / django)
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
---
|
|
42
42
|
|
|
43
43
|
## Commands
|
|
44
44
|
|
|
45
|
-
### `
|
|
45
|
+
### `devit init` — Project wizard
|
|
46
46
|
|
|
47
47
|
Interactively scaffold a new project. Asks for:
|
|
48
48
|
|
|
@@ -53,10 +53,10 @@ Interactively scaffold a new project. Asks for:
|
|
|
53
53
|
| Python version | e.g. `3.11` |
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
devit init # fully interactive
|
|
57
|
+
devit init my-api --type fastapi --env venv
|
|
58
|
+
devit init my-lib --type package --env conda --python 3.12
|
|
59
|
+
devit init my-app -y # skip confirmation prompt
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
#### Generated structures
|
|
@@ -119,88 +119,88 @@ my-aws/
|
|
|
119
119
|
|
|
120
120
|
---
|
|
121
121
|
|
|
122
|
-
### `
|
|
122
|
+
### `devit dev / run / build / test` — Unified task runner
|
|
123
123
|
|
|
124
124
|
Auto-detects project type and runs the right command:
|
|
125
125
|
|
|
126
126
|
| Command | Package | FastAPI | Django | AWS |
|
|
127
127
|
|---|---|---|---|---|
|
|
128
|
-
| `
|
|
129
|
-
| `
|
|
130
|
-
| `
|
|
131
|
-
| `
|
|
128
|
+
| `devit dev` | `pip install -e .[dev]` | `uvicorn main:app --reload` | `manage.py runserver` | `sam local start-api` |
|
|
129
|
+
| `devit run` | `python -m <module>` | `uvicorn main:app` | `manage.py runserver 0.0.0.0` | `python -m scripts.main` |
|
|
130
|
+
| `devit build` | `python -m build` | `pip install -r requirements.txt` | `pip install -r requirements.txt` | `sam build` |
|
|
131
|
+
| `devit test` | `pytest -v` | `pytest -v` | `manage.py test` | `pytest -v` |
|
|
132
132
|
|
|
133
133
|
```bash
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
134
|
+
devit dev
|
|
135
|
+
devit test
|
|
136
|
+
devit build
|
|
137
|
+
devit run -- --port 9000 # extra args forwarded
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
---
|
|
141
141
|
|
|
142
|
-
### `
|
|
142
|
+
### `devit clean` — Remove artifacts
|
|
143
143
|
|
|
144
144
|
```bash
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
devit clean # clean cwd
|
|
146
|
+
devit clean ./my-project # clean specific dir
|
|
147
|
+
devit clean --dry-run # preview only
|
|
148
|
+
devit clean --include-venv # also remove .venv
|
|
149
|
+
devit clean -y # skip confirmation
|
|
150
150
|
```
|
|
151
151
|
|
|
152
152
|
Removes: `__pycache__`, `*.pyc`, `.pytest_cache`, `build/`, `dist/`, `*.egg-info`, `.DS_Store`, `*.log`, `node_modules`, `.coverage`, and more.
|
|
153
153
|
|
|
154
154
|
---
|
|
155
155
|
|
|
156
|
-
### `
|
|
156
|
+
### `devit info` — System snapshot
|
|
157
157
|
|
|
158
158
|
```bash
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
devit info
|
|
160
|
+
devit info --json
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
Shows: OS, hostname, Python version + executable, active venv/conda env, CPU count + frequency, RAM usage, disk usage.
|
|
164
164
|
|
|
165
165
|
---
|
|
166
166
|
|
|
167
|
-
### `
|
|
167
|
+
### `devit find` — Fast file search
|
|
168
168
|
|
|
169
169
|
```bash
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
170
|
+
devit find "*.py"
|
|
171
|
+
devit find "config" -e toml -e ini
|
|
172
|
+
devit find "*" --min-size 1mb --newer-than 7 # >1 MB, modified in last 7 days
|
|
173
|
+
devit find --dirs-only "src"
|
|
174
|
+
devit find "*" -l 500 # show up to 500 results
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
---
|
|
178
178
|
|
|
179
|
-
### `
|
|
179
|
+
### `devit zip` / `devit unzip` — Archive utilities
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
182
|
+
devit zip dist.zip src/ README.md
|
|
183
|
+
devit zip dist.zip . -x __pycache__ -x "*.pyc" -l 9
|
|
184
|
+
devit unzip dist.zip ./output
|
|
185
|
+
devit unzip dist.zip --list # show contents without extracting
|
|
186
186
|
```
|
|
187
187
|
|
|
188
188
|
---
|
|
189
189
|
|
|
190
|
-
### `
|
|
190
|
+
### `devit env` — Environment variable management
|
|
191
191
|
|
|
192
192
|
```bash
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
devit env list # list all env vars
|
|
194
|
+
devit env list --filter AWS # filter by keyword
|
|
195
|
+
devit env list --json # JSON output
|
|
196
196
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
197
|
+
devit env export # save to .env (dotenv format)
|
|
198
|
+
devit env export vars.json --format json
|
|
199
|
+
devit env export activate.sh --format shell # bash / zsh
|
|
200
|
+
devit env export activate.ps1 --format powershell # Windows PowerShell
|
|
201
|
+
devit env export activate.bat --format cmd # Windows CMD
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
devit env diff .env .env.production # show what changed
|
|
204
204
|
```
|
|
205
205
|
|
|
206
206
|
---
|
|
@@ -234,3 +234,4 @@ Pull requests are welcome!
|
|
|
234
234
|
MIT — see [LICENSE](https://github.com/dipenpadhiyar/devit-cli/blob/main/LICENSE) for details.
|
|
235
235
|
|
|
236
236
|
|
|
237
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devit-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: A full-featured CLI framework for professional Python developers
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
Project-URL: Homepage, https://github.com/dipenpadhiyar/devit-cli
|
|
@@ -30,7 +30,7 @@ Requires-Dist: ruff>=0.4; extra == "dev"
|
|
|
30
30
|
Dynamic: license-file
|
|
31
31
|
|
|
32
32
|
<p align="center">
|
|
33
|
-
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/
|
|
33
|
+
<img src="https://raw.githubusercontent.com/dipenpadhiyar/devit-cli/main/assets/devit.png" alt="devit-cli" width="300"/>
|
|
34
34
|
</p>
|
|
35
35
|
|
|
36
36
|
<p align="center">
|
|
@@ -61,19 +61,19 @@ Requires **Python 3.10+**. Works on **Windows · Linux · macOS**.
|
|
|
61
61
|
## Quick Start
|
|
62
62
|
|
|
63
63
|
```bash
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
devit # show help + logo
|
|
65
|
+
devit init # interactive project wizard
|
|
66
|
+
devit info # system snapshot
|
|
67
|
+
devit clean # remove caches & build artifacts
|
|
68
|
+
devit dev # start dev server / install in dev mode
|
|
69
|
+
devit test # run tests (auto-detects pytest / django)
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
---
|
|
73
73
|
|
|
74
74
|
## Commands
|
|
75
75
|
|
|
76
|
-
### `
|
|
76
|
+
### `devit init` — Project wizard
|
|
77
77
|
|
|
78
78
|
Interactively scaffold a new project. Asks for:
|
|
79
79
|
|
|
@@ -84,10 +84,10 @@ Interactively scaffold a new project. Asks for:
|
|
|
84
84
|
| Python version | e.g. `3.11` |
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
devit init # fully interactive
|
|
88
|
+
devit init my-api --type fastapi --env venv
|
|
89
|
+
devit init my-lib --type package --env conda --python 3.12
|
|
90
|
+
devit init my-app -y # skip confirmation prompt
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
#### Generated structures
|
|
@@ -150,88 +150,88 @@ my-aws/
|
|
|
150
150
|
|
|
151
151
|
---
|
|
152
152
|
|
|
153
|
-
### `
|
|
153
|
+
### `devit dev / run / build / test` — Unified task runner
|
|
154
154
|
|
|
155
155
|
Auto-detects project type and runs the right command:
|
|
156
156
|
|
|
157
157
|
| Command | Package | FastAPI | Django | AWS |
|
|
158
158
|
|---|---|---|---|---|
|
|
159
|
-
| `
|
|
160
|
-
| `
|
|
161
|
-
| `
|
|
162
|
-
| `
|
|
159
|
+
| `devit dev` | `pip install -e .[dev]` | `uvicorn main:app --reload` | `manage.py runserver` | `sam local start-api` |
|
|
160
|
+
| `devit run` | `python -m <module>` | `uvicorn main:app` | `manage.py runserver 0.0.0.0` | `python -m scripts.main` |
|
|
161
|
+
| `devit build` | `python -m build` | `pip install -r requirements.txt` | `pip install -r requirements.txt` | `sam build` |
|
|
162
|
+
| `devit test` | `pytest -v` | `pytest -v` | `manage.py test` | `pytest -v` |
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
devit dev
|
|
166
|
+
devit test
|
|
167
|
+
devit build
|
|
168
|
+
devit run -- --port 9000 # extra args forwarded
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
---
|
|
172
172
|
|
|
173
|
-
### `
|
|
173
|
+
### `devit clean` — Remove artifacts
|
|
174
174
|
|
|
175
175
|
```bash
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
devit clean # clean cwd
|
|
177
|
+
devit clean ./my-project # clean specific dir
|
|
178
|
+
devit clean --dry-run # preview only
|
|
179
|
+
devit clean --include-venv # also remove .venv
|
|
180
|
+
devit clean -y # skip confirmation
|
|
181
181
|
```
|
|
182
182
|
|
|
183
183
|
Removes: `__pycache__`, `*.pyc`, `.pytest_cache`, `build/`, `dist/`, `*.egg-info`, `.DS_Store`, `*.log`, `node_modules`, `.coverage`, and more.
|
|
184
184
|
|
|
185
185
|
---
|
|
186
186
|
|
|
187
|
-
### `
|
|
187
|
+
### `devit info` — System snapshot
|
|
188
188
|
|
|
189
189
|
```bash
|
|
190
|
-
|
|
191
|
-
|
|
190
|
+
devit info
|
|
191
|
+
devit info --json
|
|
192
192
|
```
|
|
193
193
|
|
|
194
194
|
Shows: OS, hostname, Python version + executable, active venv/conda env, CPU count + frequency, RAM usage, disk usage.
|
|
195
195
|
|
|
196
196
|
---
|
|
197
197
|
|
|
198
|
-
### `
|
|
198
|
+
### `devit find` — Fast file search
|
|
199
199
|
|
|
200
200
|
```bash
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
devit find "*.py"
|
|
202
|
+
devit find "config" -e toml -e ini
|
|
203
|
+
devit find "*" --min-size 1mb --newer-than 7 # >1 MB, modified in last 7 days
|
|
204
|
+
devit find --dirs-only "src"
|
|
205
|
+
devit find "*" -l 500 # show up to 500 results
|
|
206
206
|
```
|
|
207
207
|
|
|
208
208
|
---
|
|
209
209
|
|
|
210
|
-
### `
|
|
210
|
+
### `devit zip` / `devit unzip` — Archive utilities
|
|
211
211
|
|
|
212
212
|
```bash
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
devit zip dist.zip src/ README.md
|
|
214
|
+
devit zip dist.zip . -x __pycache__ -x "*.pyc" -l 9
|
|
215
|
+
devit unzip dist.zip ./output
|
|
216
|
+
devit unzip dist.zip --list # show contents without extracting
|
|
217
217
|
```
|
|
218
218
|
|
|
219
219
|
---
|
|
220
220
|
|
|
221
|
-
### `
|
|
221
|
+
### `devit env` — Environment variable management
|
|
222
222
|
|
|
223
223
|
```bash
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
devit env list # list all env vars
|
|
225
|
+
devit env list --filter AWS # filter by keyword
|
|
226
|
+
devit env list --json # JSON output
|
|
227
227
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
devit env export # save to .env (dotenv format)
|
|
229
|
+
devit env export vars.json --format json
|
|
230
|
+
devit env export activate.sh --format shell # bash / zsh
|
|
231
|
+
devit env export activate.ps1 --format powershell # Windows PowerShell
|
|
232
|
+
devit env export activate.bat --format cmd # Windows CMD
|
|
233
233
|
|
|
234
|
-
|
|
234
|
+
devit env diff .env .env.production # show what changed
|
|
235
235
|
```
|
|
236
236
|
|
|
237
237
|
---
|
|
@@ -265,3 +265,4 @@ Pull requests are welcome!
|
|
|
265
265
|
MIT — see [LICENSE](https://github.com/dipenpadhiyar/devit-cli/blob/main/LICENSE) for details.
|
|
266
266
|
|
|
267
267
|
|
|
268
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# {{project_name}}
|
|
2
|
+
|
|
3
|
+
AWS automation scripts — scaffolded with **devit-cli**
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
devit build # installs requirements
|
|
9
|
+
aws configure # configure your AWS credentials
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Run
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
devit run list-buckets
|
|
16
|
+
devit run list-instances
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Test
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
devit test
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# {{project_name}}
|
|
2
|
-
|
|
3
|
-
AWS automation scripts — scaffolded with **devkit-cli**
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
devkit build # installs requirements
|
|
9
|
-
aws configure # configure your AWS credentials
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Run
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
devkit run list-buckets
|
|
16
|
-
devkit run list-instances
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Test
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
devkit test
|
|
23
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{devit_cli-0.1.2 → devit_cli-0.1.3}/devkit_cli/templates/package/{{module_name}}/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|