Skip to main content

No project description provided

Project description

pterminal

A simple, light-weight input/output library for pipe terminal in new thread

Usage

create and start

pthread = pterminal.Thread()
pthread.start()

listen the pipe output/error

def on_pipe_out(self, sender, txtout):
    print(txtout)

def on_pipe_err(self, sender, txterr):
    print(txterr)

pthread.on(pterminal.SIGNAL_OUT, on_pipe_out)
pthread.on(pterminal.SIGNAL_ERR, on_pipe_err)

exit thread

pthread.terminate()

Project details


Release history Release notifications

Download files

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

Files for pterminal, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pterminal-1.0.0.tar.gz (5.7 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page