parse_s3_url

grizli.utils.parse_s3_url(url='s3://bucket/path/to/file.txt')[source]

Parse s3 path string

Parameters
urlstr

Full S3 path, e.g., [s3://]{bucket_name}/{s3_object}

Returns
bucket_namestr

Bucket name

s3_objectstr

Full path of the S3 file object

filenamestr

File name of the object, e.g. os.path.basename(s3_object)