owmeta_core.bundle.common module¶
- owmeta_core.bundle.common.bundle_tree_filter(path, fullpath)[source]¶
Returns true for file names that are to be included in a bundle for deployment or fetching.
- owmeta_core.bundle.common.fmt_bundle_directory(bundles_directory, ident, version=None)[source]¶
Get the directory for the given bundle identifier and version
- owmeta_core.bundle.common.validate_manifest(bundle_path, manifest_data)[source]¶
Validate manifest data in a
dict
- Parameters
- Raises
NotABundlePath
Thrown in one of these conditions:
manifest_data
lacks amanifest_version
manifest_data
has amanifest_version
> BUNDLE_MANIFEST_VERSIONmanifest_data
has amanifest_version
<= 0manifest_data
lacks aversion
manifest_data
lacks anid
- owmeta_core.bundle.common.BUNDLE_ARCHIVE_MIME_TYPE = 'application/x-gtar'¶
MIME type for bundle archive files
- owmeta_core.bundle.common.BUNDLE_INDEXED_DB_NAME = 'owm.db'¶
Base name of the indexed database that gets built in a bundle directory during installation
- owmeta_core.bundle.common.BUNDLE_MANIFEST_FILE_NAME = 'manifest'¶
Name of the manifest file in a bundle directory or archive
- owmeta_core.bundle.common.BUNDLE_MANIFEST_VERSION = 1¶
Current version number of the bundle manifest. Written by
Installer
and anticipated byDeployer
andFetcher
.