nebula.downloader module

nebula.downloader.convert_to_datetime(date)
nebula.downloader.download_artifact(path, output_folder)
nebula.downloader.download_matlab_generate_bootbin(root, toolbox, branch, build, target_fmc, target_fpga, download_folder, skip_download=False)
class nebula.downloader.downloader(http_server_ip=None, yamlfilename=None, board_name=None)

Bases: utils

check(fname, ref)
download(url, fname)
download_boot_files(design_name, source='local_fs', source_root='/var/lib/tftpboot', branch='master', firmware=None, boot_partition=None, noos=None, microblaze=None, rpi=None, url_template=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.filter_boards(paths, fmc, fpga)
nebula.downloader.gen_url(ip, branch, folder, filename, addl, url_template)
nebula.downloader.generate_bootbin_map_file(bootbin_dir)
nebula.downloader.get_artifact_paths(toolbox, branch, build, ext, root='dev')
nebula.downloader.get_firmware_version(links)
nebula.downloader.get_gitsha(url, daily=False, linux=False, hdl=False, build_info=None)
nebula.downloader.get_info_txt(url)
nebula.downloader.get_latest_release(links)
nebula.downloader.get_newest_folder(links)
nebula.downloader.interpret_bootbin(filename)
nebula.downloader.listFD(url)
nebula.downloader.list_files_in_remote_folder(url)

List files in remote artifactory folder

nebula.downloader.sanitize_artifactory_url(url)
nebula.downloader.translate_to_reference_design_name(fmc, fpga)