Skip to content

Instantly share code, notes, and snippets.

@maliciousgroup
Created April 7, 2021 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maliciousgroup/e5dfecdf06b9f601f617d3c61c884862 to your computer and use it in GitHub Desktop.
Save maliciousgroup/e5dfecdf06b9f601f617d3c61c884862 to your computer and use it in GitHub Desktop.
from src.core.registry.ModuleRegistry import ModuleRegistry
from src.core.base.abstract.AbstractModule import AbstractModule
class BaseModule(AbstractModule):
def __init_subclass__(cls, **kwargs):
try:
assert isinstance(cls, type(BaseModule))
ModuleRegistry().register_module(cls)
super().__init_subclass__(**kwargs)
except AssertionError:
pass
async def module_shell(self) -> None:
pass
async def execute(self) -> None:
pass
async def main(self) -> None:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment