pyHarm.Exporter =============== .. py:module:: pyHarm.Exporter Classes ------- .. autoapisummary:: pyHarm.Exporter.Exportable pyHarm.Exporter.Exporter Functions --------- .. autoapisummary:: pyHarm.Exporter._create_results_folder Module Contents --------------- .. py:function:: _create_results_folder(base_path='.', date_time_option: bool = False) -> str .. py:class:: Exportable Bases: :py:obj:`Protocol` Base class for protocol classes. Protocol classes are defined as:: class Proto(Protocol): def meth(self) -> int: ... Such classes are primarily used with static type checkers that recognize structural subtyping (static duck-typing). For example:: class C: def meth(self) -> int: return 0 def func(x: Proto) -> int: return x.meth() func(C()) # Passes static type check See PEP 544 for details. Protocol classes decorated with @typing.runtime_checkable act as simple-minded runtime protocols that check only the presence of given attributes, ignoring their type signatures. Protocol classes can be generic, they are defined as:: class GenProto(Protocol[T]): def meth(self) -> T: ... .. py:method:: export(export_path: str, prefix: str, *args, **kwargs) -> None Exports data to a specified file path. :param data: The data to be exported. :param file_path: The path to the file where the data will be exported. :param \*\*kwargs: Additional keyword arguments that might be needed for specific exporters. .. py:class:: Exporter(export_path: str, status: bool = False, date_time_option: bool = False, **kwargs) .. py:attribute:: status :value: False .. py:method:: export(DE: dict[str:Exportable], logger: logging.Logger) -> None Exports data to a specified file path. :param data: The data to be exported. :param file_path: The path to the file where the data will be exported. :param \*\*kwargs: Additional keyword arguments that might be needed for specific exporters.