process.py 275 B

1234567891011121314151617
  1. from abc import ABC, abstractmethod
  2. class Process(ABC):
  3. @property
  4. @abstractmethod
  5. def pid(self) -> int:
  6. pass
  7. @property
  8. @abstractmethod
  9. def command(self) -> str:
  10. pass
  11. @abstractmethod
  12. def read_logs(self) -> str:
  13. pass