# nn_archive

Python API: `hubai_sdk.utils.nn_archive`

## Functions

### cleanup_extracted_path

```python
def cleanup_extracted_path(path: Path):
```

Delete an extracted NN archive path if it exists.

### process_nn_archive

```python
def process_nn_archive(path: Path, overrides: dict[str, Any] | None) -> tuple[Config, NNArchiveConfig, str]:
```

Extracts the archive from tar and parses its config.

Parameters

 * `path` (`Path`): Path to the archive.
 * `overrides` (`dict[str, Any] | None`): Config overrides.

Returns

 * `tuple[Config, NNArchiveConfig, str]`: The parsed configuration, NN Archive configuration, and main stage key.
