deirokay.fs.split_s3_path

deirokay.fs.split_s3_path(s3_path: str) tuple[source]

Split a full s3 path into bucket and key parts.

Parameters

s3_path (str) – Full S3 path, such as s3://my-bucket/my-prefix/ or s3://my-bucket/my-prefix/my-file.txt.

Returns

(bucket, key) tuple.

Return type

tuple