cloudpathlib icon indicating copy to clipboard operation
cloudpathlib copied to clipboard

Add as_url method

Open pjbull opened this issue 5 years ago • 0 comments

It would be great to be able to generate URLs that can be used.

S3Path("s3://bucket/file.txt").as_url()
# > https://bucket.amazons3.com/file.txt 

S3Path("s3://bucket/file.txt").as_url(presign_expiry_min=100)
# > https://bucket.amazons3.com/file.txt?presign=accesstokenwithexpiry

pjbull avatar Aug 17 '20 18:08 pjbull