METADATA 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. Metadata-Version: 2.1
  2. Name: ptyprocess
  3. Version: 0.7.0
  4. Summary: Run a subprocess in a pseudo terminal
  5. Home-page: https://github.com/pexpect/ptyprocess
  6. License: UNKNOWN
  7. Author: Thomas Kluyver
  8. Author-email: thomas@kluyver.me.uk
  9. Description-Content-Type: text/x-rst
  10. Classifier: Development Status :: 5 - Production/Stable
  11. Classifier: Environment :: Console
  12. Classifier: Intended Audience :: Developers
  13. Classifier: Intended Audience :: System Administrators
  14. Classifier: License :: OSI Approved :: ISC License (ISCL)
  15. Classifier: Operating System :: POSIX
  16. Classifier: Operating System :: MacOS :: MacOS X
  17. Classifier: Programming Language :: Python
  18. Classifier: Programming Language :: Python :: 2.7
  19. Classifier: Programming Language :: Python :: 3
  20. Classifier: Topic :: Terminals
  21. Launch a subprocess in a pseudo terminal (pty), and interact with both the
  22. process and its pty.
  23. Sometimes, piping stdin and stdout is not enough. There might be a password
  24. prompt that doesn't read from stdin, output that changes when it's going to a
  25. pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
  26. If you need to automate these things, running the process in a pseudo terminal
  27. (pty) is the answer.
  28. Interface::
  29. p = PtyProcessUnicode.spawn(['python'])
  30. p.read(20)
  31. p.write('6+6\n')
  32. p.read(20)