S3 Tools#
Keywords: AWS, Amazon, S3
Print S3 Console Url#
1# -*- coding: utf-8 -*-
2
3"""
4This tool can print the aws console url of a S3 object / folder URI or ARN.
5"""
6
7from s3pathlib import S3Path
8
9uri_or_arn = """
10s3://my-bucket/my-key
11""".strip()
12print(S3Path(uri_or_arn).console_url)