massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / psutil / psutil / _pswindows.pyi
1 import enum
2 from typing import Any, NamedTuple
3
4 from ._common import (
5     ENCODING as ENCODING,
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,
12     debug as debug,
13     isfile_strict as isfile_strict,
14     memoize as memoize,
15     parse_environ_block as parse_environ_block,
16     usage_percent as usage_percent,
17 )
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,
25 )
26
27 msg: str
28 __extra__all__: Any
29 CONN_DELETE_TCB: str
30 ERROR_PARTIAL_COPY: int
31 PYPY: Any
32 AF_LINK: int
33 AddressFamily: Any
34 TCP_STATUSES: Any
35
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
43
44 IOPRIO_VERYLOW: int
45 IOPRIO_LOW: int
46 IOPRIO_NORMAL: int
47 IOPRIO_HIGH: int
48
49 class IOPriority(enum.IntEnum):
50     IOPRIO_VERYLOW: int
51     IOPRIO_LOW: int
52     IOPRIO_NORMAL: int
53     IOPRIO_HIGH: int
54
55 pinfo_map: Any
56
57 class scputimes(NamedTuple):
58     user: Any
59     system: Any
60     idle: Any
61     interrupt: Any
62     dpc: Any
63
64 class svmem(NamedTuple):
65     total: Any
66     available: Any
67     percent: Any
68     used: Any
69     free: Any
70
71 class pmem(NamedTuple):
72     rss: Any
73     vms: Any
74     num_page_faults: Any
75     peak_wset: Any
76     wset: Any
77     peak_paged_pool: Any
78     paged_pool: Any
79     peak_nonpaged_pool: Any
80     nonpaged_pool: Any
81     pagefile: Any
82     peak_pagefile: Any
83     private: Any
84
85 pfullmem: Any
86
87 class pmmap_grouped(NamedTuple):
88     path: Any
89     rss: Any
90
91 pmmap_ext: Any
92
93 class pio(NamedTuple):
94     read_count: Any
95     write_count: Any
96     read_bytes: Any
97     write_bytes: Any
98     other_count: Any
99     other_bytes: Any
100
101 def convert_dos_path(s): ...
102 def py2_strencode(s): ...
103 def getpagesize(): ...
104 def virtual_memory(): ...
105 def swap_memory(): ...
106
107 disk_io_counters: Any
108
109 def disk_usage(path): ...
110 def disk_partitions(all): ...
111 def cpu_times(): ...
112 def per_cpu_times(): ...
113 def cpu_count_logical(): ...
114 def cpu_count_physical(): ...
115 def cpu_stats(): ...
116 def cpu_freq(): ...
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(): ...
123 def boot_time(): ...
124 def users(): ...
125 def win_service_iter() -> None: ...
126 def win_service_get(name): ...
127
128 class WindowsService:
129     def __init__(self, name, display_name) -> None: ...
130     def __eq__(self, other): ...
131     def __ne__(self, other): ...
132     def name(self): ...
133     def display_name(self): ...
134     def binpath(self): ...
135     def username(self): ...
136     def start_type(self): ...
137     def pid(self): ...
138     def status(self): ...
139     def description(self): ...
140     def as_dict(self): ...
141
142 pids: Any
143 pid_exists: Any
144 ppid_map: Any
145
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): ...
150
151 class Process:
152     pid: Any
153     def __init__(self, pid) -> None: ...
154     def oneshot_enter(self) -> None: ...
155     def oneshot_exit(self) -> None: ...
156     def name(self): ...
157     def exe(self): ...
158     def cmdline(self): ...
159     def environ(self): ...
160     def ppid(self): ...
161     def memory_info(self): ...
162     def memory_full_info(self): ...
163     def memory_maps(self) -> None: ...
164     def kill(self): ...
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: ...
174     def cwd(self): ...
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): ...