# pexpect — card for AI agents

Python library for controlling interactive console applications programmatically.

Category: Utilities · PyPI package `pexpect` · latest version 4.9.0 (checked 2026-11-01)
Install: `pip install pexpect`
License: ISC (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 66.7 (#571 of all tools, 69 of 408 in its category)
- Used in 4 public projects set up for AI coding agents (0.1%)
- Downloads last week: 31,121,656 (as of 2026-11-24), +7.2% over 4 weeks
- GitHub stars: 2,858 (as of 2026-11-24)
- Last push: 2025-04-11

## Often used with
NumPy 94.4%, IPython 93.7%, packaging 93.7%, Pygments 93.2%, prompt-toolkit 92.5%, parso 92.1%

## Links
- AgentGid page: https://agentgid.com/tools/pexpect/
- Homepage: https://pexpect.readthedocs.io/
- Repository: https://github.com/pexpect/pexpect

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
