pygmtools.utils.download
- pygmtools.utils.download(filename, url, md5=None, retries=5, to_cache=True)[source]
Check if content exits. If not, download the content to
<user cache path>/pygmtools/<filename>.<user cache path>depends on your system. For example, on Debian, it should be$HOME/.cache. :param filename: the destination file name :param url: the url or the url list to download file :param md5: (optional) the md5sum to verify the content. It should match the result ofmd5sum fileon Linux. :param retries: (default: 5) max number of retries :return: the full path to the file:<user cache path>/pygmtools/<filename>