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.1.tar.gz (10.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for ptyprocess-0.1.tar.gz
Algorithm Hash digest
SHA256 e646086fe2d7d4e2d1fd7730591ffa6af8c1e8aaea1da9dd507e18cbe93df0e7
MD5 cc91908dc8f1d369dbb27a84531a8077
BLAKE2b-256 a5ce375a5b5a5a6c3dd29a88d1072eee662a30259993db22144664542a27c018

See more details on using hashes here.

Supported by

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