deepctl-cmd-debug 0.1.0__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,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: deepctl-cmd-debug
3
+ Version: 0.1.0
4
+ Summary: Debug command group for deepctl
5
+ Author-email: Deepgram <devrel@deepgram.com>
6
+ Maintainer-email: Deepgram <devrel@deepgram.com>
7
+ License-Expression: MIT
8
+ Keywords: deepgram,cli,debug,diagnostics
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.0
18
+ Requires-Dist: click>=8.0.0
19
+ Requires-Dist: rich>=13.0.0
20
+ Requires-Dist: pydantic>=2.0.0
21
+
22
+ # deepctl-cmd-debug
23
+
24
+ Debug command group for the Deepgram CLI (deepctl).
@@ -0,0 +1,3 @@
1
+ # deepctl-cmd-debug
2
+
3
+ Debug command group for the Deepgram CLI (deepctl).
@@ -0,0 +1,41 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "deepctl-cmd-debug"
7
+ version = "0.1.0"
8
+ description = "Debug command group for deepctl"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ authors = [{ name = "Deepgram", email = "devrel@deepgram.com" }]
12
+ maintainers = [{ name = "Deepgram", email = "devrel@deepgram.com" }]
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Intended Audience :: Developers",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.10",
18
+ "Programming Language :: Python :: 3.11",
19
+ "Programming Language :: Python :: 3.12",
20
+ ]
21
+ keywords = ["deepgram", "cli", "debug", "diagnostics"]
22
+ requires-python = ">=3.10"
23
+ dependencies = [
24
+ "deepctl-core>=0.1.0",
25
+ "click>=8.0.0",
26
+ "rich>=13.0.0",
27
+ "pydantic>=2.0.0",
28
+ ]
29
+
30
+ [project.scripts]
31
+ # Internal commands not meant to be called directly
32
+
33
+ [project.entry-points."deepctl.commands"]
34
+ debug = "deepctl_cmd_debug.command:DebugCommand"
35
+
36
+ [tool.setuptools]
37
+ package-dir = { "" = "src" }
38
+
39
+ [tool.setuptools.packages.find]
40
+ where = ["src"]
41
+ include = ["deepctl_cmd_debug*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,5 @@
1
+ """Debug command group for deepctl."""
2
+
3
+ from .command import DebugCommand
4
+
5
+ __all__ = ["DebugCommand"]
@@ -0,0 +1,84 @@
1
+ """Debug command group for deepctl."""
2
+
3
+ from typing import Any
4
+
5
+ import click
6
+ from deepctl_core import AuthManager, BaseGroupCommand, Config, DeepgramClient
7
+ from rich.console import Console
8
+
9
+ from .models import DebugGroupResult
10
+
11
+ console = Console()
12
+
13
+
14
+ class DebugCommand(BaseGroupCommand):
15
+ """Debug command group for diagnostic utilities."""
16
+
17
+ name = "debug"
18
+ help = "Debug utilities for troubleshooting Deepgram integration issues"
19
+ short_help = "Debug utilities"
20
+
21
+ # Debug commands don't require auth by default
22
+ requires_auth = False
23
+ requires_project = False
24
+ ci_friendly = True
25
+
26
+ # Show help when invoked without subcommand
27
+ invoke_without_command = False
28
+
29
+ def get_arguments(self) -> list[dict[str, Any]]:
30
+ """Get command arguments and options."""
31
+ return [
32
+ {
33
+ "names": ["--verbose", "-v"],
34
+ "help": "Enable verbose debug output",
35
+ "is_flag": True,
36
+ "is_option": True,
37
+ }
38
+ ]
39
+
40
+ def handle_group(
41
+ self,
42
+ config: Config,
43
+ auth_manager: AuthManager,
44
+ client: DeepgramClient,
45
+ **kwargs: Any,
46
+ ) -> Any:
47
+ """Handle group-specific logic.
48
+
49
+ This is called when the group is invoked, whether or not a
50
+ subcommand is specified. We can use this for group-level
51
+ initialization or logging.
52
+ """
53
+ verbose = kwargs.get("verbose", False)
54
+
55
+ if verbose:
56
+ console.print("[dim]Debug mode enabled with verbose output[/dim]")
57
+
58
+ # If no subcommand was invoked, we could provide custom help or info
59
+ ctx = click.get_current_context()
60
+ if ctx.invoked_subcommand is None:
61
+ # The base class will show help automatically, but we can add
62
+ # additional information here if needed
63
+ console.print("\n[blue]Available debug utilities:[/blue]")
64
+ console.print(" • browser - Debug browser-related issues")
65
+ console.print(" • network - Debug network connectivity")
66
+ console.print(" • audio - Debug audio file issues")
67
+ console.print(
68
+ "\n[dim]Use 'deepctl debug <subcommand> --help' for "
69
+ "more information[/dim]"
70
+ )
71
+
72
+ return DebugGroupResult(
73
+ status="info",
74
+ message="Debug command requires a subcommand",
75
+ subcommands={
76
+ "browser": "Debug browser-related issues",
77
+ "network": "Debug network connectivity",
78
+ "audio": "Debug audio file issues",
79
+ },
80
+ )
81
+
82
+ # A subcommand was invoked, we can optionally do something here
83
+ # but usually we just let the subcommand handle itself
84
+ return None
@@ -0,0 +1,10 @@
1
+ """Data models for debug command group."""
2
+
3
+ from deepctl_core import BaseResult
4
+
5
+
6
+ class DebugGroupResult(BaseResult):
7
+ """Result from debug group command execution."""
8
+
9
+ subcommands: dict[str, str] | None = None
10
+ message: str | None = None
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: deepctl-cmd-debug
3
+ Version: 0.1.0
4
+ Summary: Debug command group for deepctl
5
+ Author-email: Deepgram <devrel@deepgram.com>
6
+ Maintainer-email: Deepgram <devrel@deepgram.com>
7
+ License-Expression: MIT
8
+ Keywords: deepgram,cli,debug,diagnostics
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.0
18
+ Requires-Dist: click>=8.0.0
19
+ Requires-Dist: rich>=13.0.0
20
+ Requires-Dist: pydantic>=2.0.0
21
+
22
+ # deepctl-cmd-debug
23
+
24
+ Debug command group for the Deepgram CLI (deepctl).
@@ -0,0 +1,11 @@
1
+ README.md
2
+ pyproject.toml
3
+ src/deepctl_cmd_debug/__init__.py
4
+ src/deepctl_cmd_debug/command.py
5
+ src/deepctl_cmd_debug/models.py
6
+ src/deepctl_cmd_debug.egg-info/PKG-INFO
7
+ src/deepctl_cmd_debug.egg-info/SOURCES.txt
8
+ src/deepctl_cmd_debug.egg-info/dependency_links.txt
9
+ src/deepctl_cmd_debug.egg-info/entry_points.txt
10
+ src/deepctl_cmd_debug.egg-info/requires.txt
11
+ src/deepctl_cmd_debug.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [deepctl.commands]
2
+ debug = deepctl_cmd_debug.command:DebugCommand
@@ -0,0 +1,4 @@
1
+ deepctl-core>=0.1.0
2
+ click>=8.0.0
3
+ rich>=13.0.0
4
+ pydantic>=2.0.0
@@ -0,0 +1 @@
1
+ deepctl_cmd_debug