Pure Python Expect-like module

Edit Package python-pexpect

Pexpect is a pure Python module for spawning child applications;
controlling them; and responding to expected patterns in their output.

Refresh
Refresh
Source Files
Filename Size Changed
pexpect-4.5.0.tar.gz 0000148247 145 KB
python-pexpect.changes 0000010464 10.2 KB
python-pexpect.spec 0000002230 2.18 KB
Revision 24 (latest revision is 47)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 598545 from Tomáš Chvátal's avatar Tomáš Chvátal (scarabeus_iv) (revision 24)
- Fix typo and make sure the tests will pass

- specfile:
  * enable tests
- update to version 4.5.0:
  * spawn and fdspawn now have a use_poll parameter. If this is True,
    they will use select.poll() instead of select.select(). poll()
    allows file descriptors above 1024, but it must be explicitly
    enabled due to compatibility concerns (PR #474).
  * The pxssh.login() method has several new and changed options:
    + The option password_regex allows changing the password prompt
      regex, for servers that include password: in a banner before
      reaching a prompt (PR #468).
    + login() now allows for setting up SSH tunnels to be requested
      once logged in to the remote server. This option is ssh_tunnels
      (PR #473). The structure should be like this:
        {
          'local': ['2424:localhost:22'],   # Local SSH tunnels
          'remote': ['2525:localhost:22'],  # Remote SSH tunnels
          'dynamic': [8888],                # Dynamic/SOCKS tunnels
        }
    + The option spawn_local_ssh=False allows subsequent logins from
      the remote session and treats the session as if it was local (PR
      #472).
    + Setting sync_original_prompt=False will prevent changing the
      prompt to something unique, in case the remote server is
      sensitive to new lines at login (PR #468).
    + If ssh_key=True is passed, the SSH client forces forwarding the
      authentication agent to the remote server instead of providing a
      key (PR #473).
Comments 0
openSUSE Build Service is sponsored by