Utilities#

Common#

colour_datasets.utilities

hash_md5(filename[, chunk_size])

Compute the Message Digest 5 (MD5) hash of specified file.

json_open(url[, retries])

Open specified url and return its content as JSON.

suppress_stdout()

A context manager and decorator temporarily suppressing standard output.

url_download(url, filename[, md5, retries])

Download specified url and saves its content at specified file.

Spreadsheet#

colour_datasets.utilities

cell_range_values(sheet, cell_range)

Return specified workbook sheet cell range values, i.e., the values of the rows and columns for specified cell range.

column_to_index(column)

Return the 0-based index of specified column letters.

index_to_column(index)

Return the column letters of specified 0-based index.

index_to_row(index)

Return the row name of specified 0-based index.

row_to_index(row)

Return the 0-based index of specified row name.