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,
platform: str,
packages: list[Package],
variables: list[Variable],
)
Package dataclass ¤
Variable dataclass ¤
get_debug_info ¤
get_debug_info() -> Environment
Get debug/environment information.
Returns:
-
Environment–Environment information.
Source code in src/pdm_multirun/debug.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
get_version ¤
Get version of the given distribution.
Parameters:
-
dist(str, default:'pdm-multirun') –A distribution name.
Returns:
-
str–A version number.
Source code in src/pdm_multirun/debug.py
59 60 61 62 63 64 65 66 67 68 69 70 71 | |
print_debug_info ¤
print_debug_info() -> None
Print debug/environment information.
Source code in src/pdm_multirun/debug.py
92 93 94 95 96 97 98 99 100 101 102 | |