Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ptyng

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptyng

Pseudo-terminal utilities.

  • 0.3.3.post1
  • PyPI
  • Socket score

Maintainers
1

PTYng -- Pseudo-terminal utilities

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 <http://docs.python.org/devguide/>. In particular, new features should be submitted to the Python bug tracker <http://bugs.python.org/>.

Documentation

Refer to the standard pty <http://docs.python.org/dev/library/pty.html>_ 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``.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc