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, auto_install: bool = False, git_repo: str = None, conda_channel: str = 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