Skip to main content

Run a subprocess in a pseudo terminal

Project description

Launch and control a process in a pseudo terminal

Sometimes, piping stdin and stdout is not enough. There might be a password prompt that doesn’t read from stdin, output that changes when it’s going to a pipe rather than a terminal, or curses-style interfaces that rely on a terminal. If you need to automate these things, running the process in a pseudo terminal (pty) is the answer.

Interface:

p = PtyProcessUnicode.spawn(['python'])
p.read(20)
p.write('6+6\n')
p.read(20)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptyprocess-0.2.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file ptyprocess-0.2.tar.gz.

File metadata

  • Download URL: ptyprocess-0.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ptyprocess-0.2.tar.gz
Algorithm Hash digest
SHA256 7cd2400f04e3d68f72a1daba5cf616b1d63e16046652cc79c22e498e462aa106
MD5 112a725c375876b568a1c3345343f8b7
BLAKE2b-256 3c8a4722c026dd2a16106bfda3934fdcf9bb782d92a234cbd7fb20b13d801f89

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page