ecoscope.io.utils#

Module Contents#

ecoscope.io.utils.to_hex(val, default='#ff0000')[source]#
ecoscope.io.utils.pack_columns(dataframe, columns)[source]#

This method would add all extra columns to single column

Parameters:
  • dataframe (pandas.DataFrame)

  • columns (List)

ecoscope.io.utils.download_file(url, path, retries=2, overwrite_existing=False, chunk_size=1024, unzip=False, **request_kwargs)[source]#

Download a file from a URL to a local path. If the path is a directory, the filename will be inferred from the response header

ecoscope.io.utils.__is_gdrive_url(url)[source]#
ecoscope.io.utils.__is_dropbox_url(url)[source]#
ecoscope.io.utils.__transform_gdrive_url(url)[source]#
ecoscope.io.utils.__transform_dropbox_url(url)[source]#