pxssh is a Python module based on Pexpect for establishing SSH connections. Its class extends pexpect.spawn to specialize setting up SSH connections.
pxssh is a specialized module that provides specific methods to interact directly with SSH sessions such as login(), logout(), and prompt().
pxssh documentation
We can find official documentation on the readthedocs site for the Pexpect module at http://pexpect.readthedocs.io/en/stable/api/pxssh.html.
Also, we can get more information using the help command from a Python terminal:
import pxssh
help(pxssh)