deriva.transfer.upload package¶
Submodules¶
deriva.transfer.upload.deriva_upload module¶
-
class
deriva.transfer.upload.deriva_upload.
DerivaUpload
(config_file=None, credential_file=None, server=None, dcctx_cid=None)[source]¶ Bases:
object
Base class for upload tasks. Encapsulates a catalog instance and a hatrac store instance and provides some common and reusable functions.
This class is not intended to be instantiated directly, but rather extended by a specific implementation.
-
DefaultConfigFileName
= 'config.json'¶
-
DefaultServerListFileName
= 'servers.json'¶
-
DefaultTransferStateBaseName
= '.deriva-upload-state'¶
-
DefaultTransferStateFileName
= '%s-%s.json'¶
-
static
find_file_in_dir_hierarchy
(filename, path)[source]¶ Find all instances of a filename in the entire directory hierarchy specified by path.
-
scanDirectory
(root, abort_on_invalid_input=False, purge_state=False)[source]¶ Parameters: - root –
- abort_on_invalid_input –
- purge_state –
Returns:
-
-
class
deriva.transfer.upload.deriva_upload.
FileUploadState
(state=2, status='Pending', result=None)[source]¶ Bases:
object
deriva.transfer.upload.deriva_upload_cli module¶
-
class
deriva.transfer.upload.deriva_upload_cli.
DerivaUploadCLI
(uploader, description, epilog)[source]¶ Bases:
deriva.core.base_cli.BaseCLI
Module contents¶
-
exception
deriva.transfer.upload.
DerivaUploadCatalogCreateError
[source]¶ Bases:
RuntimeError
-
exception
deriva.transfer.upload.
DerivaUploadCatalogUpdateError
[source]¶ Bases:
RuntimeError
-
exception
deriva.transfer.upload.
DerivaUploadConfigurationError
[source]¶ Bases:
ValueError
-
exception
deriva.transfer.upload.
DerivaUploadError
[source]¶ Bases:
RuntimeError