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 spawned child process will be killed and waited for. Another env argument can be used to set the runtime environment variables for the spawned child process, default is os.environ.

Project details


Download files

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

Files for ptyng, version 0.3.3.post1
Filename, size File type Python version Upload date Hashes
Filename, size ptyng-0.3.3.post1-cp27-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp27-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp34-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp34-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp35-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp35-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp36-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp36-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp37-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-cp37-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-pp27-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version pp27 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-pp27-none-manylinux1_x86_64.whl (6.2 kB) File type Wheel Python version pp27 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-pp35-none-macosx_10_14_x86_64.whl (6.2 kB) File type Wheel Python version pp35 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-pp35-none-manylinux1_x86_64.whl (8.0 kB) File type Wheel Python version pp35 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-py2.7.egg (8.7 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-py3.4.egg (8.7 kB) File type Egg Python version 3.4 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-py3.5.egg (8.7 kB) File type Egg Python version 3.5 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-py3.6.egg (8.6 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1-py3.7.egg (8.6 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size ptyng-0.3.3.post1.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page