将文件上传到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, --helpshow this help message and exit
--verboseGive verbose output while uploading files
--store-pathsStore the file path in the S3 object name

选项

--store-pathsIf 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.
--verboseGive verbose output while uploading files to S3.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用ApachePOI将excel文件导入postgreSQL表   java多线程从iText pdf提取文本   winapi Java和SetWindowDisplayAffinity   eclipse juno的java Websphere 6.1插件   java MPAndroidChart:为Y轴提供一些偏移   java中作为参数传递枚举类型的继承   java Gui jframe的工作原理与netbeans不同   使用Bouncy Castle和PDFBox在Java中验证PDF签名   优化缩小Java代码   java无法在安卓中从Firebase取回子数据   返回的java方法?我应该什么时候用?   java错误处理已完成,退出代码为1。与穿过阵列的for循环有关   多线程Java volatile是否阻止缓存或强制执行写缓存?   java Multi-collectItems如何提前终止并返回已收集的项目   java为什么不在服务(请求,响应)中直接调用processRequest(请求,响应)?   java如何从字符串生成int数组?   打印获取用户输入的值并在其他预选文本中显示。JAVA   未显示java DynamicAsper UTF8字符   java Eclipse RCP:不启动应用程序的命令行参数