File: base_plugin.py

package info (click to toggle)
voctomix-outcasts 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: python: 878; sh: 158; makefile: 18
file content (20 lines) | stat: -rw-r--r-- 463 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from abc import ABC, abstractmethod

__all__ = ['BasePlugin']


class BasePlugin(ABC):
    """An abstract plugin class, that all other plugins inherit from."""

    def __init__(self, config):
        ...

    @abstractmethod
    def tally_on(self) -> None:
        """Called when the tally light should be turned on."""
        ...

    @abstractmethod
    def tally_off(self) -> None:
        """Called when the tally light should be turned off."""
        ...