s3.py 文件源码

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

项目:hatch 作者: hatch-sh 项目源码 文件源码
def get_website_endpoint(bucket_name):
    # bucket names with .'s in them need to use the calling_format option,
    # otherwise the connection will fail.
    # See https://github.com/boto/boto/issues/2836
    bucket = connect_s3(
        calling_format=OrdinaryCallingFormat()
    ).get_bucket(bucket_name, validate=False)
    return bucket.get_website_endpoint()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号