Created
July 26, 2017 09:03
-
-
Save peace098beat/758f5f3ad29aeb22b97c0429b9a77046 to your computer and use it in GitHub Desktop.
s3 upload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def s3_upload(file_name:str): | |
import boto3 | |
print("s3 ", file_name) | |
s3_client = boto3.client('s3') | |
bucket_name = 'nohara-dnn-workspace' | |
s3_client.upload_file(file_name, bucket_name, "dataset/"+Path(file_name).name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment