'Wraps an iterable to behave as a file-like object.
The iterable must yield bytes strings.'

def __init__(self, iterable):

    self.iterator = iter(iterable)
    self.buf = None
    self.closed = False
