Snapshot

class Snapshot(evidence, metadata)[source]

Deduplicated source observations and their collection metadata.

Parameters:
property hostnames: tuple[str, ...]

Return distinct normalized hostnames in sorted order.

property sha256: str

Hash the schema-versioned evidence and metadata payload.

save(path)[source]

Save a snapshot with its integrity checksum.

Parameters:

path (str | Path)

Return type:

None

classmethod load(path)[source]

Load a snapshot after checking its schema version and checksum.

Parameters:

path (str | Path)

Return type:

Snapshot

classmethod merge(*snapshots)[source]

Union observations, not successive states of a complete registry.

Parameters:

snapshots (Snapshot)

Return type:

Snapshot

export_csv(path, *, label=None, as_of=None, allow_undated_rules=False)[source]

Export eligible host classifications and a reproducibility manifest.

Parameters:
Return type:

dict