In [8]: from swh.storage import get_storage In [9]: s = get_storage('remote', url='http://moma.internal.softwareheritage.org:5002/') In [10]: r, = s.revision_get([bytes.fromhex('40b469ef825bec99054bec0fcaec224abe2e9cef')]) In [11]: r.id.hex() Out[11]: '40b469ef825bec99054bec0fcaec224abe2e9cef' In [12]: r.compute_hash().hex() Out[12]: '63cc0f0f6595dc2d41a90500442863acb2f3db00'