## check()


`skd check` as data: the verdicts and their evidence.


Usage

``` python
check(
    ref,
    *,
    mission=None,
    hash_=False,
    remote=False,
    spice=False,
)
```


Opens the database named in the config read-only, does one thing and closes it. This function calls [KernelDB.check_report](KernelDB.check_report.md#spice_kernel_db.KernelDB.check_report), whose documentation describes the verdicts and the result in full.


## Parameters


`ref: str | Path`  
The metakernel: a path, or any reference [resolve_metakernel](resolve_metakernel.md#spice_kernel_db.resolve_metakernel) accepts.

`mission: str | None = None`  
Mission name for preferred-mission resolution.

`hash_: bool = ``False`  
Verify SHA-256 hashes: recompute them for the `resolves` verdict and, with *remote*, compare them against the server.

`remote: bool = ``False`  
Compare the local kernels with the server. This is the one network path.

`spice: bool = ``False`  
With *remote*, also furnsh each local kernel in an isolated kernel pool and report what SPICE refuses to read. Needs SpiceyPy.


## Returns


`dict`  
With the keys `mk_path`, `present`, `resolves`, `remote`, `newer`, `verdicts` (three `{bit, ok, line}` rows) and [exit_code](cli.exit_code.md#spice_kernel_db.cli.exit_code), the sum of the failed verdicts' bits.


## Raises


`MetakernelNotTracked`  
*ref* matches nothing.

`AmbiguousMetakernel`  
*ref* matches several registry rows.
