import uuid import dataclasses import datetime import sqlite3 from tmtccmd.pus.tm.s3_fsfw_hk import Service3FsfwTm @dataclasses.dataclass class HkTmInfo: packet_uuid: uuid.UUID hk_packet: Service3FsfwTm db_con: sqlite3.Connection hk_data: bytes @property def packet_datetime(self) -> datetime.datetime: return self.hk_packet.pus_tm.time_provider.as_datetime() @property def set_id(self) -> int: return self.hk_packet.set_id