将文件上传到amazon s3 bucket
s3uploader的Python项目详细描述
一个将文件上传到amazon s3存储桶的简单应用程序。在幕后这个脚本使用了可怕的BOTO3 访问Amazon Web服务的库。
快速启动
应用程序使用位于~/.aws/credentials中的aws凭据文件
usage: s3uploader.py [-h] [–verbose] [–store-paths] bucket file [file …]
Upload files to an Amazon S3 bucket
- positional arguments:
- bucket Name of the S3 bucket to use file File to upload to the S3 bucket
- optional arguments:
-h, --help show this help message and exit --verbose Give verbose output while uploading files --store-paths Store the file path in the S3 object name
选项
--store-paths | If this flag is set the S3 object will stored with the path you specify, otherwise the filenamewill be used as the object name. Using this approach it is possible to simulate a directory structure on S3. |
--verbose | Give verbose output while uploading files to S3. |