Skip to content

Commit 29c14dc

Browse files
committed
added parallel ability to connection, updated docs
1 parent 6ad4b39 commit 29c14dc

File tree

13 files changed

+577
-78
lines changed

13 files changed

+577
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
**/__pycache__/
33
**/.vscode/
44
**/.mypy_cache/
5+
**/uml_images/**
56
build/
67
dist/
78
ssh_utilities.egg-info/

README.rst

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ and command execution. The API vaguely follows python libraries: `builtins`_,
6161

6262

6363
This is not intended to be a full fledged python ssh client. Instead it focuses
64-
on smaller set of features which it trie to make as user-friendly as possible.
64+
on smaller set of features which it tries to make as user-friendly and familiar
65+
as possible.
6566

6667
This module should be ideally platform agnostic, but only connections from
6768
Windows and Linux(Debian, Ubuntu) to Linux(Debian, Ubuntu) have been tested
68-
so any other combinations are officially unsupported but should work.
69+
so any other combinations are officially unsupported but should still work.
6970

7071
Design goals and features
7172
-------------------------
@@ -86,12 +87,12 @@ List of inner classes and implemented methods
8687
---------------------------------------------
8788

8889
ssh_utilities have three main connection classes:
89-
- ``SSHConnection``
90-
- ``LocalConnection``
91-
- ``MultiConnection``
90+
- ``SSHConnection``
91+
- ``LocalConnection``
92+
- ``MultiConnection``
9293

9394
Their inner classes with their methods are listed in the table below which
94-
summarizes the API. based on table you can do for instance:
95+
summarizes the API. Based on table you can do for instance:
9596

9697
.. code-block:: python
9798
@@ -186,8 +187,7 @@ for more detailed usage examples please refer to
186187
`documnetation <https://ssh-utilities.readthedocs.io/en/latest/>`_
187188

188189
``Connection`` factory supports dict-like indexing by values that are in
189-
your **~/.ssh/config** file. It can be made thread safe by passing
190-
``thread_safe=True`` argument to the constructor
190+
your **~/.ssh/config** file.
191191

192192
.. code-block:: python
193193
@@ -196,7 +196,8 @@ your **~/.ssh/config** file. It can be made thread safe by passing
196196
>>> <ssh_utilities.ssh_utils.SSHConnection at 0x7efedff4fb38>
197197
198198
There is also a specific get method which is safer and with better typing
199-
support than dict-like indexing
199+
support than dict-like indexing. Connection can be made thread safe by passing
200+
``thread_safe=True`` argument to the constructor
200201

201202
.. code-block:: python
202203

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sphinx-rtd-theme>=0.5.0
1+
sphinx-rtd-theme>=0.5.0
2+
sphinx-pyreverse>=0.0.13

docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"sphinx_rtd_theme",
3737
'sphinx.ext.autodoc',
3838
"sphinx.ext.napoleon",
39+
'sphinx.ext.graphviz',
40+
'sphinx.ext.inheritance_diagram',
41+
'sphinx_pyreverse'
3942
]
4043

4144
autodoc_default_options = {
@@ -54,6 +57,9 @@
5457
# This pattern also affects html_static_path and html_extra_path.
5558
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
5659

60+
# -- GraphViz configuration ----------------------------------
61+
graphviz_output_format = 'png'
62+
5763
# -- Options for HTML output -------------------------------------------------
5864

5965
# The theme to use for HTML and HTML Help pages. See the documentation for

docs/source/hierarchy.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
ssh-utilities class inheritance diagrams
2+
========================================
3+
4+
``Connection`` factory
5+
6+
.. inheritance-diagram:: ssh_utilities.Connection
7+
:parts: 1
8+
9+
``LocalConnection`` class
10+
11+
.. inheritance-diagram:: ssh_utilities.LocalConnection
12+
:parts: 1
13+
14+
``SSHConnection`` class
15+
16+
.. inheritance-diagram:: ssh_utilities.SSHConnection
17+
:parts: 1
18+
19+
``MultiConnection`` class
20+
21+
.. inheritance-diagram:: ssh_utilities.MultiConnection
22+
:parts: 1
23+
24+
ssh-utilities UML classes graph
25+
===============================
26+
27+
.. uml:: ssh_utilities
28+
:classes:

docs/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Projects home directory is on github:
2222
usage_path
2323
usage_multi
2424
migration
25+
hierarchy
2526

2627
Indices and tables
2728
==================

docs/source/usage_conn.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Connection usage
22
================
33

4+
local connection module graph
5+
-----------------------------
6+
7+
.. uml:: ssh_utilities.local
8+
:classes:
9+
10+
remote connection module graph
11+
------------------------------
12+
13+
.. uml:: ssh_utilities.remote
14+
:classes:
15+
416
Instantiating connection
517
------------------------
618

0 commit comments

Comments
 (0)