traveler.tools.data_download.download_asset#

traveler.tools.data_download.download_asset(url, sha256=None, unpack=None, cache_dirname='ActivitySim')[source]#

Download assets for model testing.

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

  • sha256 (str, optional) – Checksum for the file. If there is already a cached file and the checksum matches, it is not re-downloaded and the cached version is used. Otherwise, the file is downloaded, and if the downloaded file’s checksum does not match, an error is raised.

  • unpack (str, optional) – If the asset is an archive file (.zip, .tar.gz, or .tar.zst), it will be decompressed into this location.

  • cache_dirname (str)