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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file ptyng-0.2.0.tar.gz.

File metadata

  • Download URL: ptyng-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for ptyng-0.2.0.tar.gz
Algorithm Hash digest
SHA256 310de177721b6152b4d699d2d5c90242ecf1fdbc8475ac9caa110e50753794ff
MD5 0486367de7b0f836826580de98bd947c
BLAKE2b-256 8a86f07812b4a461b0cb1aefb8e7a198b7da7013b3354afb961fe4ba76612444

See more details on using hashes here.

File details

Details for the file ptyng-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ptyng-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for ptyng-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a7b18aa0fa48f057c6a19d8193c5e390eabc64561d3faa5b93b05ea17c879c
MD5 ca1441488951e028f78f9a9bd875f630
BLAKE2b-256 1a5a272aac827ac49d7b7d52cc7188cc3e6afbe31e128e798cba09d279facdde

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