easygraph.utils.download module#

easygraph.utils.download.check_file(file_path: Path, md5: str)[source]#

Check if a file is valid.

Parameters:
  • file_path (Path) – The local path of the file.

  • md5 (str) – The md5 of the file.

Raises:

FileNotFoundError – Not found the file.

easygraph.utils.download.download_and_check(url: str, file_path: Path, md5: str)[source]#

Download a file from a url and check its integrity.

Parameters:
  • url (str) – The url of the file.

  • file_path (Path) – The path to the file.

  • md5 (str) – The md5 of the file.

easygraph.utils.download.download_file(url: str, file_path: Path)[source]#

Download a file from a url.

Parameters:
  • url (str) – the url of the file

  • file_path (str) – the path to the file