paramiko-expect
An expect-like extension for the Paramiko SSH library
Decision gist · record as of 2026-08-14
Yes, but with caution. The package is straightforward and has no known vulnerabilities, and low install friction makes it easy to try. However, it is abandoned—the repository is archived and the last release was in 2022. Use it for one-off scripts or internal automation where you control the environment, but avoid it for production systems or long-term maintenance unless you are prepared to fork and maintain it yourself. For new projects requiring robust SSH automation, consider whether a maintained alternative better suits your needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction; depends only on paramiko.
- However, the package is abandoned (last release 2022-11-19, repository archived), so no active maintenance or security updates are forthcoming.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.
last release 2022-11-19 (1364 days) · last repo commit 2024-11-28 · 207 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 584,282 downloads/mo, #5,889 on PyPI
Alternatives
Verify before relying
pip install paramiko-expect
from paramiko_expect import SSHClientInteraction
import paramiko
client = paramiko.SSHClient()
client.connect(hostname='example.com', username='user', password='pass')
interact = SSHClientInteraction(client, timeout=10)
interact.expect('$')
interact.send('ls -l')
interact.expect('$')
output = interact.current_output_clean- Whether the package works reliably with modern Paramiko versions and current Python releases beyond 3.9.
- Whether the abandoned status and lack of recent maintenance poses compatibility risks with newer SSH server configurations.
- Real-world stability and edge-case handling in production environments given no active development.
What it is and what it does
Paramiko Expect wraps the Paramiko SSH library to provide an expect-like interface for scripting interactive terminal sessions. Instead of managing raw SSH channels, you construct an SSHClientInteraction object from an existing Paramiko SSH client, then send commands and wait for patterns (prompts, strings, or regex) to appear in the output. The class handles timeouts, captures both raw and cleaned output, and lets you match multiple patterns and branch on which one was found—similar to the Unix expect tool but over SSH.
The package is designed for automating interactive CLI tools, log tailing, and multi-step remote procedures where you need to respond to prompts or wait for specific output before proceeding. It includes a tail() method for streaming output from long-running commands. The single runtime dependency is paramiko, and it installs as a pure Python wheel with low friction. However, the project is archived and abandoned as of late 2022, with no active maintenance or updates.
Use it for
- Automating interactive CLI tools on remote servers (e.g., database prompts, configuration wizards) via SSH.
- Scripting multi-step remote procedures that require waiting for prompts and sending responses in sequence.
- Tailing and monitoring log files on multiple remote hosts in real time.
- Testing interactive SSH-based applications or command-line interfaces programmatically.
- Building deployment or system administration scripts that interact with remote interactive shells.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with caution.
The package is straightforward and has no known vulnerabilities, and low install friction makes it easy to try. However, it is abandoned—the repository is archived and the last release was in 2022. Use it for one-off scripts or internal automation where you control the environment, but avoid it for production systems or long-term maintenance unless you are prepared to fork and maintain it yourself. For new projects requiring robust SSH automation, consider whether a maintained alternative better suits your needs.
Install
paramiko-expect on PyPI
Before you install
Low install friction; depends only on paramiko. However, the package is abandoned (last release 2022-11-19, repository archived), so no active maintenance or security updates are forthcoming.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in your own projects.
Quickstart
pip install paramiko-expect
from paramiko_expect import SSHClientInteraction
import paramiko
client = paramiko.SSHClient()
client.connect(hostname='example.com', username='user', password='pass')
interact = SSHClientInteraction(client, timeout=10)
interact.expect('$')
interact.send('ls -l')
interact.expect('$')
output = interact.current_output_clean
Verify before relying
- Whether the package works reliably with modern Paramiko versions and current Python releases beyond 3.9.
- Whether the abandoned status and lack of recent maintenance poses compatibility risks with newer SSH server configurations.
- Real-world stability and edge-case handling in production environments given no active development.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packageparamiko |
| Maintenance | Abandoned 1,364 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 584,282 / month, #5,889 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: PyPy |
Evidence: paramiko_expect-0.3.5-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ssh interactive scripting”
- paramiko-expectParamiko Expect adds expect-like pattern matching and interaction to…
- pexpect-serialExtends pexpect to work with serial ports by wrapping pyserial…
- plumbumPlumbum lets you write shell-script-like programs in Python with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also pexpect · spur · jumpssh · sshtunnel · mock-ssh-server · paramiko · fabric · fabric2 · netconf-console2 · iterm2