graphtage.progress¶
A module for printing status messages and progress bars to the command line.
progress classes¶
StatusWriter¶
- 
class graphtage.progress.StatusWriter(out_stream: Optional[TextIO] = None, quiet: bool = False)¶
- Bases: - typing.IO- A writer compatible with the - graphtage.printer.Writerprotocol that can print status.- See - StatusWriter.tqdm()and- StatusWriter.trange(). If- StatusWriter.status_streamis either- sys.stdoutor- sys.stderr, then bytes printed to this writer will be buffered. For each full line buffered, a call to- tqdm.write()will be made.- A status writer whose lifetime is not controlled by instantiation in a - withblock must be manually flushed with- StatusWriter.flush(final=True)after its final write, or else the last line written may be lost.- 
__init__(out_stream: Optional[TextIO] = None, quiet: bool = False)¶
- Initializes a status writer. - Parameters
- out_stream – An optional stream to which to write. If omitted this defaults to - sys.stdout.
- quiet – Whether or not - tqdmstatus messages and progress should be suppressed.
 
 
 - 
property closed¶
 - 
flush(final=False)¶
- Flushes this writer. - If - finalis- True, any extra bytes will be flushed along with a final newline.
 - 
property mode¶
 - 
property name¶
 - 
quiet¶
- Whether or not - tqdmstatus messages and progress should be suppressed.
 - 
status_stream: TextIO¶
- The status stream to which to print. 
 - 
tqdm(*args, **kwargs) → tqdm.std.tqdm¶
- Returns a - tqdm.tqdmobject.
 - 
trange(*args, **kwargs) → tqdm.std.trange¶
- Returns a - tqdm.trangeobject.
 - 
write_raw¶
- If - True, this writer will not buffer output and use- tqdm.write().- This defaults to: - self.write_raw = self.quiet or ( out_stream.fileno() != sys.stderr.fileno() and out_stream.fileno() != sys.stdout.fileno() ) 
 
-