# `sc_crawler.inspector`

> Helpers to load the hardware discovery and benchmarking data from the sc-inspector-data repository.

# `sc_crawler.inspector`

**Functions:**

- [**inspector_data_path**](#inspector_data_path) – Return a subpath under the cached inspector data root.
- [**inspect_server_benchmarks**](#inspect_server_benchmarks) – Generate a list of BenchmarkScore-like dicts for the Server.
- [**inspect_database_benchmarks**](#inspect_database_benchmarks) – Generate a list of BenchmarkScore-like dicts for the Database.
- [**inspect_update_server_dict**](#inspect_update_server_dict) – Update a Server-like dict based on inspector data.

## func <code class="doc-name">inspector_data_path</code> [inspector.py:103–105](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/inspector.py#L103-L105)

```python
inspector_data_path(dir_name='data')
```

Return a subpath under the cached inspector data root.

## func <code class="doc-name">inspect_server_benchmarks</code> [inspector.py:516–1107](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/inspector.py#L516-L1107)

```python
inspect_server_benchmarks(server)
```

Generate a list of BenchmarkScore-like dicts for the Server.

## func <code class="doc-name">inspect_database_benchmarks</code> [inspector.py:1189–1193](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/inspector.py#L1189-L1193)

```python
inspect_database_benchmarks(database)
```

Generate a list of BenchmarkScore-like dicts for the Database.

## func <code class="doc-name">inspect_update_server_dict</code> [inspector.py:1805–2075](https://github.com/SpareCores/sc-crawler/blob/81bb61ea164dda526de4aa6de298810007274f21/src/sc_crawler/inspector.py#L1805-L2075)

```python
inspect_update_server_dict(server)
```

Update a Server-like dict based on inspector data.
