""" Command Line File Uploader ========================== The cli handler uploads a files to an s3 bucket. """ import argparse from aws import s3 if __name__ == '__main__': parser = argparse.ArgumentParser(description="upload a file to S3") parser.add_argument("local_file", help="the local file name to upload") parser.add_argument("s3_bucket", help="the s3 bucket name to upload into") parser.add_argument("s3_remote_file", help="the remote file name") args = parser.parse_args() print(args.local_file) # s3.list_buckets() # s3.upload('dev-cucumbers', 'testfile1.txt', 'rkordisch/testfile1.txt') s3.upload(args.s3_bucket, args.local_file, args.s3_remote_file)