path
or its children.dest
. Descendants are written under their logical names relative to self.dest
.path
to the package.path
, and adds them to the package according to their relative location to path
.PackageException
: When path
doesn't exist.ValueError
: When update_policy
is invalid.KeyError
: when logical_key is not present in the packageValueError
: if the logical_key points to a Package rather than PackageEntry.None
to skip workflow validation. If not specified, the default workflow will be used.quilt3.formats.FormatRegistry.all_supported_formats()
KeyError
: when logical_key is not present to be deletedpkg["entry_1"].physical_key = "/tmp/package_entry_1.json"
s3://bucket/prefix/entry_1.json
, but s3://bucket/prefix/entry_1.json
already contains the exact same bytes as '/tmp/package_entry_1.json', quilt3
will not push the bytes to s3, no matter what selector_fn('entry_1', pkg["entry_1"])
returns.selector_fn('entry_1', pkg["entry_1"]) == False
, new_pkg["entry_1"] = ["/tmp/package_entry_1.json"]
selector_fn('entry_1', pkg["entry_1"]) == True
, new_pkg["entry_1"] = ["s3://bucket/prefix/entry_1.json"]
force=True
to skip the check.None
to skip workflow validation. If not specified, the default workflow will be used.s3://
or file://
)dict
. Assumes that the file is encoded using utf-8.