Skip to main content

An SSH automation library using expect.

Project description

RedExpect

PyPI License: GPL v2

Test Status Documentation Status Coverage 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!

Installing

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://git@bitbucket.org/Red_M/RedExpect.git

Documentation

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.

TO DO

  • Update unit tests to match RedSSH's tests
  • More examples

Project details


Download files

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

Source Distribution

redexpect-2.0.4.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file redexpect-2.0.4.tar.gz.

File metadata

  • Download URL: redexpect-2.0.4.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for redexpect-2.0.4.tar.gz
Algorithm Hash digest
SHA256 c9490e9b10317adb1d95bb43dd7b8544d382e7d6d2230ba6c8e98def102416be
MD5 1821eabe1c72ddd913fef72037b44440
BLAKE2b-256 6ecce8cf991a829b4872b965fbd4d5f67f5d2349d7920d3ec80860edbba20211

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page