Skip to main content

Pseudo-terminal utilities.

Project description

Fork of pty aiming for enhancement of the full stdlib Python API.

As encountered in practice, pty.spawn requires KeyboardInterrupt or else to break hanging from select.select as in pty._copy then raise OSError to pty.spawn and to return from the function.

Thus, ptyng introduced _is_zombie to check if the spawned child process is already dead (or, a ‘zombie’), through which pty.spawn will automatically return from function call as normal/trivial scenerios expected.

Download

Standalone releases are available on PyPI: http://pypi.python.org/pypi/ptyng/

Development

The main development takes place in the Python standard library: see the Python developer’s guide. In particular, new features should be submitted to the Python bug tracker.

Documentation

Refer to the standard pty documentation.

ptyng.spawn now supports timeout argument. If the timeout expires, the spanwed child process will be killed and waited for.

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

ptyng-0.2.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

ptyng-0.2.0-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

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