core.msc_utils#

Module Contents#

Classes#

_FeatureFlag

MaybeMultiStorageClient

Helper class to use MultiStorageClient

Data#

API#

core.msc_utils.logger#

‘getLogger(…)’

class core.msc_utils._FeatureFlag(default: bool = False)#

Initialization

enable() None#

Enable the feature flag.

disable() None#

Disable the feature flag.

is_enabled() bool#

Check if the feature flag is enabled.

import_package() Any#

Import the package.

__getstate__()#

Get the state for pickling.

__setstate__(state)#

Set the state during unpickling.

core.msc_utils.MultiStorageClientFeature#

‘_FeatureFlag(…)’

class core.msc_utils.MaybeMultiStorageClient#

Helper class to use MultiStorageClient

path_isdir(path, strict: bool = True)#

Check if a path is an existing directory.

Parameters:
  • path – path to check

  • strict – if True, use only committed metadata for MSC

__getattr__(name)#
__dir__()#
core.msc_utils.maybe_msc#

‘MaybeMultiStorageClient(…)’

core.msc_utils.__all__#

[‘MultiStorageClientFeature’, ‘maybe_msc’]