icolos.utils.general package#
Submodules#
icolos.utils.general.arparse_bool_extension module#
icolos.utils.general.citation_generator module#
- class icolos.utils.general.citation_generator.ConsoleColours[source]#
Bases:
object
- BLINKING = '\x1b[5m'#
- BLUE = '\x1b[94m'#
- BOLD = '\x1b[1m'#
- CYAN = '\x1b[96m'#
- ENDC = '\x1b[0m'#
- FAIL = '\x1b[91m'#
- GREEN = '\x1b[92m'#
- HEADER = '\x1b[95m'#
- ORANGE = '\x1b[0;33m'#
- RED = '\x1b[93m'#
- UNDERLINE = '\x1b[4m'#
icolos.utils.general.convenience_functions module#
icolos.utils.general.files_paths module#
- icolos.utils.general.files_paths.attach_root_path(path, n=4)[source]#
Function to attach the root path of the module for a given “path”.
- icolos.utils.general.files_paths.check_file_availability(path: str, interval_sec: int = 1, maximum_sec: int = 10) str [source]#
- icolos.utils.general.files_paths.gen_tmp_file(suffix: Optional[str] = None, prefix: Optional[str] = None, dir: Optional[str] = None, text: bool = True) Tuple[str, str] [source]#
Function wraps tempfile.mkstemp(), but closes the connection and returns the file name instead of the handler.
icolos.utils.general.icolos_exceptions module#
icolos.utils.general.molecules module#
icolos.utils.general.parallelization module#
- class icolos.utils.general.parallelization.Parallelizer(*, func: Callable)[source]#
Bases:
BaseModel
- func: Callable#
- class icolos.utils.general.parallelization.Subtask(*, status: ParallelizationEnum = ParallelizationEnum.STATUS_READY, times_tried: int = 0, data: Any = None, job_id: str = None)[source]#
Bases:
BaseModel
- data: Any#
- job_id: str#
- status: ParallelizationEnum#
- times_tried: int#