debug ¤
Debugging utilities.
Classes:
-
Environment–Dataclass to store environment information.
-
Package–Dataclass describing a Python package.
-
Variable–Dataclass describing an environment variable.
Functions:
-
get_debug_info–Get debug/environment information.
-
get_version–Get version of the given distribution.
-
print_debug_info–Print debug/environment information.
Environment dataclass ¤
Environment(
interpreter_name: str,
interpreter_version: str,
interpreter_path: str,
platform: str,
packages: list[Package],
variables: list[Variable],
)
Dataclass to store environment information.
Attributes:
-
interpreter_name(str) –Python interpreter name.
-
interpreter_path(str) –Path to Python executable.
-
interpreter_version(str) –Python interpreter version.
-
packages(list[Package]) –Installed packages.
-
platform(str) –Operating System.
-
variables(list[Variable]) –Environment variables.
Package dataclass ¤
Variable dataclass ¤
get_debug_info ¤
get_debug_info() -> Environment