deepctl-cmd-projects 0.1.8__tar.gz → 0.1.11__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.
- deepctl_cmd_projects-0.1.11/PKG-INFO +65 -0
- deepctl_cmd_projects-0.1.11/README.md +43 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/pyproject.toml +3 -3
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/command.py +22 -33
- deepctl_cmd_projects-0.1.11/src/deepctl_cmd_projects.egg-info/PKG-INFO +65 -0
- deepctl_cmd_projects-0.1.11/src/deepctl_cmd_projects.egg-info/requires.txt +5 -0
- deepctl_cmd_projects-0.1.8/PKG-INFO +0 -25
- deepctl_cmd_projects-0.1.8/README.md +0 -3
- deepctl_cmd_projects-0.1.8/src/deepctl_cmd_projects.egg-info/PKG-INFO +0 -25
- deepctl_cmd_projects-0.1.8/src/deepctl_cmd_projects.egg-info/requires.txt +0 -5
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/setup.cfg +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/__init__.py +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/models.py +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects.egg-info/SOURCES.txt +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects.egg-info/dependency_links.txt +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects.egg-info/entry_points.txt +0 -0
- {deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deepctl-cmd-projects
|
|
3
|
+
Version: 0.1.11
|
|
4
|
+
Summary: Projects command for deepctl
|
|
5
|
+
Author-email: Deepgram <devrel@deepgram.com>
|
|
6
|
+
Maintainer-email: Deepgram <devrel@deepgram.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Keywords: deepgram,cli,projects,management
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: deepctl-core>=0.1.10
|
|
18
|
+
Requires-Dist: click>=8.0.0
|
|
19
|
+
Requires-Dist: rich>=13.0.0
|
|
20
|
+
Requires-Dist: deepgram-sdk>=6.0.0rc2
|
|
21
|
+
Requires-Dist: pydantic>=2.0.0
|
|
22
|
+
|
|
23
|
+
# deepctl-cmd-projects
|
|
24
|
+
|
|
25
|
+
> Part of [deepctl](https://github.com/deepgram/cli) — Official Deepgram CLI
|
|
26
|
+
|
|
27
|
+
Projects command for deepctl
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
This package is included with deepctl and does not need to be installed separately.
|
|
32
|
+
|
|
33
|
+
### Install deepctl
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Install with pip
|
|
37
|
+
pip install deepctl
|
|
38
|
+
|
|
39
|
+
# Or install with uv
|
|
40
|
+
uv tool install deepctl
|
|
41
|
+
|
|
42
|
+
# Or install with pipx
|
|
43
|
+
pipx install deepctl
|
|
44
|
+
|
|
45
|
+
# Or run without installing
|
|
46
|
+
uvx deepctl --help
|
|
47
|
+
pipx run deepctl --help
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Commands
|
|
51
|
+
|
|
52
|
+
| Command | Entry Point |
|
|
53
|
+
|---------|-------------|
|
|
54
|
+
| `deepctl projects` | `deepctl_cmd_projects.command:ProjectsCommand` |
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
- `click>=8.0.0`
|
|
59
|
+
- `rich>=13.0.0`
|
|
60
|
+
- `deepgram-sdk>=6.0.0rc2`
|
|
61
|
+
- `pydantic>=2.0.0`
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
MIT — see [LICENSE](../../LICENSE)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# deepctl-cmd-projects
|
|
2
|
+
|
|
3
|
+
> Part of [deepctl](https://github.com/deepgram/cli) — Official Deepgram CLI
|
|
4
|
+
|
|
5
|
+
Projects command for deepctl
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
This package is included with deepctl and does not need to be installed separately.
|
|
10
|
+
|
|
11
|
+
### Install deepctl
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Install with pip
|
|
15
|
+
pip install deepctl
|
|
16
|
+
|
|
17
|
+
# Or install with uv
|
|
18
|
+
uv tool install deepctl
|
|
19
|
+
|
|
20
|
+
# Or install with pipx
|
|
21
|
+
pipx install deepctl
|
|
22
|
+
|
|
23
|
+
# Or run without installing
|
|
24
|
+
uvx deepctl --help
|
|
25
|
+
pipx run deepctl --help
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
|
|
30
|
+
| Command | Entry Point |
|
|
31
|
+
|---------|-------------|
|
|
32
|
+
| `deepctl projects` | `deepctl_cmd_projects.command:ProjectsCommand` |
|
|
33
|
+
|
|
34
|
+
## Dependencies
|
|
35
|
+
|
|
36
|
+
- `click>=8.0.0`
|
|
37
|
+
- `rich>=13.0.0`
|
|
38
|
+
- `deepgram-sdk>=6.0.0rc2`
|
|
39
|
+
- `pydantic>=2.0.0`
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT — see [LICENSE](../../LICENSE)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "deepctl-cmd-projects"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.11" # x-release-please-version
|
|
8
8
|
description = "Projects command for deepctl"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -21,10 +21,10 @@ classifiers = [
|
|
|
21
21
|
keywords = ["deepgram", "cli", "projects", "management"]
|
|
22
22
|
requires-python = ">=3.10"
|
|
23
23
|
dependencies = [
|
|
24
|
-
"deepctl-core>=0.1.
|
|
24
|
+
"deepctl-core>=0.1.10",
|
|
25
25
|
"click>=8.0.0",
|
|
26
26
|
"rich>=13.0.0",
|
|
27
|
-
"deepgram-sdk>=
|
|
27
|
+
"deepgram-sdk>=6.0.0rc2",
|
|
28
28
|
"pydantic>=2.0.0",
|
|
29
29
|
]
|
|
30
30
|
|
{deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/command.py
RENAMED
|
@@ -28,6 +28,16 @@ class ProjectsCommand(BaseCommand):
|
|
|
28
28
|
requires_project = False # Project ID is optional for listing
|
|
29
29
|
ci_friendly = True
|
|
30
30
|
|
|
31
|
+
examples = [
|
|
32
|
+
"dg projects --list",
|
|
33
|
+
"dg projects --show PROJECT_ID",
|
|
34
|
+
"dg projects --create 'My New Project'",
|
|
35
|
+
]
|
|
36
|
+
agent_help = (
|
|
37
|
+
"List, create, and inspect Deepgram projects. Projects are containers "
|
|
38
|
+
"for API keys and usage tracking. Requires authentication."
|
|
39
|
+
)
|
|
40
|
+
|
|
31
41
|
def get_arguments(self) -> list[dict[str, Any]]:
|
|
32
42
|
"""Get command arguments and options."""
|
|
33
43
|
return [
|
|
@@ -94,9 +104,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
94
104
|
elif show_current:
|
|
95
105
|
return self._show_current_project(config, auth_manager, client)
|
|
96
106
|
elif set_default:
|
|
97
|
-
return self._set_default_project(
|
|
98
|
-
config, auth_manager, set_default
|
|
99
|
-
)
|
|
107
|
+
return self._set_default_project(config, auth_manager, set_default)
|
|
100
108
|
else:
|
|
101
109
|
# Default behavior - list projects
|
|
102
110
|
return self._list_projects(client)
|
|
@@ -105,9 +113,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
105
113
|
console.print(f"[red]Error:[/red] {e}")
|
|
106
114
|
return BaseResult(status="error", message=str(e))
|
|
107
115
|
|
|
108
|
-
def _list_projects(
|
|
109
|
-
self, client: DeepgramClient
|
|
110
|
-
) -> ProjectsResult | BaseResult:
|
|
116
|
+
def _list_projects(self, client: DeepgramClient) -> ProjectsResult | BaseResult:
|
|
111
117
|
"""List all projects."""
|
|
112
118
|
console.print("[blue]Fetching projects...[/blue]")
|
|
113
119
|
|
|
@@ -137,9 +143,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
137
143
|
)
|
|
138
144
|
|
|
139
145
|
project_models: list[ProjectInfo] = []
|
|
140
|
-
console.print(
|
|
141
|
-
f"[green]Found {len(projects_raw)} project(s):[/green]"
|
|
142
|
-
)
|
|
146
|
+
console.print(f"[green]Found {len(projects_raw)} project(s):[/green]")
|
|
143
147
|
|
|
144
148
|
for proj in projects_raw:
|
|
145
149
|
# Handle project objects that might not be dicts
|
|
@@ -199,9 +203,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
199
203
|
console.print("[green]✓[/green] Project created successfully")
|
|
200
204
|
console.print(f"[dim]Project ID:[/dim] {project_id}")
|
|
201
205
|
|
|
202
|
-
proj = ProjectInfo(
|
|
203
|
-
project_id=project_id, name=name, company=company
|
|
204
|
-
)
|
|
206
|
+
proj = ProjectInfo(project_id=project_id, name=name, company=company)
|
|
205
207
|
return ProjectsResult(
|
|
206
208
|
status="success",
|
|
207
209
|
message="Project created successfully",
|
|
@@ -210,8 +212,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
210
212
|
)
|
|
211
213
|
else:
|
|
212
214
|
console.print(
|
|
213
|
-
"[yellow]Project creation response missing "
|
|
214
|
-
"project_id[/yellow]"
|
|
215
|
+
"[yellow]Project creation response missing project_id[/yellow]"
|
|
215
216
|
)
|
|
216
217
|
return ProjectsResult(
|
|
217
218
|
status="warning",
|
|
@@ -251,12 +252,8 @@ class ProjectsCommand(BaseCommand):
|
|
|
251
252
|
console.print(f" ID: {project_id}")
|
|
252
253
|
console.print(f" Company: {company}")
|
|
253
254
|
|
|
254
|
-
proj = ProjectInfo(
|
|
255
|
-
|
|
256
|
-
)
|
|
257
|
-
return ProjectsResult(
|
|
258
|
-
status="success", projects=[proj], count=1
|
|
259
|
-
)
|
|
255
|
+
proj = ProjectInfo(project_id=project_id, name=name, company=company)
|
|
256
|
+
return ProjectsResult(status="success", projects=[proj], count=1)
|
|
260
257
|
else:
|
|
261
258
|
console.print("[yellow]Project details incomplete[/yellow]")
|
|
262
259
|
# Still try to create a project info with what we have
|
|
@@ -270,9 +267,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
270
267
|
if isinstance(result_dict, dict)
|
|
271
268
|
else None
|
|
272
269
|
)
|
|
273
|
-
proj = ProjectInfo(
|
|
274
|
-
project_id=project_id, name=name, company=company
|
|
275
|
-
)
|
|
270
|
+
proj = ProjectInfo(project_id=project_id, name=name, company=company)
|
|
276
271
|
return ProjectsResult(
|
|
277
272
|
status="warning",
|
|
278
273
|
message="Incomplete project data",
|
|
@@ -293,8 +288,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
293
288
|
if not project_id:
|
|
294
289
|
console.print("[yellow]No current project set[/yellow]")
|
|
295
290
|
console.print(
|
|
296
|
-
"Set a project ID with: "
|
|
297
|
-
"deepctl login --project-id <project_id>"
|
|
291
|
+
"Set a project ID with: deepctl login --project-id <project_id>"
|
|
298
292
|
)
|
|
299
293
|
console.print("Or use environment variable: DEEPGRAM_PROJECT_ID")
|
|
300
294
|
return BaseResult(status="info", message="No current project set")
|
|
@@ -320,13 +314,10 @@ class ProjectsCommand(BaseCommand):
|
|
|
320
314
|
console.print("[green]✓[/green] Project ID validated")
|
|
321
315
|
except Exception as e:
|
|
322
316
|
console.print(
|
|
323
|
-
f"[yellow]Warning:[/yellow] Could not validate "
|
|
324
|
-
f"project: {e}"
|
|
317
|
+
f"[yellow]Warning:[/yellow] Could not validate project: {e}"
|
|
325
318
|
)
|
|
326
319
|
if not self.confirm("Continue anyway?", default=False):
|
|
327
|
-
return BaseResult(
|
|
328
|
-
status="cancelled", message="Cancelled by user"
|
|
329
|
-
)
|
|
320
|
+
return BaseResult(status="cancelled", message="Cancelled by user")
|
|
330
321
|
|
|
331
322
|
# Update profile
|
|
332
323
|
config.create_profile(
|
|
@@ -336,9 +327,7 @@ class ProjectsCommand(BaseCommand):
|
|
|
336
327
|
base_url=current_profile.base_url,
|
|
337
328
|
)
|
|
338
329
|
|
|
339
|
-
console.print(
|
|
340
|
-
f"[green]✓[/green] Default project set to: {project_id}"
|
|
341
|
-
)
|
|
330
|
+
console.print(f"[green]✓[/green] Default project set to: {project_id}")
|
|
342
331
|
|
|
343
332
|
return BaseResult(
|
|
344
333
|
status="success",
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deepctl-cmd-projects
|
|
3
|
+
Version: 0.1.11
|
|
4
|
+
Summary: Projects command for deepctl
|
|
5
|
+
Author-email: Deepgram <devrel@deepgram.com>
|
|
6
|
+
Maintainer-email: Deepgram <devrel@deepgram.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Keywords: deepgram,cli,projects,management
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Requires-Python: >=3.10
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
Requires-Dist: deepctl-core>=0.1.10
|
|
18
|
+
Requires-Dist: click>=8.0.0
|
|
19
|
+
Requires-Dist: rich>=13.0.0
|
|
20
|
+
Requires-Dist: deepgram-sdk>=6.0.0rc2
|
|
21
|
+
Requires-Dist: pydantic>=2.0.0
|
|
22
|
+
|
|
23
|
+
# deepctl-cmd-projects
|
|
24
|
+
|
|
25
|
+
> Part of [deepctl](https://github.com/deepgram/cli) — Official Deepgram CLI
|
|
26
|
+
|
|
27
|
+
Projects command for deepctl
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
This package is included with deepctl and does not need to be installed separately.
|
|
32
|
+
|
|
33
|
+
### Install deepctl
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Install with pip
|
|
37
|
+
pip install deepctl
|
|
38
|
+
|
|
39
|
+
# Or install with uv
|
|
40
|
+
uv tool install deepctl
|
|
41
|
+
|
|
42
|
+
# Or install with pipx
|
|
43
|
+
pipx install deepctl
|
|
44
|
+
|
|
45
|
+
# Or run without installing
|
|
46
|
+
uvx deepctl --help
|
|
47
|
+
pipx run deepctl --help
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Commands
|
|
51
|
+
|
|
52
|
+
| Command | Entry Point |
|
|
53
|
+
|---------|-------------|
|
|
54
|
+
| `deepctl projects` | `deepctl_cmd_projects.command:ProjectsCommand` |
|
|
55
|
+
|
|
56
|
+
## Dependencies
|
|
57
|
+
|
|
58
|
+
- `click>=8.0.0`
|
|
59
|
+
- `rich>=13.0.0`
|
|
60
|
+
- `deepgram-sdk>=6.0.0rc2`
|
|
61
|
+
- `pydantic>=2.0.0`
|
|
62
|
+
|
|
63
|
+
## License
|
|
64
|
+
|
|
65
|
+
MIT — see [LICENSE](../../LICENSE)
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: deepctl-cmd-projects
|
|
3
|
-
Version: 0.1.8
|
|
4
|
-
Summary: Projects command for deepctl
|
|
5
|
-
Author-email: Deepgram <devrel@deepgram.com>
|
|
6
|
-
Maintainer-email: Deepgram <devrel@deepgram.com>
|
|
7
|
-
License-Expression: MIT
|
|
8
|
-
Keywords: deepgram,cli,projects,management
|
|
9
|
-
Classifier: Development Status :: 3 - Alpha
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Requires-Python: >=3.10
|
|
16
|
-
Description-Content-Type: text/markdown
|
|
17
|
-
Requires-Dist: deepctl-core>=0.1.8
|
|
18
|
-
Requires-Dist: click>=8.0.0
|
|
19
|
-
Requires-Dist: rich>=13.0.0
|
|
20
|
-
Requires-Dist: deepgram-sdk>=3.0.0
|
|
21
|
-
Requires-Dist: pydantic>=2.0.0
|
|
22
|
-
|
|
23
|
-
# deepctl-cmd-projects
|
|
24
|
-
|
|
25
|
-
Projects command for deepctl. This package is an internal component of deepctl and is not intended for standalone use.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: deepctl-cmd-projects
|
|
3
|
-
Version: 0.1.8
|
|
4
|
-
Summary: Projects command for deepctl
|
|
5
|
-
Author-email: Deepgram <devrel@deepgram.com>
|
|
6
|
-
Maintainer-email: Deepgram <devrel@deepgram.com>
|
|
7
|
-
License-Expression: MIT
|
|
8
|
-
Keywords: deepgram,cli,projects,management
|
|
9
|
-
Classifier: Development Status :: 3 - Alpha
|
|
10
|
-
Classifier: Intended Audience :: Developers
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Requires-Python: >=3.10
|
|
16
|
-
Description-Content-Type: text/markdown
|
|
17
|
-
Requires-Dist: deepctl-core>=0.1.8
|
|
18
|
-
Requires-Dist: click>=8.0.0
|
|
19
|
-
Requires-Dist: rich>=13.0.0
|
|
20
|
-
Requires-Dist: deepgram-sdk>=3.0.0
|
|
21
|
-
Requires-Dist: pydantic>=2.0.0
|
|
22
|
-
|
|
23
|
-
# deepctl-cmd-projects
|
|
24
|
-
|
|
25
|
-
Projects command for deepctl. This package is an internal component of deepctl and is not intended for standalone use.
|
|
File without changes
|
{deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/__init__.py
RENAMED
|
File without changes
|
{deepctl_cmd_projects-0.1.8 → deepctl_cmd_projects-0.1.11}/src/deepctl_cmd_projects/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|