SwiftStack Extension

SwiftStack Utilities

Utilities specific to SwiftStack’s implementation of Openstack Swift.

Use this module to translate swift paths to S3 paths.

stor.extensions.swiftstack.s3_to_swift(s3_path)[source]

S3 Cloud-Sync style path to SwiftStack Path

Parameters

s3_path (str|Path) – path to convert

Returns

the converted path

Return type

SwiftPath

stor.extensions.swiftstack.swift_to_s3(swift_path, bucket)[source]

SwiftStack Swift Path to S3 Cloud-Shunt Path

Parameters
  • swift_path (str|Path) – path to convert

  • bucket (str) – name of S3 bucket

Returns

the converted path

Return type

S3Path

See https://www.swiftstack.com/docs/admin/cluster_management/cloud_sync.html#swift-object-representation-in-s3 for details