Ross ROSS = Recommend OSS · open-source software intelligence for agents

pexpect/pexpect

A Python module for controlling interactive programs in a pseudo-terminal observed · 2026-08-28

github.com/pexpect/pexpect · homepage · Python · NOASSERTION (other) observed · 2026-08-28

Health v2 · maintenance only

30/100

  • Activity 16
  • Release rhythm 8
  • Longevity 100

Flags: no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4733
  • days_rel: n/a
  • days_push: 509
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2851 stars · 494 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

Pexpect is a pure Python, Expect-like module for spawning and controlling interactive child applications in a pseudo-terminal. It lets scripts respond to expected output patterns as if a human were typing commands, automating tools like ssh, ftp, and passwd.

Use cases

  • automate interactive ssh sessions from python
  • script password prompts for passwd or ftp
  • run automated tests of command-line programs
  • control a child process and respond to its output patterns
  • automate setup scripts across servers
  • drive telnet or other console applications programmatically

When to choose

  • you need to automate interactive Unix command-line programs that prompt for input
  • you want a pure-Python alternative to Don Libes' Expect
  • you are writing automated tests for terminal applications

When to avoid

  • you need full functionality on Windows, since pty-based features are Unix-only
  • you just need to run non-interactive subprocesses, where subprocess is simpler
  • you need to control GUI applications

Facets

library · maturity stable

workflow-automation testing cli developer-tools developer-tools testing python cli expect pseudo-terminal pty process-control interactive-applications automation command-line linux macos

2 sources

Member repositories

RepositoryRoleHealth v2
pexpect/pexpectmain30

For agents

markdown · JSON · MCP: product_card(name="pexpect/pexpect")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem