ptyprocess

0.7.0 · active · verified Sun Oct 01

A library to run subprocesses in a pseudo terminal, version 0.7.0. It is actively maintained with a release cadence focused on improvements and CI updates.

Warnings

Install

Imports

Quickstart

This quickstart launches a subprocess to list files in the current directory.

import os
from ptyprocess import PTYProcess

proc = PTYProcess.spawn(['ls', '-l'])
print(proc.read())

view raw JSON →