flow.record.utils#

Module Contents#

Classes#

Functions#

is_stdout

to_bytes

Convert a value to a byte string.

to_str

Convert a value to a unicode string.

to_native_str

Convert a value to a native str.

to_base64

Convert a value to a base64 string.

catch_sigpipe

Catches KeyboardInterrupt and BrokenPipeError (OSError 22 on Windows).

flow.record.utils.is_stdout(fp)#
flow.record.utils.to_bytes(value)#

Convert a value to a byte string.

flow.record.utils.to_str(value)#

Convert a value to a unicode string.

flow.record.utils.to_native_str(value)#

Convert a value to a native str.

flow.record.utils.to_base64(value)#

Convert a value to a base64 string.

flow.record.utils.catch_sigpipe(func)#

Catches KeyboardInterrupt and BrokenPipeError (OSError 22 on Windows).

class flow.record.utils.EventHandler#
add_handler(callback)#
remove_handler(callback)#
__call__(*args, **kwargs)#