@sync_performer
def perform_download_s3_key(dispatcher, intent):
 s3 = boto.connect_s3()
 bucket = s3.get_bucket(intent.source_bucket)
 key = bucket.get_key(intent.source_key)
 with intent.target_path.open('w') as target_file:
  key.get_contents_to_file(target_file)

@ sync_performer def perform_download_s3_key ( dispatcher , intent ) : s3 = boto . connect_s3 ( ) bucket = s3 . get_bucket ( intent . source_bucket ) key = bucket . get_key ( intent . source_key ) with intent . target_path . open ( 'w' ) as target_file : key . get_contents_to_file ( target_file )
see :class:downloads3key .