class_docstr: a popen-based pipe for parallel and distributed computing
class_docstr_tok: ["a","popen-based","pipe","for","parallel","and","distributed","computing"]
docstr: create a popen-pipe
  
  Inputs:
      name: a unique identifier (string) for the pipe
      command: a command to send  [default = 'echo <name>']
      background: run in background  [default = False]
      decode: ensure response is 'ascii'  [default = True]
      stdin: file-like object to serve as standard input for the remote process
          
docstr_tok: ["create","a","popen-pipe","Inputs",":","name",":","a","unique","identifier","(","string",")","for","the","pipe","command",":","a","command","to","send","[","default","=","'echo","<","name",">","'","]","background",":","run","in","background","[","default","=","False","]","decode",":","ensure","response","is","'ascii","'","[","default","=","True","]","stdin",":","file-like","object","to","serve","as","standard","input","for","the","remote","process"]
code: def __init__(self, name=None, **kwds):
      """create a popen-pipe
  
      Inputs:
          name: a unique identifier (string) for the pipe
          command: a command to send  [default = 'echo <name>']
          background: run in background  [default = False]
          decode: ensure response is 'ascii'  [default = True]
          stdin: file-like object to serve as standard input for the remote process
      """
      xyz = string.ascii_letters
      self.name = (
          "".join(random.choice(xyz) for i in range(16))
          if name is None
          else name
      )
  
      self.background = kwds.pop("background", False)
      self.stdin = kwds.pop("stdin", sys.stdin)
      self.codec = kwds.pop("decode", "ascii")
      self.message = kwds.pop("command", "echo %s" % self.name)  #' '?
      self._response = None
      self._pid = 0
      self.config(**kwds)
      return
  
file_path: pathos/pathos/connection.py
imports: import os
  import sys
  import signal
  import random
  import string
  from pathos.selector import Selector
  from pathos.util import _str
label_desc: Use image node_id 1 to create a new Pipe object from inherited base classes: object with example: obj = Pipe(name)