common.py 227 B

123456789
  1. from dataclasses import dataclass, field
  2. from datetime import datetime
  3. from typing import Hashable
  4. @dataclass(frozen=True)
  5. class BaseMeasurement(Hashable):
  6. timestamp: datetime
  7. source: str
  8. #series: str = field(init=False)