debug
¤
Debugging utilities.
Classes:
Name | Description |
---|---|
Environment | Dataclass to store environment information. |
Package | Dataclass describing a Python package. |
Variable | Dataclass describing an environment variable. |
Functions:
Name | Description |
---|---|
get_debug_info | Get debug/environment information. |
get_version | Get version of the given distribution. |
print_debug_info | Print debug/environment information. |
Environment(interpreter_name: str, interpreter_version: str, interpreter_path: str, platform: str, packages: list[Package], variables: list[Variable])
dataclass
¤
Dataclass to store environment information.
Attributes:
Name | Type | Description |
---|---|---|
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. |
interpreter_name: str
instance-attribute
¤
Python interpreter name.
interpreter_path: str
instance-attribute
¤
Path to Python executable.
interpreter_version: str
instance-attribute
¤
Python interpreter version.
packages: list[Package]
instance-attribute
¤
Installed packages.
platform: str
instance-attribute
¤
Operating System.
variables: list[Variable]
instance-attribute
¤
Environment variables.
Package(name: str, version: str)
dataclass
¤
Variable(name: str, value: str)
dataclass
¤
get_debug_info() -> Environment
¤
Get debug/environment information.
Returns:
Type | Description |
---|---|
Environment | Environment information. |
Source code in src/mkdocs_spellcheck/debug.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
get_version(dist: str = 'mkdocs-spellcheck') -> str
¤
Get version of the given distribution.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dist | str | A distribution name. | 'mkdocs-spellcheck' |
Returns:
Type | Description |
---|---|
str | A version number. |
Source code in src/mkdocs_spellcheck/debug.py
61 62 63 64 65 66 67 68 69 70 71 72 73 |
|
print_debug_info() -> None
¤
Print debug/environment information.
Source code in src/mkdocs_spellcheck/debug.py
95 96 97 98 99 100 101 102 103 104 105 |
|