fastdev.io.download =================== .. py:module:: fastdev.io.download Module Contents --------------- .. py:function:: download_url(url: str, local_path: str, verify: bool = True, force_redownload: bool = False) -> str Download url to local path. :param url: URL to download. :type url: str :param local_path: Local path to save the downloaded file. If the local path is a directory, the file will be saved to the directory with the same name as the URL basename. :type local_path: str :param verify: Verify SSL certificate. Defaults to True. :type verify: bool, optional :param force_redownload: Whether to force redownload the file even if it exists. Defaults to False. :type force_redownload: bool, optional :returns: Local path of the downloaded file. :rtype: str .. py:function:: cached_local_path(url: str, rel_cache_path: Optional[str] = None, cache_root: str = FDEV_CACHE_ROOT) -> str Get the cached local path of the URL. :param url: Remote URL. :type url: str :param rel_cache_path: Relative local path in the cache root. Use the URL relative path if None. Defaults to None. :type rel_cache_path: str, optional :param cache_root: Cache root. Defaults to FDEV_CACHE_ROOT. :type cache_root: str, optional