ProcessOutputParser

class ase2sprkkr.common.process_output_reader.ProcessOutputParser(print_info=False)[source]

Parse asynchronous stdout/stderr streams.

Process creation, cancellation, file writing and raw-output delivery belong to the execution backend. Descendants only interpret the supplied streams.

Class hierarchy

Inheritance diagram of ase2sprkkr.common.process_output_reader.ProcessOutputParser


Constructor

__init__(print_info=False)[source]
result(output, error, return_code)[source]

Postprocess parsed stdout/stderr after execution completes.

async read_error(stderr, *args)[source]
async read_output(stdout, *args)[source]
read_from_file(cls, output, error=None, read_args=[], return_code=0)[source]

Synchronous wrapper for reading output/error from files.

async read_output_file(output, error=None, read_args=[], return_code=0)[source]

Read output and error files through the same async parser API.