Registry / devops / ptyprocess

ptyprocess

JSON →
library0.7.0pypypi✓ verified 27d ago

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.

pip install ptyprocess
INSTALL
IMPORT
SIG · PTYPROCESS
P
ptyprocess
devopspythonv0.7.0
Install
1.6s avg
Import
17ms
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.018s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.6s · import 0.016s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PtyProcess
from ptyprocess import PtyProcess
from ptyprocess import PTYProcess
PtyProcessError
from ptyprocess import PtyProcessError
PtyProcessUnicode
from ptyprocess import PtyProcessUnicode

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())
Debug
Known issues
gotchaNot all subprocesses behave the same in a pseudo terminal.
fix
Test subprocess compatibility before production use.
affects: 0.7.0
deprecatedOlder methods of invoking processes may not fully utilize the pty.
fix
Update your method calls to the new standardized approach.
affects: < 0.6.0
breakingThe `PTYProcess` class has been moved or removed from the top-level `ptyprocess` package, resulting in an ImportError.
fix
Update your import statement from `from ptyprocess import PTYProcess` to `from ptyprocess.ptyprocess import PTYProcess`, or consult the library's documentation for the correct import path for your version.
affects: > 0.5.0
breakingThe main class 'PTYProcess' has been renamed to 'PtyProcess'. Attempting to import 'PTYProcess' will result in an ImportError.
fix
Update your code to import 'PtyProcess' instead of 'PTYProcess'.
affects: >= 0.7.0
Upgrade
Version history
0.7.0latest on PyPI · released Dec 28, 2020
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
ptyprocess — pip install ptyprocess · libregistry