debug
Debugging utilities.
Environment
dataclass
¤
Dataclass to store environment information.
Source code in src/pytkdocs/debug.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |
interpreter_name
instance-attribute
¤
Python interpreter name.
interpreter_path
instance-attribute
¤
Path to Python executable.
interpreter_version
instance-attribute
¤
Python interpreter version.
packages
instance-attribute
¤
Installed packages.
platform
instance-attribute
¤
Operating System.
variables
instance-attribute
¤
Environment variables.
Package
dataclass
¤
Dataclass describing a Python package.
Source code in src/pytkdocs/debug.py
22 23 24 25 26 27 28 29 | |
Variable
dataclass
¤
Dataclass describing an environment variable.
Source code in src/pytkdocs/debug.py
12 13 14 15 16 17 18 19 | |
get_debug_info()
¤
Get debug/environment information.
Returns:
| Type | Description |
|---|---|
Environment
|
Environment information. |
Source code in src/pytkdocs/debug.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
get_version(dist='pytkdocs')
¤
Get version of the given distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dist
|
str
|
A distribution name. |
'pytkdocs'
|
Returns:
| Type | Description |
|---|---|
str
|
A version number. |
Source code in src/pytkdocs/debug.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
print_debug_info()
¤
Print debug/environment information.
Source code in src/pytkdocs/debug.py
95 96 97 98 99 100 101 102 103 104 105 | |