Skip to content

pkg

thutil.pkg

Functions:

create_logger(logger_name: str = None, log_file: str = None, level: str = 'INFO', level_logfile: str = None, format_: str = 'info') -> logging.Logger

Create and configure a logger with console and optional file handlers.

check_package(package_name: str, git_repo: str = None, auto_install: bool = False, extra_commands: list[str] = None) -> None

Check if the required packages are installed

get_func_args(func)

Get the arguments of a function

dependency_info(modules=['numpy', 'polars', 'thutil', 'ase']) -> str

Get the dependency information