Spaces:
Running on Zero
Running on Zero
File size: 412 Bytes
9d7cf7f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Abstract class for parsers."""
from abc import ABC, abstractmethod
from ..info.asset import Asset
class AbstractParser(ABC):
"""Abstract class for parsers."""
@classmethod
@abstractmethod
def load(cls, filepath: str, **kwargs) -> Asset:
pass
@classmethod
def export(cls, asset: Asset, filepath: str, **kwargs):
raise NotImplementedError("do not implement") |