Python CLI tool for managing persistent pexpect sessions via pueue. Provides a server/client architecture where sessions run as pueue tasks and can be interacted with through the CLI client.
| Script | Entry point | Description |
|---|---|---|
pexpect-server |
pexpect_cli.server:main |
Backend server managing pexpect sessions as pueue tasks |
pexpect-cli |
pexpect_cli.client:main |
CLI client for creating, interacting with, and stopping sessions |
# Start a new session
pexpect-cli --start [--name <label>]
# Execute code in a session (reads Python/pexpect code from stdin)
echo 'child = pexpect.spawn("ssh user@host")' | pexpect-cli <session_id>
# List active sessions
pexpect-cli --list
# Stop a session
pexpect-cli --stop <session_id>nix build .#pexpect-cli
nix profile install .#pexpect-cliThe Nix package automatically wraps the binaries with pueue in PATH.