Skip to main content

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

Metadata

Release files for redexpect 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redexpect 2.0.4
File Size Uploaded Provenance
redexpect-2.0.4.tar.gz 17.3 kB Without provenance Details

Release files / redexpect-2.0.4.tar.gz

Download URL redexpect-2.0.4.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c9490e9b10317adb1d95bb43dd7b8544d382e7d6d2230ba6c8e98def102416be
BLAKE2b-256 checksum
How to use checksums
6ecce8cf991a829b4872b965fbd4d5f67f5d2349d7920d3ec80860edbba20211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for redexpect 2.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page