jacinle.io.network#

Functions

check_integrity(filename, md5)

Check data integrity using md5 hashing.

download(url, dirname[, cli, filename, md5])

Download URL to a directory.

Functions

check_integrity(filename, md5)[source]#

Check data integrity using md5 hashing.

Parameters:
  • filename (str) – path to the file.

  • md5 (str) – md5 hash to check.

Return type:

bool

download(url, dirname, cli=True, filename=None, md5=None)[source]#

Download URL to a directory. Will figure out the filename automatically from URL. Will figure out the filename automatically from URL, if not given.

Parameters:
  • url (str) – URL to download.

  • dirname (str) – directory to download to.

  • cli (bool) – whether to use CLI progress bar.

  • filename (str) – filename to save to.

  • md5 (str) – md5 hash to check.

Source: ppwwyyxx/tensorpack