OpenQuizz
Une application de gestion des contenus pédagogiques
SubprocessMixin Class Reference
Inheritance diagram for SubprocessMixin:
Collaboration diagram for SubprocessMixin:

Public Member Functions

def __init__ (self, verbose=False, progress=None)
 
def reader (self, stream, context)
 
def run_command (self, cmd, **kwargs)
 

Data Fields

 verbose
 
 progress
 

Detailed Description

Mixin for running subprocesses and capturing their output

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  verbose = False,
  progress = None 
)

Member Function Documentation

◆ reader()

def reader (   self,
  stream,
  context 
)
Read lines from a subprocess' output stream and either pass to a progress
callable (if specified) or write progress information to sys.stderr.

◆ run_command()

def run_command (   self,
  cmd,
**  kwargs 
)

Field Documentation

◆ progress

progress

◆ verbose

verbose

The documentation for this class was generated from the following file: