Storage

The s3_paths module

S3 path utilities

bookstore.s3_paths.s3_display_path(bucket, prefix, path='')

Create a display name for use in logs

Parameters:
  • bucket (str) – S3 bucket name
  • prefix (str) – prefix for workspace or publish
  • path (str) – The storage location
bookstore.s3_paths.s3_key(prefix, path='')

Compute the s3 key

Parameters:
  • prefix (str) – prefix for workspace or publish
  • path (str) – The storage location
bookstore.s3_paths.s3_path(bucket, prefix, path='')

Compute the s3 path.

Parameters:
  • bucket (str) – S3 bucket name
  • prefix (str) – prefix for workspace or publish
  • path (str) – The storage location