owmeta_core.bundle.loaders.local module

class owmeta_core.bundle.loaders.local.FileBundleLoader(source_bundles_dir)[source]

Bases: Loader

Copies bundles from a local directory structure identical to the local bundle cache typically stored under ~/.owmeta/bundles.

Note, there is no corresponding bundle uploader: if you want that, you should instead fetch the bundle into the target bundle cache directory.

can_load(bundle_id, bundle_version=None)[source]

Check if the bundle is available under the base directory given at init

classmethod can_load_from(ac)[source]

Returns True for file:// URLConfigs

Parameters
acAccessorConfig

The config which we may be able to load from

class owmeta_core.bundle.loaders.local.FileURLConfig(url)[source]

Bases: URLConfig

URL config for local files.

Local file paths, in general, are not especially portable, but this accessor config may be useful for bundle directories on shared file systems like NFS or Samba.