paidiverpy.utils.locals#
This module have functions related to package versions.
Functions#
|
Returns system information as a dict. |
|
Get the version of a CLI tool. |
|
Get the version of a package installed via pip. |
|
Get the version of a module. |
|
Print the versions of paidiverpy and its dependencies. |
Module Contents#
- paidiverpy.utils.locals.get_sys_info() list[tuple[str, str]][source]#
Returns system information as a dict.
- paidiverpy.utils.locals.pip_version(pip_name: str) str[source]#
Get the version of a package installed via pip.
- paidiverpy.utils.locals.show_versions(file: TextIO = sys.stdout, conda: bool = False) None[source]#
Print the versions of paidiverpy and its dependencies.
- Parameters:
file (TextIO, optional) – The file to write the versions to. Defaults to sys.stdout.
conda (bool, optional) – Whether to format the output for conda. Defaults to False.