libb.download_file

download_file(url, save_path=None)[source]

Download file from URL with progress bar and retry logic.

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

  • save_path (str or Path) – Optional path to save file (defaults to temp directory).

Returns:

Path to downloaded file.

Return type:

Path

See also

See tests/test_dir.py for usage examples.