2 from typing import Any, NamedTuple
6 ENCODING_ERRS as ENCODING_ERRS,
7 AccessDenied as AccessDenied,
8 NoSuchProcess as NoSuchProcess,
9 TimeoutExpired as TimeoutExpired,
10 conn_tmap as conn_tmap,
11 conn_to_ntuple as conn_to_ntuple,
13 isfile_strict as isfile_strict,
15 parse_environ_block as parse_environ_block,
16 usage_percent as usage_percent,
18 from ._psutil_windows import (
19 ABOVE_NORMAL_PRIORITY_CLASS as ABOVE_NORMAL_PRIORITY_CLASS,
20 BELOW_NORMAL_PRIORITY_CLASS as BELOW_NORMAL_PRIORITY_CLASS,
21 HIGH_PRIORITY_CLASS as HIGH_PRIORITY_CLASS,
22 IDLE_PRIORITY_CLASS as IDLE_PRIORITY_CLASS,
23 NORMAL_PRIORITY_CLASS as NORMAL_PRIORITY_CLASS,
24 REALTIME_PRIORITY_CLASS as REALTIME_PRIORITY_CLASS,
30 ERROR_PARTIAL_COPY: int
36 class Priority(enum.IntEnum):
37 ABOVE_NORMAL_PRIORITY_CLASS: Any
38 BELOW_NORMAL_PRIORITY_CLASS: Any
39 HIGH_PRIORITY_CLASS: Any
40 IDLE_PRIORITY_CLASS: Any
41 NORMAL_PRIORITY_CLASS: Any
42 REALTIME_PRIORITY_CLASS: Any
49 class IOPriority(enum.IntEnum):
57 class scputimes(NamedTuple):
64 class svmem(NamedTuple):
71 class pmem(NamedTuple):
79 peak_nonpaged_pool: Any
87 class pmmap_grouped(NamedTuple):
93 class pio(NamedTuple):
101 def convert_dos_path(s): ...
102 def py2_strencode(s): ...
103 def getpagesize(): ...
104 def virtual_memory(): ...
105 def swap_memory(): ...
107 disk_io_counters: Any
109 def disk_usage(path): ...
110 def disk_partitions(all): ...
112 def per_cpu_times(): ...
113 def cpu_count_logical(): ...
114 def cpu_count_physical(): ...
117 def getloadavg(): ...
118 def net_connections(kind, _pid: int = ...): ...
119 def net_if_stats(): ...
120 def net_io_counters(): ...
121 def net_if_addrs(): ...
122 def sensors_battery(): ...
125 def win_service_iter() -> None: ...
126 def win_service_get(name): ...
128 class WindowsService:
129 def __init__(self, name, display_name) -> None: ...
130 def __eq__(self, other): ...
131 def __ne__(self, other): ...
133 def display_name(self): ...
134 def binpath(self): ...
135 def username(self): ...
136 def start_type(self): ...
138 def status(self): ...
139 def description(self): ...
140 def as_dict(self): ...
146 def is_permission_err(exc): ...
147 def convert_oserror(exc, pid: Any | None = ..., name: Any | None = ...): ...
148 def wrap_exceptions(fun): ...
149 def retry_error_partial_copy(fun): ...
153 def __init__(self, pid) -> None: ...
154 def oneshot_enter(self) -> None: ...
155 def oneshot_exit(self) -> None: ...
158 def cmdline(self): ...
159 def environ(self): ...
161 def memory_info(self): ...
162 def memory_full_info(self): ...
163 def memory_maps(self) -> None: ...
165 def send_signal(self, sig) -> None: ...
166 def wait(self, timeout: Any | None = ...): ...
167 def username(self): ...
168 def create_time(self): ...
169 def num_threads(self): ...
170 def threads(self): ...
171 def cpu_times(self): ...
172 def suspend(self) -> None: ...
173 def resume(self) -> None: ...
175 def open_files(self): ...
176 def connections(self, kind: str = ...): ...
177 def nice_get(self): ...
178 def nice_set(self, value): ...
179 def ionice_get(self): ...
180 def ionice_set(self, ioclass, value) -> None: ...
181 def io_counters(self): ...
182 def status(self): ...
183 def cpu_affinity_get(self): ...
184 def cpu_affinity_set(self, value): ...
185 def num_handles(self): ...
186 def num_ctx_switches(self): ...