parse_s3_url

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

Parse s3 path string

Parameters:
url : str

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

Returns:
bucket_name : str

Bucket name

s3_object : str

Full path of the S3 file object

filename : str

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