get.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:z3 作者: PressLabs 项目源码 文件源码
def main():
    cfg = get_config()
    parser = argparse.ArgumentParser(
        description='Read a key from s3 and write the content to stdout',
    )
    parser.add_argument('name', help='name of S3 key')
    args = parser.parse_args()
    bucket = boto.connect_s3(
        cfg['S3_KEY_ID'], cfg['S3_SECRET']).get_bucket(cfg['BUCKET'])
    download(bucket, args.name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号