llama.com.dl package¶
Module for downloading publicly-accessible files.
-
llama.com.dl.
download
(url: str, filename: str, sha256sum: str = None, tries: int = 10, mkdirs: bool = False)¶ Download the file located at
url
and save it to pathfilename
. Ifsha256sum
is specified, check the downloaded file’s sha256 hex digest against that value and raise anIOError
if they do not match. Ifmkdirs
isTrue
, make any intermediate directories as required. Give up after unsucsessfully tryingtries
times.