debug ¶
Debugging utilities.
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.
Package dataclass
¶
Variable dataclass
¶
get_debug_info ¶
get_debug_info() -> Environment
Get debug/environment information.
Returns:
-
Environment
–Environment information.
Source code in src/metaso_sdk/debug.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
get_version ¶
Get version of the given distribution.
Parameters:
-
dist
(str
, default:'metaso-sdk'
) –A distribution name.
Returns:
-
str
–A version number.
Source code in src/metaso_sdk/debug.py
61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
print_debug_info ¶
print_debug_info() -> None
Print debug/environment information.
Source code in src/metaso_sdk/debug.py
95 96 97 98 99 100 101 102 103 104 105 |
|