Skip to content

Instantly share code, notes, and snippets.

@maliciousgroup
Created April 7, 2021 23:13
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/dede1e3cfa39f81f67cad4ad02c39562 to your computer and use it in GitHub Desktop.
Save maliciousgroup/dede1e3cfa39f81f67cad4ad02c39562 to your computer and use it in GitHub Desktop.
import abc
class AbstractModule(metaclass=abc.ABCMeta):
async def module_shell(self) -> None:
"""
Abstract Coroutine that will spawn a sub-shell for module
:return:
"""
async def execute(self) -> None:
"""
Abstract Coroutine that will execute the module logic
:return:
"""
async def main(self) -> None:
"""
Abstract Coroutine that bootstraps the module execution
:return:
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment