0
0
mirror of https://gitflic.ru/project/maks1ms/ocab.git synced 2025-04-04 08:33:47 +03:00
ocab/src/core/modules_system/loaders/base.py
2024-07-09 23:57:48 +03:00

23 lines
386 B
Python

import types
from dataclasses import dataclass
from dataclasses_json import dataclass_json
@dataclass_json
@dataclass
class ModuleInfo:
id: str
name: str
description: str
version: str
author: str
class AbstractLoader:
def info(self) -> ModuleInfo:
raise NotImplementedError
def load(self) -> types.ModuleType:
raise NotImplementedError