Skip to content

redplanet.user_config.set_enable_stream_hash_check

set_enable_stream_hash_check(value: bool) -> None

Set the flag that determines whether we verify the hash of a file at URL by streaming before fully downloading it.

Parameters:

Name Type Description Default
value bool
required
Source code in src/redplanet/user_config/stream_hash_check.py
def set_enable_stream_hash_check(value: bool) -> None:
    """
    Set the flag that determines whether we verify the hash of a file at URL by streaming before fully downloading it.

    Parameters
    ----------
    value : bool
    """
    global _enable_stream_hash_check
    _enable_stream_hash_check = value
    return