nebula.downloader module

nebula.downloader.convert_to_datetime(date)
class nebula.downloader.downloader(http_server_ip=None, yamlfilename=None, board_name=None, reference_boot_folder=None, devicetree_subfolder=None, boot_subfolder=None, hdl_folder=None)

Bases: nebula.common.utils

check(fname, ref)
download(url, fname)
download_boot_files(design_name, source='local_fs', source_root='/var/lib/tftpboot', branch='[boot_partition, master]', firmware=None)

download_boot_files Download bootfiles for target design. This method can download or move files from different locations based on the source specified.

Parameters:

design_name: Target design name (same as boot file folder on SD card) source: Source location type. Options: local_fs, http, artifactory source_root: Root location of files. Dependent on source parameter

For local_fs this is a system path For http this is a IP or domain name (no http://) For artifactory this is a domain name of the artifactory server (ex. artifactory.analog.com, no http://)
branch: Name of branch to get related files. This is only used for
http and artifactory sources. Default is master
Returns:
A folder with name outs is created with the downloaded boot files
download_sdcard_release(release='2019_R1')
extract(inname, outname)
releases(release='2019_R1')
retry_session(retries=3, backoff_factor=0.3, status_forcelist=(429, 500, 502, 504), session=None)
nebula.downloader.gen_url(ip, branch, folder, filename, url_template)
nebula.downloader.get_gitsha(branch, link, daily=False)
nebula.downloader.get_latest_release(links)
nebula.downloader.get_newest_folder(links)
nebula.downloader.listFD(url)