src/dirbs/utils.py
def cachebusted_filename_from_contents(byte_array):
    """
    Utility method to generate a unique filename based on the hash of a given content array (of bytes).

    Arguments:
        byte_array: content array
    Returns:
        filename
    """
    return compute_md5_hash(io.BytesIO(byte_array))[:8]

    Utility method to generate a unique filename based on the hash of a given content array (of bytes).

    Arguments:
        byte_array: content array
    Returns:
        filename
    
Utility method to generate a unique filename based on the hash of a given content array (of bytes).
Utility method to generate a unique filename based on the hash of a given content array ( of bytes ) .
def cachebusted_filename_from_contents(byte_array):
    return compute_md5_hash(io.BytesIO(byte_array))[:8]
def cachebusted_filename_from_contents ( byte_array ) : return compute_md5_hash ( io . BytesIO ( byte_array ) ) [ : 8 ]
Utility method to generate a unique filename based on the hash of a given content array (of bytes).
Utility method to generate a unique filename based on the hash of a given content array ( of bytes ) .
"""
    Utility method to generate a unique filename based on the hash of a given content array (of bytes).

    Arguments:
        byte_array: content array
    Returns:
        filename
    """
None
byte_array
None