Skip to content

Plugin System #135

@sedrubal

Description

@sedrubal

I think we need something like a plugin system to extend the KassenTerminal with custom plugins (e.g. MagnaCharta Plugin)

Maybe it can work like this:

>>> # in config you can add:
>>> PLUGINS_CFG = [          
...   "plugin1",
...   "plugin2",
...   "sys",  # example
...]
>>> # somewhere in code:
>>> PLUGINS = []
>>> for ps in PLUGINS_CFG:
...     PLUGINS.append(__import__(ps))
>>> # to use them:
>>> for p in PLUGINS:
...    # example usage:
...    print(p.__name__)             
...
plugin1
plugin2
sys
>>>

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions