flow.record.utils
#
Module Contents#
Classes#
Functions#
Convert a value to a byte string. |
|
Convert a value to a unicode string. |
|
Convert a value to a native str. |
|
Convert a value to a base64 string. |
|
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).