@@ -40,15 +40,18 @@ class MultiConnection(DictInterface, Pesistence, ConnectionABC):
40
40
Parameters
41
41
----------
42
42
ssh_servers : Union[List[str], str]
43
- [description]
43
+ list od ssh srevers to connect to
44
44
local : Union[List[bool], bool], optional
45
- [description], by default False
45
+ bool or list of bools specifying if the respective connection(s),
46
+ should be local or remote by default False
46
47
quiet : bool, optional
47
- [description], by default False
48
+ bool or a list of bools specifing if login messages should be printed,
49
+ on individula connections initialization by default False
48
50
thread_safe : Union[List[bool], bool], optional
49
- [description], by default False
51
+ bool or a list of bools specifying if respective connection(s) should,
52
+ be made thead safe or not by default False
50
53
share_connection : Union[List[int], int], optional
51
- [description] , by default 1
54
+ Not implemented , by default 1
52
55
"""
53
56
54
57
_builtins : "_BUILTINS_MULTI"
@@ -61,9 +64,9 @@ class MultiConnection(DictInterface, Pesistence, ConnectionABC):
61
64
def __init__ (self , ssh_servers : Union [List [str ], str ],
62
65
local : Union [List [bool ], bool ] = False , quiet : bool = False ,
63
66
thread_safe : Union [List [bool ], bool ] = False ) -> None :
64
-
65
- # TODO implement share connection
66
67
# share_connection: Union[List[int], int] = 1) -> None:
68
+
69
+ # TODO finish implementation
67
70
share_connection : Union [List [int ], int ] = 1
68
71
69
72
# TODO somehow adjust number of workers if connection are deleted or
@@ -98,39 +101,39 @@ def __init__(self, ssh_servers: Union[List[str], str],
98
101
def builtins (self ) -> "_BUILTINS_MULTI" :
99
102
"""Inner class providing access to substitutions for python builtins.
100
103
101
- :type: .remote .Builtins
104
+ :type: .abc .Builtins
102
105
"""
103
106
return self ._builtins
104
107
105
108
@property
106
109
def os (self ) -> "_OS_MULTI" :
107
110
"""Inner class providing access to substitutions for python os module.
108
111
109
- :type: .remote .Os
112
+ :type: .abc .Os
110
113
"""
111
114
return self ._os
112
115
113
116
@property
114
117
def pathlib (self ) -> "_PATHLIB_MULTI" :
115
118
"""Inner class providing access to substitutions for pathlib module.
116
119
117
- :type: .remote .Pathlib
120
+ :type: .abc .Pathlib
118
121
"""
119
122
return self ._pathlib
120
123
121
124
@property
122
125
def shutil (self ) -> "_SHUTIL_MULTI" :
123
126
"""Inner class providing access to substitutions for shutil module.
124
127
125
- :type: .remote .Shutil
128
+ :type: .abc .Shutil
126
129
"""
127
130
return self ._shutil
128
131
129
132
@property
130
133
def subprocess (self ) -> "_SUBPROCESS_MULTI" :
131
134
"""Inner class providing access to substitutions for subprocess module.
132
135
133
- :type: .remote .Subprocess
136
+ :type: .abc .Subprocess
134
137
"""
135
138
return self ._subprocess
136
139
0 commit comments