pyabsa.utils.check_utils

Submodules

Package Contents

Functions

time_out(max_timeout)

Timeout decorator, parameter in seconds.

fprint(*objects[, sep, end, file, flush])

Custom print function that adds a timestamp and the pyabsa version before the printed message.

query_local_datasets_version(**kwargs)

query_remote_datasets_version(**kwargs)

check_datasets_version(**kwargs)

Check if the local dataset version is the same as the remote dataset version.

time_out(max_timeout)

Timeout decorator, parameter in seconds.

fprint(*objects[, sep, end, file, flush])

Custom print function that adds a timestamp and the pyabsa version before the printed message.

check_package_version(min_version[, max_version])

validate_pyabsa_version()

query_release_notes(**kwargs)

check_pyabsa_update()

pyabsa.utils.check_utils.time_out(max_timeout)[source]

Timeout decorator, parameter in seconds.

pyabsa.utils.check_utils.fprint(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)[source]

Custom print function that adds a timestamp and the pyabsa version before the printed message.

Args:

*objects: Any number of objects to be printed sep (str, optional): Separator between objects. Defaults to “ “. end (str, optional): Ending character after all objects are printed. Defaults to “

“.

file (io.TextIOWrapper, optional): Text file to write printed output to. Defaults to sys.stdout. flush (bool, optional): Whether to flush output buffer after printing. Defaults to False.

pyabsa.utils.check_utils.query_local_datasets_version(**kwargs)[source]
pyabsa.utils.check_utils.query_remote_datasets_version(**kwargs)[source]
pyabsa.utils.check_utils.check_datasets_version(**kwargs)[source]

Check if the local dataset version is the same as the remote dataset version.

pyabsa.utils.check_utils.time_out(max_timeout)[source]

Timeout decorator, parameter in seconds.

pyabsa.utils.check_utils.fprint(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)[source]

Custom print function that adds a timestamp and the pyabsa version before the printed message.

Args:

*objects: Any number of objects to be printed sep (str, optional): Separator between objects. Defaults to “ “. end (str, optional): Ending character after all objects are printed. Defaults to “

“.

file (io.TextIOWrapper, optional): Text file to write printed output to. Defaults to sys.stdout. flush (bool, optional): Whether to flush output buffer after printing. Defaults to False.

pyabsa.utils.check_utils.check_package_version(min_version, max_version=None)[source]
pyabsa.utils.check_utils.validate_pyabsa_version()[source]
pyabsa.utils.check_utils.query_release_notes(**kwargs)[source]
pyabsa.utils.check_utils.check_pyabsa_update()[source]