Nope, unfotunately there is not any built in method. But it seems that this
is not necessary at all to do this?

def wrap_binary(client, value) :
    with BinaryStream(client) as stream:
        BinaryObject.from_python(stream, value)
        return (stream.getvalue(), 0)

for k in data.keys():
    key = client.unwrap_binary(k)

    print(key)
    print(data[wrap_binary(client, key)])

Reply via email to