src/pybel/utils.py
def hash_dump(data) -> str:
    """Hash an arbitrary JSON dictionary by dumping it in sorted order, encoding it in UTF-8, then hashing the bytes.

    :param data: An arbitrary JSON-serializable object
    :type data: dict or list or tuple
    """
    return hashlib.md5(json.dumps(data, sort_keys=True).encode('utf-8')).hexdigest()
Hash an arbitrary JSON dictionary by dumping it in sorted order, encoding it in UTF-8, then hashing the bytes.

    :param data: An arbitrary JSON-serializable object
    :type data: dict or list or tuple
    
Hash an arbitrary JSON dictionary by dumping it in sorted order, encoding it in UTF-8, then hashing the bytes.
Hash an arbitrary JSON dictionary by dumping it in sorted order encoding it in UTF - 8 then hashing the bytes .
def hash_dump(data) -> str:
    return hashlib.md5(json.dumps(data, sort_keys=True).encode('utf-8')).hexdigest()
def hash_dump ( data ) -> str : return hashlib . md5 ( json . dumps ( data , sort_keys = True ) . encode ( 'utf-8' ) ) . hexdigest ( )
Hash an arbitrary JSON dictionary by dumping it in sorted order, encoding it in UTF-8, then hashing the bytes.
Hash an arbitrary JSON dictionary by dumping it in sorted order encoding it in UTF - 8 then hashing the bytes .
"""Hash an arbitrary JSON dictionary by dumping it in sorted order, encoding it in UTF-8, then hashing the bytes.

    :param data: An arbitrary JSON-serializable object
    :type data: dict or list or tuple
    """
data
An arbitrary JSON-serializable object
An arbitrary JSON - serializable object