1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
"""
This type stub file was generated by pyright.
"""
from supervisor.compat import httplib, xmlrpclib
from supervisor.medusa.xmlrpc_handler import xmlrpc_handler
class Faults:
UNKNOWN_METHOD = ...
INCORRECT_PARAMETERS = ...
BAD_ARGUMENTS = ...
SIGNATURE_UNSUPPORTED = ...
SHUTDOWN_STATE = ...
BAD_NAME = ...
BAD_SIGNAL = ...
NO_FILE = ...
NOT_EXECUTABLE = ...
FAILED = ...
ABNORMAL_TERMINATION = ...
SPAWN_ERROR = ...
ALREADY_STARTED = ...
NOT_RUNNING = ...
SUCCESS = ...
ALREADY_ADDED = ...
STILL_RUNNING = ...
CANT_REREAD = ...
def getFaultDescription(code): # -> str:
...
class RPCError(Exception):
def __init__(self, code, extra=...) -> None:
...
def __str__(self) -> str:
...
class DeferredXMLRPCResponse:
""" A medusa producer that implements a deferred callback; requires
a subclass of asynchat.async_chat that handles NOT_DONE_YET sentinel """
CONNECTION = ...
def __init__(self, request, callback) -> None:
...
def more(self): # -> Type[NOT_DONE_YET] | Literal[''] | None:
...
def getresponse(self, body): # -> None:
...
def xmlrpc_marshal(value):
...
class SystemNamespaceRPCInterface:
def __init__(self, namespaces) -> None:
...
def listMethods(self): # -> list[Unknown]:
""" Return an array listing the available method names
@return array result An array of method names available (strings).
"""
...
def methodHelp(self, name):
""" Return a string showing the method's documentation
@param string name The name of the method.
@return string result The documentation for the method name.
"""
...
def methodSignature(self, name): # -> List[Unknown]:
""" Return an array describing the method signature in the
form [rtype, ptype, ptype...] where rtype is the return data type
of the method, and ptypes are the parameter data types that the
method accepts in method argument order.
@param string name The name of the method.
@return array result The result.
"""
...
def multicall(self, calls): # -> (remaining_calls: Unknown = remaining_calls, callbacks: Unknown = callbacks, results: Unknown = results) -> (Type[NOT_DONE_YET] | Unknown) | Type[NOT_DONE_YET] | list[Unknown]:
"""Process an array of calls, and return an array of
results. Calls should be structs of the form {'methodName':
string, 'params': array}. Each result will either be a
single-item array containing the result value, or a struct of
the form {'faultCode': int, 'faultString': string}. This is
useful when you need to make lots of small calls without lots
of round trips.
@param array calls An array of call requests
@return array result An array of results
"""
...
class AttrDict(dict):
def __getattr__(self, name): # -> None:
...
class RootRPCInterface:
def __init__(self, subinterfaces) -> None:
...
def capped_int(value): # -> int:
...
def make_datetime(text): # -> datetime:
...
class supervisor_xmlrpc_handler(xmlrpc_handler):
path = ...
IDENT = ...
unmarshallers = ...
def __init__(self, supervisord, subinterfaces) -> None:
...
def loads(self, data): # -> tuple[tuple[Any, ...] | None, Any | None]:
...
def match(self, request):
...
def continue_request(self, data, request): # -> None:
...
def call(self, method, params): # -> Any:
...
def traverse(ob, method, params): # -> Any:
...
class SupervisorTransport(xmlrpclib.Transport):
"""
Provides a Transport for xmlrpclib that uses
httplib.HTTPConnection in order to support persistent
connections. Also support basic auth and UNIX domain socket
servers.
"""
connection = ...
def __init__(self, username=..., password=..., serverurl=...) -> None:
...
def close(self): # -> None:
...
def request(self, host, handler, request_body, verbose=...):
...
class UnixStreamHTTPConnection(httplib.HTTPConnection):
def connect(self): # -> None:
...
def gettags(comment): # -> list[Unknown]:
""" Parse documentation strings into JavaDoc-like tokens """
...
|