METADATA 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Metadata-Version: 1.2
  2. Name: ptyprocess
  3. Version: 0.5.2
  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. Classifier: Development Status :: 5 - Production/Stable
  10. Classifier: Environment :: Console
  11. Classifier: Intended Audience :: Developers
  12. Classifier: Intended Audience :: System Administrators
  13. Classifier: License :: OSI Approved :: ISC License (ISCL)
  14. Classifier: Operating System :: POSIX
  15. Classifier: Operating System :: MacOS :: MacOS X
  16. Classifier: Programming Language :: Python
  17. Classifier: Programming Language :: Python :: 2.7
  18. Classifier: Programming Language :: Python :: 3
  19. Classifier: Topic :: Terminals
  20. Launch a subprocess in a pseudo terminal (pty), and interact with both the
  21. process and its pty.
  22. Sometimes, piping stdin and stdout is not enough. There might be a password
  23. prompt that doesn't read from stdin, output that changes when it's going to a
  24. pipe rather than a terminal, or curses-style interfaces that rely on a terminal.
  25. If you need to automate these things, running the process in a pseudo terminal
  26. (pty) is the answer.
  27. Interface::
  28. p = PtyProcessUnicode.spawn(['python'])
  29. p.read(20)
  30. p.write('6+6\n')
  31. p.read(20)