Skip to content

iostream

ngtools.local.iostream

Handling of standard IO + logging.

StandardIO

StandardIO(stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr, level='info', logger=LOG)

An IO handling class.

stdin property writable

stdin

Get input stream.

format

format(*args, **kwargs)

Format a message like print would.

print

print(*args, **kwargs)

Print something to the stdout (no logging).

debug

debug(*args, **kwargs)

Debug -- Print something to the stderr.

info

info(*args, **kwargs)

Info -- Print something to the stdout.

warning

warning(*args, **kwargs)

Warn -- Print something to the stdout in orange.

error

error(*args, **kwargs)

Warn -- Print something to the stderr in red.

input

input(prompt='')

Read input from stdin or from a file.