#NEWLINE# def put_file( self , fname_src ) : #NEWLINE# #INDENT# k = Key ( self . dst_bucket ) #NEWLINE# k . key = fname_src #NEWLINE# k . set_contents_from_filename ( fname_src ) #NEWLINE# k . make_public ( ) #NEWLINE# os . remove ( fname_src ) #NEWLINE# return ( 'https://s3.amazonaws.com/%s/%s' % ( self . dst_bucket_name , fname_src ) )