Source code for pyecsca.sca.target.base

"""Provides an abstract base class for targets."""
from abc import ABC, abstractmethod

from public import public


[docs] @public class Target(ABC): """A target."""
[docs] @abstractmethod def connect(self): """Connect to the target device.""" raise NotImplementedError
[docs] @abstractmethod def disconnect(self): """Disconnect from the target device.""" raise NotImplementedError