# shared

Python API: `luxonis_ml.telemetry.cli.shared`

## 函数

### extract_params

```python
def extract_params(signature: inspect.Signature, args: Iterable[Any], kwargs: dict[str, Any], *, allowlist: set[str] | None) -> dict[str, Any]:
```

将调用参数提取到参数映射中。

### is_click_context

```python
def is_click_context(value: Any) -> bool:
```

如果值看起来像 Click/Typer 上下文对象，则返回 True。

### join_command

```python
def join_command(prefix: str, name: str) -> str:
```

将嵌套命令名称连接成一个字符串。

### skip_telemetry

```python
def skip_telemetry(func: Callable[..., Any]) -> Callable[..., Any]:
```

将命令回调标记为从遥测中排除。

### wrap_command_callback

```python
def wrap_command_callback(func: Callable[..., Any], telemetry: Telemetry, command_name: str, *, allowlist: set[str] | None, include_system_metadata: bool | None) -> Callable[..., Any]:
```

包装命令回调以发出执行遥测。
