Skip to content

Commit

Permalink
addition of progress callback to aws download see #21
Browse files Browse the repository at this point in the history
  • Loading branch information
clemcazorla committed Jun 28, 2018
1 parent 81e8b3f commit 4574970
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eodag/plugins/download/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, config):
self.config.setdefault('outputs_prefix', '/tmp')
logger.debug('Images will be downloaded to directory %s', self.config['outputs_prefix'])

def download(self, product, auth=None):
def download(self, product, auth=None, progress_callback=None):
access_key, access_secret = auth
s3 = boto3.resource('s3', aws_access_key_id=access_key, aws_secret_access_key=access_secret)
bucket = s3.Bucket(self.config['associated_bucket'])
Expand Down
2 changes: 1 addition & 1 deletion eodag/plugins/download/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def __init__(self, config):
self.config = config
self.authenticate = bool(self.config.setdefault('authenticate', False))

def download(self, product, auth=None):
def download(self, product, auth=None, progress_callback=None):
raise NotImplementedError('A Download plugin must implement a method named download')

0 comments on commit 4574970

Please sign in to comment.