def internal(identifier, size):
    '''
    Internal provider

    Use pydenticon to generate an identicon.
    '''
    identicon = generate_pydenticon(identifier, size)
    response = send_file(io.BytesIO(identicon), mimetype='image/png')
    etag = hashlib.sha1(identicon).hexdigest()
    response.set_etag(etag)
    return response
def internal ( identifier , size ) : identicon = generate_pydenticon ( identifier , size ) response = send_file ( io . BytesIO ( identicon ) , mimetype = 'image/png' ) etag = hashlib . sha1 ( identicon ) . hexdigest ( ) response . set_etag ( etag ) return response
Internal provider

    Use pydenticon to generate an identicon.