denspp.offline.data_call.owncloud_handler#

Module Contents#

Classes#

ConfigCloud

Configuration class for handling remote control using NextCloud Attributes: remote_link: String with shared URL to data storage remote_transient: String with path to transient data remote_dataset: String with path to datasets

OwnCloudDownloader

Data#

API#

class denspp.offline.data_call.owncloud_handler.ConfigCloud[source]#

Configuration class for handling remote control using NextCloud Attributes: remote_link: String with shared URL to data storage remote_transient: String with path to transient data remote_dataset: String with path to datasets

None

remote_transient: str#

None

remote_dataset: str#

None

denspp.offline.data_call.owncloud_handler.DefaultConfigCloud#

‘ConfigCloud(…)’

class denspp.offline.data_call.owncloud_handler.OwnCloudDownloader(path2config: str = get_path_to_project_start(), use_config: denspp.offline.data_call.owncloud_handler.ConfigCloud = DefaultConfigCloud)[source]#

Initialization

Class for handling cloud storage access for getting transient data and datasets using Nextcloud services

Parameters:
  • path2config – path to config file

  • use_config – Class for handling the owncloud handler

Returns:

None

get_overview_folder(use_dataset: bool, search_folder: str = '') list[source]#

Getting an overview of available folders in selected folder

Parameters:
  • use_dataset – whether to download datasets (true) or transient signals (false) remotely

  • search_folder – Search folder path

Returns:

List of folder paths

get_overview_data(use_dataset: bool, search_folder: str = '', format: str = '*.*') list[source]#

Getting an overview of available files to download

Parameters:
  • use_dataset – whether to download datasets (true) or transient signals (false) remotely

  • search_folder – Search folder path

  • format – File format

Returns:

List with available folders/files from remote

download_file(use_dataset: bool, file_name: str, destination_download: str) None[source]#

Downloading a file from remote server

Parameters:
  • use_dataset – whether to download datasets (true) or transient signals (false)

  • file_name – File name (for downloading remote file)

  • destination_download – Folder name to save the data locally

Returns:

None

close() None[source]#

Function for closing the connection to remote cloud