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


Download files

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

Source Distribution

pterminal-1.0.1.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file pterminal-1.0.1.tar.gz.

File metadata

  • Download URL: pterminal-1.0.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.0

File hashes

Hashes for pterminal-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b66bd1b8fce7beda8b5d1e4dde4834057ebc5141bd24cdd566bd7dc748233906
MD5 ae55206f22e54e9439f89c2d6a1b7d7c
BLAKE2b-256 51c2fab6f4d33d6f519d447a488820b4ee79758ff402f90fa05cc165d6659a68

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