Source code for benchmarkstt.input
"""
Responsible for dealing with input formats and converting them to benchmarkstt native schema
"""
from abc import ABC, abstractmethod
from benchmarkstt.factory import CoreFactory
[docs]class Input(ABC):
@abstractmethod
def __iter__(self):
"""
Each input class should be accessible as iterator, each iteration should
return a Item, so the input format is essentially usable and can be easily
converted to a :py:class:`benchmarkstt.schema.Schema`
:meta public:
"""
raise NotImplementedError()
factory = CoreFactory(Input, False)