def _ruby_b64encode(value):
    b64 = base64.b64encode(value)
    for i in six.moves.range(0, len(b64), 60):
        yield b64[i:i + 60].decode()
The Ruby function Base64.encode64 automatically breaks things up
dataset/ETHPy150Open coderanger/pychef/chef/auth.py/_ruby_b64encode