Source code for gadgets.io.io

import abc

[docs]class IO(object): """ All subclasses of Device have an 'io' property. It should return an object that provides this interface. """ __metaclass__ = abc.ABCMeta @abc.abstractmethod
[docs] def on(self): """ turn on the io device """ return
@abc.abstractmethod
[docs] def off(self): """ turn the io device off """ return
@abc.abstractmethod
[docs] def close(self): """ close the io device """ return
@abc.abstractproperty
[docs] def status(self): """ status of the io device """ return