Skip to content

Commit d05f84d

Browse files
committed
update readme
1 parent 980edac commit d05f84d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,24 @@ The last possibility is to instantiate each module by itself
229229

230230
.. code-block:: python
231231
232-
233232
>>> from ssh_utilities import Connection, Os, Subprocess
234233
>>> conn = Connection.get(<server_name>, <local>, <quiet>, <thread_safe>)
235234
>>> remote_os = Os(conn)
236235
>>> remote_subprocess = Subprocess(conn)
237236
237+
ssh_utilities now contains ``MultiConnection`` container which cleverly
238+
manages multiple individual connections for you. You can carry out same
239+
command across multiple servers asynchronously and many more! Detailed
240+
information is in the docs.
241+
242+
.. code-block:: python
243+
244+
>>> from ssh_utilities import MultiConnection
245+
>>> with MultiConnection(<server_names_list>, local=False,
246+
thread_safe=True) as mc:
247+
>>> mc.<some_attribute>
248+
>>> ...
249+
238250
239251
Contributing
240252
------------

0 commit comments

Comments
 (0)