Source code for bio_embeddings.utilities.filemanagers.FileManagerInterface

import abc


[docs]class FileManagerInterface(metaclass=abc.ABCMeta):
[docs] @abc.abstractmethod def __init__(self): pass
[docs] @abc.abstractmethod def create_prefix(self, prefix) -> str: raise NotImplementedError
[docs] @abc.abstractmethod def create_stage(self, prefix, stage) -> str: raise NotImplementedError
[docs] @abc.abstractmethod def create_file(self, prefix, stage, file_name, extension=None) -> str: raise NotImplementedError
[docs] @abc.abstractmethod def create_directory(self, prefix, stage, directory_name) -> str: raise NotImplementedError
[docs] @abc.abstractmethod def get_file(self, prefix, stage, file_name, extension=None) -> str: raise NotImplementedError
[docs] @abc.abstractmethod def exists(self, prefix, stage=None, file_name=None, extension=None) -> bool: raise NotImplementedError