Skip to main content

An SSH automation library using expect.

Project description


Documentation Status

RedExpect makes automating remote machines over SSH very easy to do and is very fast in doing exactly what you ask of it. Based on ssh2-python (which provides libssh2 bindings for python) and made into an easy to use SSH library via RedSSH. If you're familiar with using expect but would like the easy of use and accessibilty of python, then look no further!


RedExpect can be installed via pip with pip install redexpect or the latest commit, which may not be the most stable, from git with pip install git://


99% of questions around how to do something should be answered in the documentation. If something is not there please raise an issue so it can be added to the documentation. Now with autodocs!

Why not use [other software]?

I've found other automation libraries or solutions lacking, such as:

  • Compatibility with remote servers (odd servers causes the library to be unable to connect).
  • Feature set is limited (eg, no tunneling).
  • Focuses on only connecting to Linux servers.
  • Requires an agent to be installed, a state file to be present or a master "server".
  • Poor performance.


  • Unit tests
  • More examples

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for redexpect, version 2.0.3.post3
Filename, size File type Python version Upload date Hashes
Filename, size redexpect-2.0.3.post3.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View
Filename, size redexpect-2.0.3.post3-py2.py3-none-any.whl (15.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page