obspy.core.util.base.get_bytes_stream

get_bytes_stream(file_or_stream)[source]

Return a file-like object streaming bytes data (bytes objects)

Parameters:

file_or_stream (str, Path or file-like object) – the input from which to return the stream of bytes

Returns:

a file-like object streaming bytes data