<filename>mods/tests/mocks/BirModule/back/module.py
from libvis.modules.Base import BaseModule
from .bottles import beer

class Bir(BaseModule):
    name="BirModule"
    def __init__(self, count):
        super().__init__()
        self.text = beer(count)

    def vis_set(self, key, value):
        super().vis_set(key, value) # same as self[key] = value
        if key=='count':
            try:
                rhymes = beer(int(value))
                self.text = rhymes
            except:
                pass

<filename>mods/tests/mocks/BirModule/back/module.py
from libvis.modules.Base import BaseModule
from .bottles import beer

class Bir(BaseModule):
    name="BirModule"
    def __init__(self, count):
        super().__init__()
        self.text = beer(count)

    def vis_set(self, key, value):
        super().vis_set(key, value) # same as self[key] = value
        if key=='count':
            try:
                rhymes = beer(int(value))
                self.text = rhymes
            except:
                pass

# same as self[key] = value